Exam-style question
Try this first
What does an empty-queue test determine?.
- A.Whether the queue contains no items
- B.Whether the queue contains its maximum number of items
- C.Whether the rear is before the front
- D.Whether the next item has high priority
Model answer
What a good answer should say
- Whether the queue contains no items
Explanation
Why this works
Testing for an empty queue prevents an attempt to remove an item when there are no items available.
Common mistake
No common mistake is linked to this question yet.
