In a Priority Queue, elements are processed based on ______.

2023

In a Priority Queue, elements are processed based on ______.

  1. A.

    Arrival time of the element

  2. B.

    Priority of the element

  3. C.

    Size of the element

  4. D.

    None of the above

Attempted by 335 students.

Show answer & explanation

Correct answer: B

In a Priority Queue, elements are processed based on their priority. The element with the highest priority is dequeued before the elements with lower priority.

Explore the full course: Cocubes Preparation