Skip to content
Sharp

Automation Scripts · interview question

A teammate submits shaky input assumptions code. Which review comment is the strongest?

Multiple choiceMediumchapter-1-curatedpremiumautomation-scriptsinput-assumptions
Choose one answer
Answer and explanation

Correct answer

A. Make the rule clearer and easier to explain. Make the input shape obvious and validate the basic assumptions before building more logic on top of them.

Why

The best review comment anchors the change to readability, correctness, and future maintenance. If the script quietly accepts malformed input, the later math and formatting steps only hide the original problem.

Test yourself on Automation Scripts

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

Start free test
All Automation Scripts questions →