Respuesta :
Answer:
A) A function can hold multiple return statements, but only one return statement executes in one function call
Explanation:
This is because each function can only return one value, whether it be an integer, String, or other object.
However, you can have a series of if-else statements, or case statements, to return a different value depending on information (within parameters, or variables.
Excellent. So, you can have multiple return statements, but the function will only end up executing one of these return statements and return a single value.
Hope this helps!
The statement "When there are multiple return statements but one return statement should execute the 1 function call" is true.
The following information should be considered:
- This can be done as every function has only a return i.e. one value. It can be an integer, string, or any other thing.
- The function can't hold only 1 return statement.
- The function can't hold many return statements that execute one function call.
- The function can't have the utmost 2 return statements.
Therefore, we can conclude that option A is correct.
Learn more about the function here: brainly.com/question/12431044