Digital Technologies glossary Β· Foundation to Year 6
Sequence
Also called: sequencing
What it means
In coding, a sequence is a set of steps that happen one after another in a set order. If you change the order, you can change what happens.
Examples
- Put on socks, then put on shoes. Swapping the order gives a silly result.
- A floor robot program: forward, forward, turn left, forward.
- Planting a seed: dig a hole, drop in the seed, cover it with soil, water it.
For teachers
Sequence is the first and simplest control structure: the computer carries out each instruction in turn, from top to bottom, exactly once. Students explore it by ordering picture cards (such as the steps of brushing teeth), giving directions to a floor robot or a classmate, and noticing what goes wrong when two steps are swapped. Later, sequence is combined with selection and repetition.
Common misconception
Some students think a computer will work out the sensible order for itself. A computer follows the steps exactly as written, so if the steps are in the wrong order, the result will be wrong too.
Lesson plans that teach it
- Unplugged Algorithms: Program the TeacherYear 3 Β· free lesson plan with worksheet