Which data structure is LIFO?
Practice this question from Quiz: Trees, Stacks, and Queues, with options and an explanation.
Question
Which data structure is LIFO?
Option A — Correct answer
Stack
LIFO means last in, first out.
Option B
Queue
Option C
HashMap
Option D
Set