ISRO 2014 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0145

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

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionOfficial GATE Answer Key: Option D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/49487/isro2007-16-isro2009-30-isro2014-43

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com