Coding worksheet · Coding
Trace the repeat blocks: what does Olly say? · Grade 3
Read 5 short block code programs about repeat loops that add up and work out by hand what each one prints or the final value of a variable. Builds careful code tracing.
- Grade 3 · ages 8 to 9
- Easy
- 10 to 15 minutes
- 1 page
- Free
The answer key is a separate page for grown-ups. Sign in to download it.
The programs to trace
Directions: Read each program from top to bottom, one block at a time. Keep track of every box (variable) as it changes, then write the answer.
- 1 How many points at the end?
- set points to 0 set n to 1 repeat 4 times if n > 3 then change points by 1 change n by 1 points =
- 2 What does Olly say?
- set acorns to 0 set gems to 13 repeat 3 times change acorns by 3 change gems by -1 say acorns, gems
- 3 What does Olly say?
- set total to 0 set n to 2 repeat 4 times change total by n change n by 2 say total
- 4 How many seeds at the end?
- set seeds to 0 repeat 2 times change seeds by 4 seeds =
- 5 What does Olly say?
- repeat 2 times say "win"
- say "try again"
What your child practices
Your child builds careful code tracing. The skill is “Loops”: use repetition to shorten programs.
- Grades and ages
- Grade 3, ages 8 to 9
- Time
- About 10 to 15 minutes
- Subject
- Coding
- Level
- Easy for Grade 3
- Answer key
- Yes, for grown-ups who sign in
- Printing
- 1 page, US Letter or A4, low-ink option
- Updated
How to use it
Work through the first program together, one line or arrow at a time. Then let your child work through the rest, showing their thinking on the page. It is one of the easier sheets for Grade 3, good as a warm-up or a first look at the skill.
An answer key comes with it as a separate page that grown-ups download after signing in.
Tip for grown-ups: Have your child write each variable's value beside its line as they trace.
Done on paper? A grown-up can record it on the child's page in PlayOwl; downloading alone doesn't count as finished.
Printable generator
Make your own printables
Make brand-new sheets like this one, with answer keys, using the printable generator that comes with a PlayOwl plan. This sheet stays free.