Skip to content
Sharp

Exceptions · interview question

Which option describes the most likely pitfall around raising exceptions?

Multiple choiceEasychapter-5-curatedpremiumexceptionsraising-exceptions
Choose one answer
Answer and explanation

Correct answer

A. Delaying a broken invariant usually spreads bad data and hides the original mistake.

Why

Delaying a broken invariant usually spreads bad data and hides the original mistake. Calling out that risk matters because interviewers care whether you understand why an exception exists, not only where try and except appear.

Test yourself on Exceptions

A free test with instant, explained results. No account needed.

Start free test
All Exceptions questions →