Open Tay Learning

Fixed Loop Constructs

In most programs we need the ability to repeat lines of code.

This saves time, device resources and makes programming more efficient.

Watch this video - it shows that this can be in a variety of different ways, but one of the most common is a fixed loop.

  • Fixed Loops are used when we have a set number of times that we want some lines of code to repeat.
  • Fixed loops work when we know how many times something needs to happen, for example if a program had to take in a test score for each of the 4 terms at school to work out a total:

repeat 4 times

ask “what was your termly score”

total = total + answer

end repeat

Now it’s your turn!

Follow this link to access Scratch online: https://scratch.mit.edu/

Click on the link below to download the practical tasks to have a go at completing 

Click here to access "Do that again" Activities

 

When you have finished, have a go at the quiz below.

Our Collaborators
Open Tay Learning CollaboratorsOpen Tay Learning Collaborators

© 2023 Tayside Regional Improvement Collaborative

Website by Internet Creation Ltd

Skip to content