Skip to content
Sharp

Code Review · interview question

A bug appears around review quality. What is the strongest first debugging move?

Multiple choiceHardchapter-10-curatedpremiumcode-reviewreview-quality
python
def sync_orders(rows: list[dict[str, object]]) -> list[str]:
    return [str(row["id"]) for row in rows]
Choose one answer
Answer and explanation

Correct answer

B. 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. A perfectly formatted file can still hide a weak design or unclear boundary.

Test yourself on Code Review

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

Start free test
All Code Review questions →