A .......... is a container that implements Last-In-First-Out (LIFO) protocol.
2024
A .......... is a container that implements Last-In-First-Out (LIFO) protocol.
- A.
Queue
- B.
Stack
- C.
Object
- D.
Interface
Attempted by 1422 students.
Show answer & explanation
Correct answer: B
The correct answer is a Stack.
A Stack is a linear data structure that follows the Last-In-First-Out (LIFO) principle. In this protocol, the last element added to the stack is the first one to be removed. This behavior distinguishes it from other containers like Queues.