Year 7 - Computing
Program variables
Using fundamental programming constructs in a block-based language
Study Hub
This pupil-friendly study guide includes a unit summary, clear notes, common mistakes, and quick questions with answers.
Year 7 - Computing
Using fundamental programming constructs in a block-based language
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.
You will learn to use variables to store values and trace how they change in a program.
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.
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.
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.
Browse all guides in the Year 7 Computing guide library.