Using loops in a program
I can use count-controlled loops.
Using loops in a program
I can use count-controlled loops.
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.
These resources were created for remote use during the pandemic and are not designed for classroom teaching.
Lesson details
Key learning points
- Repetition can be seen in real-life examples.
- Count-controlled loops are used to repeat actions a set number of times.
- You can modify code snippets to create given results.
Keywords
Repeat - happen multiple times
Command - a single instruction that can be used in a program to control a computer
Count-controlled loop - a chunk of code that runs a section of the program a certain number of times
Common misconception
Changing the value in the repeat block changes the shape’s size.
The repeat block sets the number of sides (how many times the sprite moves and turns). The move x steps value controls the size.
To help you plan your year 4 computing lesson on: Using loops in a program, download all teaching resources for free and adapt to suit your pupils' needs...
To help you plan your year 4 computing lesson on: Using loops in a program, download all teaching resources for free and adapt to suit your pupils' needs.
The starter quiz will activate and check your pupils' prior knowledge, with versions available both with and without answers in PDF format.
We use learning cycles to break down learning into key concepts or ideas linked to the learning outcome. Each learning cycle features explanations with checks for understanding and practice tasks with feedback. All of this is found in our slide decks, ready for you to download and edit. The practice tasks are also available as printable worksheets and some lessons have additional materials with extra material you might need for teaching the lesson.
The assessment exit quiz will test your pupils' understanding of the key learning points.
Our video is a tool for planning, showing how other teachers might teach the lesson, offering helpful tips, modelled explanations and inspiration for your own delivery in the classroom. Plus, you can set it as homework or revision for pupils and keep their learning on track by sharing an online pupil version of this lesson.
Explore more key stage 2 computing lessons from the Using repetition in programming to create a game unit, dive into the full primary computing curriculum, or learn more about lesson planning.
Equipment
Pupils will need access to a device with block-based programming software. Examples in this lesson use Scratch https://oak.link/scratch
Licence
Prior knowledge starter quiz
6 Questions
Q1.Match the real-life repeating pattern to its example.
pattern of bricks
pattern of stripes
pattern of hexagons
pattern of panels
Q2.Match the Logo command to what it does.
moves the turtle forward
moves backward
turns right
turns left
Q3.What does fd 100 mean in Logo?
Q4.What does the command repeat 4 [fd 50 rt 90] do in Logo?
Q5.What is the benefit of using loops in programs?
Q6.If you want to draw a pattern that repeats six times, what should you write?
Assessment exit quiz
6 Questions
Q1.What is a count-controlled loop used for in Scratch?
Q2.Which block in Scratch repeats a set of commands a specific number of times?
Q3.What actually changes when you increase the number in a repeat block while drawing a shape in Scratch?
Q4.If you want to draw a hexagon in Scratch using a repeat block, how many times should the loop repeat?
Q5.Put these steps in order to draw a pentagon in Scratch.
Q6.Match the term to its description.
something happening multiple times
a single instruction in a program
repeats a section of code a set number of times
a character or object in Scratch