Tutorpip← About this lessonABCHide the answer keyDownload PDF
Coding · Ages 8+ · Set A
Jonah reads it out loud
Scan to mark
on screen
A
Name
Date
Start Finish
Goal: 15 min
Score/ 11
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.
  1. 1a pushed-in line
  2. 2a line that is not pushed in
  3. 3reading aloud
  4. 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?
A
B
C
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.
Answer key · Set A
Jonah reads it out loud
1Say goodbye A computer starts at the top line, and line 1 says goodbye.
2bottom It reads from the top line down to the bottom one.
3False A computer starts at the top line, not the last one.
4Three times Line 3 is pushed in under the repeat, so it belongs to the repeat and happens three times.
5True Only a pushed-in line belongs to the repeat. The others happen once.
61-B, 2-D, 3-C, 4-A Pushed-in lines belong to the line above. Reading aloud slows you down, and skimming can skip a mistake.
75, 1, 4, 3, 2 Line 1 comes first. The repeat then does its pushed-in spin three times. Line 4 is last.
8False Experts read code aloud too. It helps everyone find mistakes.
9C Program C says hello once, spins three times and says goodbye once. In A, goodbye comes before the spins. In B, both hello and spin are pushed in, so hello happens three times.
102 The jump is pushed in under repeat 2 times, so Bo jumps twice.
116 Hello (1), then the repeat does spin and jump twice (4 moves), then goodbye: 1 + 4 + 1 = 6.
12Your own words: a grown-up reads it.
Mark each answer, count the right ones and write the score on the sheet.