Exam-style question
Try this first
A queue has a capacity of four items and currently contains four items. What should a full-queue test return?.
- A.True
- B.False
- C.The position of the front item
- D.The position of the rear item
Model answer
What a good answer should say
- True
Explanation
Why this works
A queue is full when it contains the maximum number of items it can hold. An add operation should not be performed until space is available.
Common mistake
No common mistake is linked to this question yet.
