Question: What is the primary use of a priority queue?
Options:
Correct Answer: Managing tasks based on priority
Solution:
A priority queue is used to manage tasks based on their priority, allowing for efficient retrieval of the highest (or lowest) priority task.