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

2023

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

Answer: B. Priority of the elementIn a Priority Queue, elements are processed based on their priority. The element with the highest priority is dequeued before the elements with lower priority.

  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 673 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: Coding For Placement

Loading lesson…