Multiple choice

Given a linear queu |||||||| |---|---|---|---|---|---|---| | | | Front | | Rear | | | | 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,D) Remove(Q) Insert(Q,E)

  1. Rear = 6, Front = 3

  2. Rear = 7, Front = 4

  3. Rear = 7, Front = 3

  4. None of these

Reveal answer Fill a bubble to check yourself
B Correct answer