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 ________.

  1. A.

    A

  2. B.

    B

  3. C.

    F

  4. D.

    G

Attempted by 40 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…