Remember: A counting loop repeats a set number of times. The counter starts at zero, goes up by one each time round, and stops at your number.
Read and answer
Read the story, then answer.
The hop raceOn sports day, Mina made Bo a counting loop for the hop race. The counter starts at zero and goes up by one with every hop. When it reaches five, the loop stops. There were five posts in a row with a flag at the last one, so the program said repeat five times, hop. Bang went the horn, and Bo hopped: one, two, three, four, five! He landed on the flag. Next the teacher moved the flag farther away, so now there were nine posts. Mina did not rewrite the program. She just changed five to nine. Later Teo tried the short course, but he miscounted the posts and wrote six. One hop too many sent Bo into the fence.
1
In a counting loop, the counter starts at and goes up by one each time round.
fiveonezero
2
The teacher moves the flag, so there are nine posts. Look at the new program. How many hops does Bo make?
5109
3
To use the longer course, Mina had to write the whole program again.
TrueFalse
4
Teo's program says repeat 6 times, but the course has 5 posts. What happens to Bo?
🚩He stops on the flag🚧He hops one hop too many and bumps into the fence🔢He hops only 4 times
5
The loop stops when the counter reaches the number you wrote.
TrueFalse
Programs, order and fix
6
Bo starts at the bottom left, facing up. Which program gets him to the star?
Bo's program is forward 3 times, turn left, forward 3 times. Where does Bo end up?
⭐On the star🪨He bumps into a rock🕳️Off the edge of the grid
8
The program forward 3 times, turn left, forward 3 times bumps into a rock. What is the mix-up to fix?
Change the first 3 to a 5Change turn left to turn rightChange the last 3 to a 1
9
Join each program to what Bo does.
1repeat 3 times: hop
2repeat 2 times: hop, beep
3repeat 4 times: beep
A4 beeps
B2 hops and 2 beeps
C3 hops
10
Put one counting loop in order, from the start to the stop.
The counter starts at zero
Bo hops and the counter goes up by one
The loop stops
The counter reaches the number in the loop
11
Changing the number in the loop changes how many hops Bo makes.
TrueFalse
12
A loop says repeat 9 times: hop. After the loop, Bo hops 4 more times. How many hops in all?
13369
13
Write a counting loop that makes Bo hop seven times.
Scan the code at the top to mark this sheet on screenTake a photo of your answers or type them. It is marked for you automatically, and your score is kept.