Skip to content
Sharp

Interview Strategy · interview question

A bug appears around testing explanations. What is the strongest first debugging move?

Multiple choiceMediumchapter-20-curatedpremiuminterview-strategytesting-explanations
python
def shipping_fee(subtotal: float) -> float:
    return 0 if subtotal >= 100 else 6.5
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. Talking only about tools without naming the risk makes the answer shallow.

Test yourself on Interview Strategy

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

Start free test
All Interview Strategy questions →