Ace the Year 8 Computer Science Challenge 2026 – Power Up Your Coding Skills!

Session length

1 / 20

What is a variable in programming?

A fixed value that never changes.

A named location in RAM used to store values while the program is running.

A variable is a named container in a program that holds data. It points to a location in RAM where a value is stored while the program runs, and that value can be changed as the program executes. The name lets you read or update the data easily—for example, keeping a score or a user’s input and changing it as needed. This differs from a constant, which is a fixed value that never changes, from hardware like a hard drive which is a storage device, and from a function, which is a block of code that does a task and returns a value. So the best description is a named memory location used to store values during execution.

A type of data storage device.

A function that returns a value.

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy