Teaching Rajasthan Basic Computer Instructor 2021 Mock Test Programming and Data Structure Stack Deletion
The following sequence of operations is performed on a stack:
PUSH(50), PUSH(60), PUSH(70), POP, POP, PUSH(80), PUSH(90), PUSH(100), PUSH(110), POP, PUSH(120) PUSH(130), POP, POP, PUSH(140), POP
The sequence of values popped out is:1
70, 60, 110, 120, 130, 140
2
70, 60, 110, 130, 120, 140
3
60, 70, 110, 130, 120, 140
4
70, 60, 130, 110, 120, 140