Functions · interview question
When is return values being used in the wrong way?
Multiple choiceMediumchapter-2-curatedpremiumfunctionsreturn-values
Answer and explanation
Correct answer
A. When it adds cleverness or indirection without making the rule clearer, safer, or easier to test.
Why
A feature is justified by clarity and leverage, not by novelty. Focus on why the correct option matches the concept and why the distractors are weaker in this scenario.
Test yourself on Functions
A free test with instant, explained results. No account needed.
More Functions questions
- What does a strong engineer do when reasoning through return values code?
- Which judgment is strongest when choosing a data shape for return values?
- What does a strong engineer do when reasoning through function extraction code?
- A teammate submits shaky function extraction code. Which review comment is the strongest?
- What is the healthiest performance judgment around function extraction?
- Which move is the best default when return values becomes part of this workflow?