🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Queues and Deques: all 13 questions

Quiz: Queues and Deques · Question 10 of 13

In a circular queue that stores head and size, how do you know the queue is full?

In a circular queue that stores head and size, how do you know the queue is full?

  1. A.head == 0
  2. B.head == size
  3. C.size == capacity
  4. D.The last array slot is not None
Answer & explanation

Correct answer: size == capacity

Keeping a size counter avoids the classic confusion where head == tail could mean either empty or full.

Can you get the rest right without peeking?

Take the timed Quiz: Queues and Deques quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →