What is the value that a function returns to its caller called?

Prepare for the IGCSE Algorithms and Pseudocode Exam. Study with comprehensive questions covering key algorithms and pseudocode techniques. Access hints and explanations to gear up for your exam success!

Multiple Choice

What is the value that a function returns to its caller called?

Explanation:
When a function finishes its calculation, the thing it sends back to the place that called it is the return value. This is produced by the function’s return statement and is the result that the caller receives, often to store in a variable or use in another expression (for example, result = f(x)). The input value is what you pass into the function, not what comes out. So the correct term for what a function returns is the return value.

When a function finishes its calculation, the thing it sends back to the place that called it is the return value. This is produced by the function’s return statement and is the result that the caller receives, often to store in a variable or use in another expression (for example, result = f(x)). The input value is what you pass into the function, not what comes out. So the correct term for what a function returns is the return value.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy