Elements 1, 2, 3 are pushed onto an empty stack. Then: pop, push 4, pop, pop. What is the sequence of popped elements?
Show answerHide answer
Correct answer: (C) 3, 4, 2
Explanation
Pop 3; push 4; pop 4; pop 2.
Correct answer: (C) 3, 4, 2
Explanation
Pop 3; push 4; pop 4; pop 2.
This is question 149 of DSSSB TGT Computer Science Full Mock Test 1. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.