🎙 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 8 of 10

Which string is NOT balanced?

Which string is NOT balanced?

  1. A."{()[]}"
  2. B."((a))"
  3. C."{(})"
  4. D."[]{}()"
Answer & explanation

Correct answer: "{(})"

When '}' arrives, the top of the stack is '(' — the wrong kind of opener.

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 →