Which of the following are applications of stack?
A. Print commands from multiple files from the same computer
B. Bangles worn on wrist
C. Multiple chairs in a vertical pile
D. Pile of clothes in an almirah
Which of the following are applications of stack?
A. Print commands from multiple files from the same computer
B. Bangles worn on wrist
C. Multiple chairs in a vertical pile
D. Pile of clothes in an almirah
Solution
✅ Correct Option: 4
Bangles on a wrist, chairs piled vertically and a pile of clothes in an almirah are all stack examples. In each, items are added and removed at one end only, the top, so the last item placed is the first one taken out (LIFO).
A: print commands are served in the order they arrive (FIFO), so this is a queue, not a stack. Options 1, 2 and 3 are wrong because they include A.
Related questions:
2026: 24 May Shift 1
2026: 23 May Shift 2
2025: 22 May Shift 1
2025: 30 May Shift 2