Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Which of the following is INCORRECT? a. A function can effectively return many v

ID: 3812442 • Letter: W

Question

Which of the following is INCORRECT?

a. A function can effectively return many values to the calling program -- for example, by using reference parameters or a struct.

b. A function can return values input by the user.

c. A function can return several values to the calling program with the return statement -- for example, return (numerator, denominator).

d. A function can call another function.

e. A function can be called many times in a program.

a. A function can effectively return many values to the calling program -- for example, by using reference parameters or a struct.

b. A function can return values input by the user.

c. A function can return several values to the calling program with the return statement -- for example, return (numerator, denominator).

d. A function can call another function.

e. A function can be called many times in a program.

Explanation / Answer

Option C is incorrect. As, You can return only one thing from a function. Either you make a struct which contains all the things you want to return, or you pass some function parameters by reference. So, A function can not return several values to the calling program with the return statement -- for example, return (numerator, denominator).

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote