Question: How does a priority queue differ from a regular queue?
Options:
Correct Answer: It processes elements based on priority
Solution:
A priority queue processes elements based on their priority rather than the order they were added, unlike a regular queue.