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:

  1. A.

    S

  2. B.

    P

  3. C.

    Q

  4. D.

    R

Attempted by 12 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rssb Senior Computer Instructor

Loading lesson…