OCR GCSE Computer Science Complete Practice Exam 2026

Question: 1 / 400

In programming, what does the term 'variable' refer to?

A fixed value

A placeholder for data that can change

The term 'variable' in programming refers to a placeholder for data that can change. This means that a variable acts as a named storage location in the computer's memory, which can hold different values during the execution of a program. Variables are essential for storing data that may change as the program runs, enabling developers to perform operations on this data dynamically.

For example, in a program that calculates the score of a game, a variable can store the current score, which changes each time the player earns points. By using variables, programmers can write flexible and adaptable code that responds to user input, changes in data, or other programmatic conditions.

The other concepts presented in the choices do not accurately define a variable in programming. A fixed value does not capture the idea of changeability that a variable embodies. Similarly, controlling program flow is more associated with control structures such as loops and conditionals rather than with the concept of variables themselves. Lastly, while a variable can be part of a data structure, it is not, by itself, a type of data structure.

Get further explanation with Examzify DeepDiveBeta

A method of controlling program flow

A type of data structure

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy