Skip to content
Sharp

Functions · interview question

Which explanation would sound strongest in an interview when discussing return values?

Multiple choiceMediumchapter-2-curatedpremiumfunctionsreturn-values
Choose one answer
Answer and explanation

Correct answer

C. A good return value lets the caller continue the workflow with a clear next piece of information. Clear return values are a sign that you understand how information flows through the program.

Why

Interviewers usually care less about keywords than about whether you can explain why the code is shaped the way it is.

Test yourself on Functions

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

Start free test
All Functions questions →