Answers Worksheet
Types of loops
Task A: Compare two types of loops
Open the project ‘Dancing dinosaurs’: [Link]/dinos
Trigger the sequences to run by clicking on them.
Actions the dinosaur is performing:
looking left and right
How many times does it repeat the actions?
two times
Actions the dinosaur is performing:
changing costumes, so it looks like it is moving
How many times does it repeat the actions?
forever
Actions the dinosaur is performing:
jumping up and down
changing colour
How many times does it repeat the actions?
jumping up and down: forever
changing colour: 3 times
All images: Scratch is a project of the Scratch Foundation. It is available for free at [Link] 1
v3.0
Answers Types of loops Worksheet
Task B: Use loops for a purpose
Open the project ‘Dancing dinosaurs’ [Link]/dinos.
Modify the dinosaur code:
1) The green dinosaur should keep looking left and right, but it
stops after a few times. It should look left and right
continuously while the program is running.
2) The red dinosaur should change colour as it jumps, waiting one
second between changes. It should do this continuously.
All images: Scratch is a project of the Scratch Foundation. It is available for free at [Link] 2
Answers Types of loops Worksheet
3) The blue dinosaur should change its costume 10 times then
stop.
Open the project ‘Dancing dinosaurs feedback’:
[Link]/dinos-example
All images: Scratch is a project of the Scratch Foundation. It is available for free at [Link]
© Oak National Academy 2025. Produced in partnership with The Raspberry Pi Foundation.
3
Licensed on the Open Government Licence v3.0, except where otherwise stated. See Oak terms & conditions.