New
New
Year 7
Sequence
I can use subroutines to execute sequences of commands.
New
New
Year 7
Sequence
I can use subroutines to execute sequences of commands.
These resources will be removed by end of Summer Term 2025.
Switch to our new teaching resources now - designed by teachers and leading subject experts, and tested in classrooms.
Lesson details
Key learning points
- Computers only follow the commands they are given, so these need to be precise and accurate.
- Commands can be joined together to create sequences in Scratch to achieve a desired outcome.
- Sequences can be separated into individual subroutines.
- Programs should be written so that other people can easily understand them. Subroutines are used to do this.
Keywords
Execute - to run or carry out the commands in a program
Sequence - the order of commands in a program
Subroutine - a named sequence of commands used to perform a specific task within a program
Common misconception
A sprite in Scratch can only have one sequence of code blocks.
Sequences of code can be separated into subroutines and these subroutines can be called multiple times.
'Acting out' instructions is helpful for pupils to understand the logic of any algorithm. Encourage pupils to imagine that they are the objects they need to control. By doing so, they can better appreciate what commands are needed to carry out required actions.
Teacher tip
Equipment
Pupils will need access to Scratch either via the online or downloadable versions. If the downloaded version is used, any starter programs that are used will need to be downloaded as files.
Licence
This content is © Oak National Academy Limited (2025), licensed on
Open Government Licence version 3.0
except where otherwise stated. See Oak's terms & conditions (Collection 2).Starter quiz
Download starter quiz
6 Questions
Q1.
A program is a set of that can be run by a computer.
Q2.
A sequence is a precise set of instructions in a particular ...
format.
style.
Q3.
What type of code block is this?

sound
variable
Control
Q4.
True or false? This sequence of commands will make the sprite move 100 steps, play the sound woof, then turn the sprite clockwise 90 degrees and play the sound woof again.

True
Q5.
True of false? When the blocks are rearranged and joined together differently, the sequence changes.
False
Q6.
Which icon do you use to add a new sprite in Scratch?



Q3 Scratch Foundation under CC BY-SA 2.0 Q4 Screenshot © Scratch Foundation under CC BY-SA 2.0 Q6 image 1 Screenshot © Scratch Foundation under CC BY-SA 2.0 Q6 image 2 Screenshot © Scratch Foundation under CC BY-SA 2.0 Q6 image 3 Screenshot © Scratch Foundation under CC BY-SA 2.0
Exit quiz
Download exit quiz
4 Questions
Q1.
When instructions are carried out by a computer, this is known as __________.
a sequence
a command
Q2.
A __________ is a pattern or process where one thing follows another.
selection
iteration
Q3.
A is a named section of code that can be called (used) in a program.
Q4.
In this sequence of code, we have several blocks. What does
frere_jacques
represent?
a variable
a command