- Computer Science Engineering (CSE)
- Data Structures (DS)
- If the elements A, B, C and D are placed...

Q. |
## 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 |

Answer» B. DCBA |

View all MCQs in:
Data Structures (DS)

- Pushing an element into stack already having five elements and stack size of 5, then stack becomes
- 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?
- In a stack, if a user tries to remove an element from empty stack it is called
- Consider the usual algorithm for determining whether a sequence of parentheses is balanced. Suppose that you run the algorithm on a sequence that contains 2 left parentheses and 3 right parentheses (in some order). The maximum number of parentheses that appear on the stack AT ANY ONE TIME during the computation?
- An array consists of n elements. We want to create a heap using the elements. The time complexity of building a heap will be in order of
- A data structure in which elements can be inserted or deleted at/from both the ends but not in the middle is?
- When elements are deleted the nodes go to_________.
- The pre-order and in-order are traversals of a binary tree are T M L N P O Q and L M N T O P Q. Which of following is post-order traversal of the tree?
- Consider the following data. The pre order traversal of a binary tree is A, B, E, C, D. The in order traversal of the same binary tree is B, E, A, D, C. The level order sequence for the binary tree is
- The OS of a computer may periodically collect all the deleted space onto the free storage list. This technique is called______________.

Login to Continue

It will take less than 2 minutes

Report MCQ