Multiple choice

Given a circular queu |||||||| |---|---|---|---|---|---|---| | | | Rear | | | | Front | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | | A | B | C | | | | | After the following operations, what will be the positions of front and rear? Insert(Q,X), Insert(Q,Y), Remove(Q), Insert(Q,Z)

  1. Rear = 6, Front = 1

  2. Rear = 6, Front = 7

  3. Rear = 7, Front = 1

  4. None of these

Reveal answer Fill a bubble to check yourself
A Correct answer