Question:

Which data structure works on the principle of LIFO (Last In First Out)?

Show Hint

Think of a stack of plates: the last plate placed is the first one removed.
Updated On: Jan 20, 2026
  • Queue
  • Stack
  • Linked List
  • Tree
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Step 1: Understand the LIFO principle.
LIFO means the element that is inserted last will be removed first.
Step 2: Analyze data structures.
A Stack follows the LIFO principle where insertion (push) and deletion (pop) occur at the same end.
A Queue follows FIFO (First In First Out).
Linked Lists and Trees do not strictly follow LIFO.
Step 3: Conclusion.
Therefore, the data structure that works on the LIFO principle is Stack.
Was this answer helpful?
0
0