

MCQOPTIONS
Saved Bookmarks
1. |
If the sequence of operation - push(1), push(2), pop, push(1), push(2), pop, pop, pop, push(2), pop are performed on stack, the sequence of popped out values are: |
A. | 2,2,1,1,2 |
B. | 2,2,2,1,1 |
C. | 2,2,1,2,2 |
D. | 2,2,1,2,1 |
Answer» B. 2,2,2,1,1 | |