Skip to content
Sharp

Python Fundamentals · interview question

What is the clearest sign that code around tracing and code reading should be refactored?

Multiple choiceMediumchapter-1-curatedpremiumpython-fundamentalstracing-and-code-reading
Choose one answer
Answer and explanation

Correct answer

C. 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. Trace one real example line by line and predict intermediate values before you start changing the code.

Test yourself on Python Fundamentals

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

Start free test
All Python Fundamentals questions →