Which of the following is an abstract data type (ADT) that follows Last-In-First-Out (LIFO) order?
26 views
- Queue
- Stack (Correct Answer)
- Linked List
- Binary Tree
Explanation
A stack is an abstract data type that allows insertion and deletion of elements only at one end (top), following Last-In-First-Out (LIFO) principle, commonly used in recursion and expression evaluation.