Skip to main contentSkip to solution

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.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question