Question:medium

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
Choose the correct answer from the options given below:

Show Hint

To check if a real-life example is a stack:
Ask yourself, "Can I access or remove the first element placed without removing everything on top of it?"
If you must remove the top items first, it is a Stack (LIFO)!
Updated On: Jun 11, 2026
  • A, B and D only
  • A, C and D only
  • A, B, C and D
  • B, C and D only
Show Solution

The Correct Option is D

Solution and Explanation


Step 1: Understanding the Concept:

A stack is a Last-In, First-Out (LIFO) data structure.

Step 2: Detailed Explanation:

- A is incorrect: Print commands usually follow a First-In, First-Out (FIFO) pattern, which is the characteristic of a Queue.
- B, C, D are correct: All these examples represent a LIFO structure where the last item added is the first one removed.

Step 3: Final Answer:

The correct options are B, C, and D.
Was this answer helpful?
0


Questions Asked in CUET (UG) exam