Consider the following queue of character, implemented as a circular queue…
BEL Probationary Engineer · 2023 · Computer Science · Technical
Consider the following queue of character, implemented as a circular queue using an array of 7 one-based memory cells, Front = 3 Rear = 4 Queue: –, –, A, B, __, __, __, where ‘–’, denote empty memory cell. What is the value of front and rear after the following operation? Enqueue C, D
Dequeue
Enqueue E, F
Dequeue
- A.
Front = 3 Rear = 6
- B.
Front = 4 Rear = 7
- C.
Front = 5 Rear = 1
- D.
Front = 1 Rear = 4
Attempted by 300 students.
Sign up free to check your answer
Sign up freeLoading lesson…