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
Model answer
What a good answer should say
- A queue
Explanation
Why this works
Items are added at one end of a queue and removed from the other, so the first item added is the first item removed.
Common mistake
No common mistake is linked to this question yet.
