Skip to content
Sharp

Code Safety · interview question

A teammate submits shaky mutation and copying code. Which review comment is the strongest?

Multiple choiceHardchapter-3-curatedpremiumcode-safetymutation-and-copying
Choose one answer
Answer and explanation

Correct answer

D. Make the rule clearer and easier to explain. Copy or rebuild data intentionally when you need a new version instead of quietly mutating shared state.

Why

The best review comment anchors the change to readability, correctness, and future maintenance. Shared mutable structures make later behavior depend on hidden history.

Test yourself on Code Safety

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

Start free test
All Code Safety questions →