Question 149

Elements 1, 2, 3 are pushed onto an empty stack. Then: pop, push 4, pop, pop. What is the sequence of popped elements?

  1. A3, 4, 1
  2. B1, 4, 2
  3. C3, 4, 2
  4. D3, 2, 1
Show answerHide answer

Correct answer: (C) 3, 4, 2

Explanation

Pop 3; push 4; pop 4; pop 2.

From DSSSB TGT Computer Science Full Mock Test 1

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.