ISRO 2015 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0133

If the sequence of operations - push (1), push (2), pop, push (1), push (2), pop, pop, pop, push (2), pop are performed on a stack, the sequence of popped out values
  1. A
    2,2,1,1,2
  2. B
    2,2,1,2,2
  3. C
    2,1,2,2,1
  4. D
    2,1,2,2,2

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

Show the worked solutionOfficial GATE Answer Key: Option A.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/51080/isro2015-11

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