Which principle is followed by a stack data structure?
Options
- A. FIFO
- B. LIFO
- C. LILO
- D. More than one of the above
- E. None of the above
Quiz Practice:
B. LIFO
Correct Answer: B. LIFO
Explanation: Stack follows the LIFO (Last In, First Out) principle.
Example: A stack of plates.