Exam-style question
Try this first
Which abstract data type follows the first-in, first-out principle?.
- A.Queue
- B.Stack
- C.Tree
- D.Hash table
Answer and explanation
Concise answer
Queue
Why this is correct
Items are added at one end of a queue and removed from the other, so the first item added is the first item removed.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
