An error occurred while fetching the topics. Please try again later.
1.

What are the sequence of popped out values 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.

A. 2, 2, 1, 1, 2
B. 2, 2, 1, 2, 2
C. 2, 1, 2, 2, 1
D. 2, 1, 2, 2, 2
Answer» B. 2, 2, 1, 2, 2


Discussion

No Comment Found