← 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?
- A."{()[]}"
- B."((a))"
- C."{(})"
- 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 →