Exam-style question
Try this first
Which item is normally removed first from a priority queue?.
- A.The item added most recently
- B.The item at the physical front regardless of priority
- C.The item with the highest priority
- D.The item with the lowest priority
Answer and explanation
Concise answer
The item with the highest priority
Why this is correct
A priority queue removes items according to their priority rather than simply according to their arrival order.
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.
