Skip to content
Sharp

Functions · interview question

Which option describes the most likely pitfall around function extraction?

Multiple choiceMediumchapter-2-curatedpremiumfunctionsfunction-extraction
Choose one answer
Answer and explanation

Correct answer

A. Copy-pasted logic or giant helper functions usually mean the code has not decided where one responsibility ends.

Why

Copy-pasted logic or giant helper functions usually mean the code has not decided where one responsibility ends. Calling out that risk matters because interviewers watch for whether your function names communicate intent before anyone opens the body.

Test yourself on Functions

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

Start free test
All Functions questions →