Skip to content

Study Hub

Study Guides

This pupil-friendly study guide includes a unit summary, clear notes, common mistakes, and quick questions with answers.

Year 7 - Computing

Program variables

Using fundamental programming constructs in a block-based language

Unit Summary

In this unit pupils will build their confidence and knowledge of the key programming constructs (sequence, iteration, selection and variables). Learners will use Scratch to explore the key programming constructs firstly through editing pre-existing code and then by developing their own programs.

Lesson Summary

You will learn to use variables to store values and trace how they change in a program.

Key Notes

  • A variable is used to store a value in a program.
  • A variable can be updated with a new value which replaces the initial value it was assigned.
  • The value of a variable can be tracked throughout a program.

Vocabulary To Learn

  • variable: a named piece of data stored in a computer's memory which can be accessed and changed by a computer program
  • value: the data a variable holds at a particular time
  • trace: to track the value a variable holds at any time during a program

Common Mistakes To Avoid

  • The value a variable holds cannot be updated and a computer remembers the previous values of variables.

3 Quick Questions (With Answers)

1. Describe the system or process from this lesson in clear steps.

A variable is used to store a value in a program. A variable can be updated with a new value which replaces the initial value it was assigned.

2. Define this computing term and give one practical example. 'variable'

a named piece of data stored in a computer's memory which can be accessed and changed by a computer program. Add one real device or system example to prove understanding.

3. Correct this common computing misconception.

Mistake: The value a variable holds cannot be updated and a computer remembers the previous values of variables. Correction: A variable can be updated during a program. Once the value of a variable is updated in a program, the previous value is overwritten.

More Lessons In This Unit

Browse all guides in the Year 7 Computing guide library.