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.
Answer key · Set A
Bo's hop race
10 The counter starts at zero and goes up by one with every hop.
29 Repeat 9 times means nine hops. Mina only changed the five to a nine.
3False She did not rewrite the program. She changed one number, five to nine.
4He hops one hop too many and bumps into the fence Six hops is one more than the five posts, so Bo goes past the flag.
5True When the counter reaches your number, the loop stops.
6Forward 2 times, turn right, forward 4 times Two steps up reach the top row. Turn right to face along the row, then four steps reach the star. The other programs run off the edge.
7He bumps into a rock Three steps right reach the fourth column. After the turn he steps up one square, and the next square has a rock. A rock is a bug.
8Change the first 3 to a 5 Five steps right reach the last column. Turn left, and three steps up pass no rocks and reach the star.
91-C, 2-B, 3-A A loop does everything inside it once for each time round.
101, 2, 4, 3 The counter counts up from zero with every hop, and when it reaches your number the loop stops.
11True Change the number to change the hops.
1213 The loop makes 9 hops and then there are 4 more, so 9 + 4 = 13.
13Your own words: a grown-up reads it.
Mark each answer, count the right ones and write the score on the sheet.