Machine-translated by Google. Questions are authored in English.
Top

Discussion

A function may have any number of return statements each returning different values.

  • A.True
  • B.False

Answer: A

Correct answer: True

A function may contain as many return statements as its logic needs - typically one per branch - and each may return a different value. The first one reached ends the function.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.