0 0 votes A queue is implemented using an array of size $6$ with two indices $\verb|front|$ and $\verb|rear|$.Initially, $\verb|front = rear = -1|$.The following operations are performed in order:ENQUEUE(10) ENQUEUE(20) ENQUEUE(30) DEQUEUE() ENQUEUE(40) ENQUEUE(50) DEQUEUE() ENQUEUE(60)Assume queue is simple linear queueWhich of the following options is correct?$\verb|front = 2|$, $\verb|rear = 5|$, Queue elements: $30, 40, 50, 60$ $\verb|front = 1|$, $\verb|rear = 4|$, Queue elements: $20,30,40,50$ $\verb|front = 2|$, $\verb|rear = 4|$, Queue elements: $30,40,50$ $\verb|front = 3|$, $\verb|rear = 5|$, Queue elements: $40,50,60$ Programming in Python goclasses python-&-dsa goclasses-da-dpp goclasses-da-dpp-day-74 goclasses-python-&-dsa-practice-questions + – GO Classes 200 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
1 1 vote Answer :- A Dheeraj_Yadav answered Dec 27, 2025 Dheeraj_Yadav comment Share Follow 0 reply Please log in or register to add a comment.