What will be the position of front and rear after execution of the following statements, the Queue already had the given elements in FIFO order

\(\begin{array}{lr} 50 \rightarrow 90 \rightarrow 7 \rightarrow 21 \rightarrow 73 \rightarrow & 77 \\ \uparrow & \uparrow \\ \mathrm{~F} & \mathrm{R} \end{array}\)

dequeue()

dequeue()

dequeue()

dequeue()

dequeue()

enqueue(100)

dequeue()

1
Front 50, Rear 77
2
Front 100, Rear 100
3
Front 77, Rear 100
4
Front 73, Rear 77

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation