Ramu inserted the elements into the Queue Q1 based on his priority. He already maintained a table for elements and their priority. The table has given below. The one element that has the highest number in priority has considering inserted first into the queue.

Elements Priority
10 8
8 2
17 1
5 20
12 15

After inserting all the elements of the table, Ramu is removing the elements one by one. Which element he will remove in the second dequeue operation?

1
10
2
8
3
5
4
12

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation