Skip to content
Sharp

Interview Strategy · interview question

Which naming or modeling choice is strongest for thinking aloud through code?

Multiple choiceMediumchapter-20-curatedpremiuminterview-strategythinking-aloud-through-code
python
def running_total(lines: list[int]) -> int:
    total = 0
    for line in lines:
        total += line
    return total
Choose one answer
Answer and explanation

Correct answer

B. Use names and structures that describe the business fact directly instead of temporary implementation noise.

Why

Clear naming and modeling shorten debugging, review, and onboarding time.

Test yourself on Interview Strategy

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

Start free test
All Interview Strategy questions →