Multiple choice

Which of the following conditions indicates that the queue is full of items or overflow?

  1. FRONT=0, REAR=0

  2. REAR = REAR + 1

  3. FRONT = FRONT - 1

  4. REAR = MAX-1

  5. FRONT = -1

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

This condition indicates that the queue is full of items or overflow.