MCQOPTIONS
Saved Bookmarks
| 1. |
If the sequence of operations -push(1)push(2)poppush(1)push(2)poppoppoppush(2)popare performed on a stack, the sequence of popped out values are ? |
| A. | 2 2 1 2 2 |
| B. | 2 2 1 1 2 |
| C. | 2 1 2 2 1 |
| D. | 2 1 2 2 2 |
| Answer» C. 2 1 2 2 1 | |