Question: In a priority queue, how is the priority of elements typically determined?
Options:
Correct Answer: By a custom comparator function
Solution:
The priority of elements in a priority queue can be determined by a custom comparator function that defines how priorities are assigned.