A circular queue is implemented using an array of size 6. Initially, the…
RSSB Computer Instructor · 2026 recruitment · Basic Computer Instructor · Paper II
A circular queue is implemented using an array of size 6. Initially, the values of front and rear are 2 and 5, respectively. Assuming that the queue is not full, two ENQUEUE operations are performed consecutively without any DEQUEUE operation. What will be the values of front and rear after these operations ?
- A.
front = 2, rear = 1
- B.
front = 2, rear = 0
- C.
front = 4, rear = 1
- D.
front = 4, rear = 5
- E.
Question not attempted
Attempted by 37 students.
Sign up free to check your answer
Sign up freeLoading lesson…