Teaching BPSC 4.0 बिहार उच्च माध्यमिक शिक्षक भर्ती (PGT) Mock Test Programming and Data Structure Stack
"If the following operations are performed on an initially empty stack, what is the sequence of numbers that are popped?"
push(5), push(7), pop (), push ( 8 ), push (6), pop (), pop (), pop ()
1
7, 6, 8, 5
2
5, 8, 6, 7
3
7, 6, 5, 8
4
More than one of the above
5
None of the above