Skip to main contentSkip to solution

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.

Keyboard Shortcuts

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