Remember: Read code out loud, one line at a time from the top, as if you were the robot. A pushed-in line belongs to the line above it.
Read and answer
Read the story, then answer.
Mixed up!Open day is on Saturday, and Jonah wants Bo to greet every visitor: a hello, three spins, and then a goodbye. He writes the code all by himself and taps Run. But Bo says goodbye first and spins three times, and hello comes last. Maya laughs. "Read it out loud," she says, "as if you were Bo." Jonah touches line one and reads: say goodbye. Line two says repeat three times, and line three, pushed in underneath, says spin. When line four says hello, Jonah stops. The lines were in a mixed-up order! Reading aloud made him slow down, so every line got its own turn.
1
Read Jonah's code the way Bo does, from the top. What does Bo do first?
Say helloSay goodbyeSpin
2
A computer reads a program from the top line to the line.
firstbottommiddle
3
A computer jumps to the last line first.
TrueFalse
4
In Jonah's code, how many times does Bo spin?
OnceFour timesThree times
5
Lines one and four are not pushed in, so each of them happens just once.
TrueFalse
Read it like the robot
6
Join each idea to what it means.
1a pushed-in line
2a line that is not pushed in
3reading aloud
4skimming
Acan skip over the mistake
Bbelongs to the repeat above it
Cgives every line its own turn
Dhappens just once
7
Jonah's code runs as it is written. Put what Bo does in order.
Say hello
Say goodbye
Spin the third time
Spin the second time
Spin the first time
8
Reading code out loud is only for beginners.
TrueFalse
9
Mix-up to fix: Jonah wants hello, three spins, then goodbye. Which program does that?
ABC
10
Read this program out loud as Bo. How many times does Bo jump?
123
11
Stretch: read this program out loud and count every move, each spin, jump and hello. Bo does in all.
12
Pick a small job, like making toast. Write three steps, one under another, and read them out loud to a grown-up.
13
Draw Bo doing his first move and his last move when he reads Jonah's mixed-up code.
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.