A collection where each element carries a priority value is a:
APriority program
BPriority queue
CPriority packet
DPriority pointer
Answer & Solution
Correct answer: B. Priority queue
1. Elements are not served in arrival order.
2. Each one has an associated priority.
3. That structure is a priority queue.
_Source: OpenStax Introduction to Computer Science, Chapter 3, Data Structures and Algorithms._
Keep practising Data Structures and Algorithms
Browse all Data Structures and Algorithms questions for Coding Interview Prep, or explore more Computer Science topics.