The five items P, Q, R, S and T are pushed in a stack, one after the other…
KVS PGT Computer Science · 2017 · PGT Computer Science · Computer Science subject component
The five items P, Q, R, S and T are pushed in a stack, one after the other starting from P. The stack is popped four times and each element is inserted in a queue. Then two elements are deleted from the queue and pushed back on the stack. Now one item is popped from the stack. The popped item is:
- A.
S
- B.
P
- C.
Q
- D.
R
Attempted by 12 students.
Sign up free to check your answer
Sign up freeLoading lesson…