Question Bank Unit-2
Question Bank Unit-2
Question Bank Unit-2
Q4 Pushing an element into stack already having five elements and stack size of 5 , then stack becomes
A Overflow
B Crash
C Underflow
D Userflow
Q10 If the elements “A”, “B”, “C” and “D” are placed in a stack and are deleted one at a time, what is the
order of removal?
A ABCD
B DCBA
C DCAB
D ABDC
Q11 A linear list of elements in which deletion can be done from one end (front) and insertion can take
place only at the other end (rear) is known as a ?
A Queue
B Stack
C Tree
D Linked list
Q12 The data structure required for Breadth First Traversal on a graph is?
A Stack
B Array
C Queue
D Tree
Q16 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?
A ABCD
B DCBA
C DCAB
D ABDC
Q17 A data structure in which elements can be inserted or deleted at/from both the ends but not in the
middle is?
A Queue
B Circular queue
C Dequeue
D Priority queue
Q18 A normal queue, if implemented using an array of size MAX_SIZE, gets full when
A Rear = MAX_SIZE – 1
B Front = (rear + 1)mod MAX_SIZE
C Front = rear + 1
D Rear = front