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
Answer and explanation
Concise answer
Whether the queue contains no items
Why this is correct
Testing for an empty queue prevents an attempt to remove an item when there are no items available.
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.
