If the sequence of operations - push (1), push (2), pop, push (1), push (2),…
ISRO Scientist/Engineer SC · 2015 · Computer Science
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
- A.
2,2,1,1,2
- B.
2,2,1,2,2
- C.
2,1,2,2,1
- D.
2,1,2,2,2
Attempted by 1318 students.
Show answer
Correct answer: A
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…