CBSE NET DECEMBER 2012 PAPER II
Q. Given an empty stack, after performing push (1), push (2), Pop, push (3), push (4), Pop, Pop, push (5), pop, what is the value of the top of the stack?
(A) 4
(B) 3
(C) 2
(D) 1
Ans: (D)
Explanation: See the image below:
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion