Which of the following principle is used if two elements in the priority queue…
Which of the following principle is used if two elements in the priority queue have the same priority?
Answer: B. FIFO — Answer: b Explanation: The answer is b, i.e., FIFO. In a priority queue, if two or more elements have the same priority then they are arranged based on the…
- A.
LIFO
- B.
FIFO
- C.
Linear tree
- D.
None of the above
Attempted by 441 students.
Show answer & explanation
Correct answer: B
Answer: b
Explanation: The answer is b, i.e., FIFO. In a priority queue, if two or more elements have the same priority then they are arranged based on the FIFO principle.
Loading lesson…