State the incorrect statement in the context of stack:
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.
Related questions:
2025: 30 May Shift 2
2025: 13 May Shift 2
2025: 13 May Shift 2