What are the values passed into a function or procedure called?

Study for the IGCSE Algorithms and Pseudocode exam to demonstrate mastery of computing foundations. Enhance learning with quizzes, in-depth explanations, and custom study plans. Begin your journey to success now!

Multiple Choice

What are the values passed into a function or procedure called?

Explanation:
When you call a function or procedure, you supply values that go into it. Those values are called arguments (also known as actual parameters). They fill the function’s parameters, which are the names listed in the function definition. For example, if a function is defined as sum(a, b) and you call sum(3, 5), the numbers 3 and 5 are the arguments. The function uses those values to compute something and may return a result—the return value. The return value is the outcome produced by the function, not the values you passed in. The other options don’t fit: a return value is the result, an output command is a statement to produce output, and a case statement is a control structure for branching logic.

When you call a function or procedure, you supply values that go into it. Those values are called arguments (also known as actual parameters). They fill the function’s parameters, which are the names listed in the function definition. For example, if a function is defined as sum(a, b) and you call sum(3, 5), the numbers 3 and 5 are the arguments. The function uses those values to compute something and may return a result—the return value. The return value is the outcome produced by the function, not the values you passed in. The other options don’t fit: a return value is the result, an output command is a statement to produce output, and a case statement is a control structure for branching logic.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy