Skip to content
Sharp

Code Review · interview question

A bug appears around abstraction discipline. What is the strongest first debugging move?

Multiple choiceHardchapter-14-curatedpremiumcode-reviewabstraction-discipline
python
def choose_tooling(team_size: int, latency_ms: int) -> str:
    return "choose the simplest shape that meets the real constraint"
Choose one answer
Answer and explanation

Correct answer

A. Trace one concrete example, inspect the state transitions, and compare them to the intended rule before rewriting anything.

Why

That approach is reliable because it creates evidence. Adding decorators or context managers just because Python can do it is usually a readability regression.

Test yourself on Code Review

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

Start free test
All Code Review questions →