🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Stack and Queue in C: all 10 questions

Quiz: Stack and Queue in C · Question 9 of 10

What is the main problem with a plain (non-circular) array queue?

What is the main problem with a plain (non-circular) array queue?

  1. A.Dequeue is O(n)
  2. B.Slots freed by dequeue at the front are never reused, so it can report full while space is free
  3. C.It cannot store negative numbers
  4. D.It follows LIFO order
Answer & explanation

Correct answer: Slots freed by dequeue at the front are never reused, so it can report full while space is free

front and rear only move forward; the circular version wraps them with % MAX.

Can you get the rest right without peeking?

Take the timed Quiz: Stack and Queue in C quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →