The seven elements A, B, C, D, E, F and G are pushed onto a stack in reverse…
The seven elements A, B, C, D, E, F and G are pushed onto a stack in reverse order, i.e., starting from G. The stack is popped five times and each element is inserted into a queue. Two elements are deleted from the queue and pushed back onto the stack. Now, one element is popped from the stack. The popped item is ________.
- A.
A
- B.
B
- C.
F
- D.
G
Attempted by 40 students.
Sign up free to check your answer
Sign up freeLoading lesson…