🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Stack and Queue in C: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. Which order does a stack follow?
  2. Q2. What does this print? (code)
  3. Q3. In an array stack with top starting at -1 and size MAX, when is the stack full?
  4. Q4. What is underflow?
  5. Q5. In a circular queue of size 5, rear is 4. Where does the next enqueue go (if not full)?
  6. Q6. Why does a linked-list push take struct node top?
  7. Q7. What does this print? (code)
  8. Q8. Which string is NOT balanced?
  9. Q9. What is the main problem with a plain (non-circular) array queue?
  10. Q10. What is one advantage of an array stack over a linked-list stack?