Skip to content
Sharp

Automation Scripts · interview question

A bug appears around reporting and auditability. What is the strongest first debugging move?

Multiple choiceHardchapter-4-curatedpremiumautomation-scriptsreporting-and-auditability
python
cleaned = 245
rejected = 6
print(f"cleaned={cleaned} rejected={rejected}")
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 script that silently changes data without reporting what it did is operationally weak even if the code is correct.

Test yourself on Automation Scripts

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

Start free test
All Automation Scripts questions →