Skip to main contentSkip to solution

State the incorrect statement in the context of stack:

Solution

✅ Correct Option: 2

A stack follows the LIFO (Last In, First Out) rule: the element inserted last is the first one removed. So the statement that a stack does not follow LIFO is incorrect.


Options 1, 3 and 4 are all correct statements: a stack is a linear data structure, PUSH adds an element at the top, and POP removes the top element.

Memory trick: think of a pile of plates, where the last plate placed on top is the first one taken off.

Keyboard Shortcuts

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