Thinkycap logo
Worksheets

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.

Practice nowVariables in programsYear 6 · Primary School · Computing · 50 exercisesPractice now

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

  1. What is a variable in a computer program?
  2. True or false? “The value stored in a variable can change while a program runs.”
  3. In a Scratch game, which block would you use to start the score at 0?

Solve these and more questions now →

More topics in Computing