STACK follows _______ principle, where insertion and deletion is from _____ end/ends only.
STACK follows _______ principle, where insertion and deletion is from _____ end/ends only.
Solution
✅ Correct Option: 4
A stack follows the LIFO (Last In, First Out) principle. Both insertion (push) and deletion (pop) happen at one end only, called the top, so the most recently added element is removed first.
Option 1: LIFO is correct, but a stack has only one open end, not two. Two-ended access belongs to a deque.
Options 2 and 3: FIFO is the principle of a queue, where insertion is at the rear and deletion at the front.
Related questions:
2026: 18 May Shift 2
2025: 13 May Shift 2
2026: 26 May Shift 1
2026: 26 May Shift 1