Ace the 2025 OCR GCSE Computer Science Challenge – Code Your Way to Success!

Question: 1 / 400

What are the actual values that parameters take when a sub program is called?

Parameters

Arguments

The correct answer is "Arguments" because arguments are the actual values or data that are passed into a subprogram (or function) when it is called. When you define a subprogram, you set up parameters, which are essentially placeholders for the values that will be provided. However, when you call that subprogram and include specific values, those values become the arguments.

For example, if you have a function that takes two parameters, you might call it and pass two numbers, like this: `functionName(5, 10)`. In this case, `5` and `10` are the arguments being passed to the function.

Parameters serve as the variables that function as containers for these arguments within the subprogram. Local variables are used only within the function and can hold data or values during its execution but do not refer to the values being passed in from a call. Function calls refer to the instruction to execute a subprogram, not the specific values themselves.

Get further explanation with Examzify DeepDiveBeta

Local Variables

Function Calls

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy