Fill in The Blanks
Fill in The Blanks
ASSIGNMENT – 9
CHAPTER 5: DATA STRUCTURES WITH PYTHON
Subject: Computer Science
Class: XII
stack.
2. Trying to add an element to a full stack results in an exception called
__________.
3. Built-in method of list to add an element to the stack. ______________
4. Trying to pop an element from an empty stack results into a special condition
called________ .
5. Queue is an ordered linear data structure, following ___________ strategy.
6. The process of inserting an element in stack is called _________________.
7. The process of removing an element from stack is called ______________.
8. If the elements "A", "B", "C" and "D" are placed in a queue and are deleted one
at a time, in what order will they be removed? ______________________.
9. In a Queue, insertions take place at _____ end.
10.In a queue, deletions take place at _____ end.
True/False:
not only the items stored but also the relationship between the items.
9. Handling the processes of a network printer is the most important application
of queues.
10. A stack behaves on the basis of LIFO principle.
Assertion and Reasoning Based Questions:
(d) Both A and R are True but R is not the correct reason of A.
1. Assertion(A): A data structure that contains the value sequentially or linearly is known
2. Assertion (A): The major implementation of using a data structure is to manage the
Reasoning (R) : Data Structure refers to the way memory is allocated for holding data
using minimum space. It leads to faster data access during the execution of the program.
1. Consider the following operation performed on a stack of size 5. Push(1); Pop(); Push(2); Push(3); Pop();
Push(4); Pop(); Pop(); Push(5); After the completion of all operation, the number of elements present in
stack is?
2. What is the value of the postfix expression 6 3 2 4 + – *?