The five items: A, B, C, D, and E are pushed in a stack, one after other…

ISRO Scientist/Engineer SC · Computer Science · 2014ISRO Scientist/Engineer SC · Computer Science · 2009ISRO Scientist/Engineer SC · Computer Science · 2007

The five items: A, B, C, D, and E are pushed in a stack, one after other starting from A. The stack is popped four items and each element is inserted in a queue. The 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

  1. A.

    A

  2. B.

    B

  3. C.

    C

  4. D.

    D

Attempted by 17 students.

Show answer

Correct answer: D

The worked solution is available to enrolled students.

Video solution available to enrolled students.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…