Variables in programs
Year 6 · Primary School · Computing
In this unit you will: explain that a variable is a named store for a value that can change; trace what happens to a variable when it is set and changed; spot and fix common errors when using variables; use variables with inputs, conditions and loops in real programs; review setting, changing, naming and tracing variables.
There are 50 exercises to practice: interaktive Aufgaben. Every answer gets instant feedback, free and without signing up.
What's included
- Explain that a variable is a named store for a value that can change
- Trace what happens to a variable when it is set and changed
- Spot and fix common errors when using variables
- Use variables with inputs · conditions and loops in real programs
- Review setting · changing · naming and tracing variables
Example questions
- What is a variable in a computer program?
- True or false? “The value stored in a variable can change while a program runs.”
- In a Scratch game, which block would you use to start the score at 0?