Which data structure follows Last-In-First-Out (LIFO) principle?
- Queue
- Array
- Stack
- Linked List
Answer: Stack
Stack is a linear data structure that follows LIFO principle - the last element added is the first to be removed. Operations include push (add) and pop (remove). Used in function call management, expression evaluation, and undo mechanisms.