Menu

Question Discussion & Solution

MCQ
Q.
Consider following Scenario -1. The five items : P,Q,R,S and T are inserted into stack A one after other starting from T in reverse order.2. The stack is popped three times and each element is inserted into another stack B.3. Then two elements are deleted from the stack B and pushed back onto the stack A.What are the topmost elements of stack A and Stack B respectively?

forum Community Discussion

speaker_notes_off

No discussions yet. Be the first to start!

You must be logged in to participate in the discussion.

login Login to Discuss

auto_awesome Similar Questions

MCQ
1.
What data structure can be used to check if a syntax has balanced parenthesis ?
forum Discussion
MCQ
2.
What data structure would you mostly likely see in a non recursive implementation of a recursive algorithm?
forum Discussion
MCQ
3.
The equivalent prefix expression for the following infix expression (A+B)-(C+D*E)/F*G is
forum Discussion
MCQ
4.
In the stack process of inserting an element in the stack is called as ___________.
forum Discussion
MCQ
5.
What is the postfix form of the following prefix expression -A/B*C$DE ?
forum Discussion

category More Data Structure Topics

article

Data Structure Basics

format_list_bulleted 128 MCQs
article

Abstract data types

format_list_bulleted 37 MCQs
article

Arrays

format_list_bulleted 134 MCQs
article

Lists

format_list_bulleted 166 MCQs
article

Stacks

format_list_bulleted 165 MCQs
article

Queues

format_list_bulleted 61 MCQs
article

Trees

format_list_bulleted 133 MCQs
article

Binary Trees

format_list_bulleted 120 MCQs
article

B Trees

format_list_bulleted 8 MCQs
article

Heaps

format_list_bulleted 36 MCQs
article

Hash based structures

format_list_bulleted 7 MCQs
article

Graphs

format_list_bulleted 157 MCQs
article

Mixed

format_list_bulleted 10 MCQs