Skip to content
Sharp

Control Flow · interview question

What is the clearest sign that code around guard clauses should be refactored?

Multiple choiceEasychapter-2-curatedpremiumcontrol-flowguard-clauses
Choose one answer
Answer and explanation

Correct answer

B. When the rule is no longer easy to trace, explain, or change without breaking nearby behavior.

Why

A refactor is justified when the code stops communicating its intent. Reject impossible states early so the happy path is short and trustworthy.

Test yourself on Control Flow

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

Start free test
All Control Flow questions →