Menu

Stacks Questions

MCQ
91.
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 Discussion
MCQ
92.
If memory for the run-time stack is only 150 cells(words), how big can N be in Factorial(N) before stack overflow?
forum Discussion
MCQ
93.
Stack A has 3 Elements in it Say X,Y and Z with X on top.1. Stack B is empty.2. An Element popped out from Stack A can be printed immediately or pushed to stack B.3. An Element popped out from Stack B can only be printed.In this arrangement, which of the following permutations of X,Y,Z are not possible ?
forum Discussion
MCQ
94.
An item that is read as input can be either pushed to a stack and later popped and printed, or printed directly. Which of the following will be the output if the input is the sequence of items 1, 2, 3, 4, 5 ?
forum Discussion
MCQ
95.
Queues serve major role in
forum Discussion
MCQ
96.
Which of the following data structure may give overflow error,even though the current number of element in it is less than its size?
forum Discussion
MCQ
97.
The postfix form of the expression (A+B)?(C?D-E)?F/G is
forum Discussion
MCQ
98.
What is the postfix form of the following prefix expression -A/B*C$DE
forum Discussion
MCQ
99.
Which of the following types of expressions does not require precedence rule when evaluated?
forum Discussion
MCQ
100.
If memory for the run-time stack is only 150 cells(words), how big can N be in Factorial(N) before encounterring stack overflow?
forum Discussion