Skip to content
Sharp

Performance · interview question

Which naming or modeling choice is strongest for optimization boundaries?

Multiple choiceHardchapter-16-curatedpremiumperformanceoptimization-boundaries
python
def optimize_if_needed(elapsed_ms: float) -> bool:
    return elapsed_ms > 250
Choose one answer
Answer and explanation

Correct answer

A. 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 Performance

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

Start free test
All Performance questions →