Which term refers to a linear data structure that follows the Last-In-First-Out (LIFO) principle?
- A. Trie
- B. Binary search tree
- C. Graph
- D. Stack ✓
Correct answer
D. Stack
Explanation
Stack refers to a linear data structure that follows the Last-In-First-Out (LIFO) principle.