Consider the following queue of character, implemented as a circular queue…
BEL · Computer Science · Probationary Engineer · 2023
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 286 students.
Show answer
Correct answer: C
Explore the full course: Iocl Engineers Officers Grade A Paper 2
Loading lesson…