Mini Minds Hub · Free printable
Bailey's Code Block Match: Free Printable Worksheet for Year 5
In short: Free printable Bailey's Code Block Match for Year 5 (ages 9 to 10). Draw lines to match each block, then write your own example.
- ForYear 5
- StageKey Stage 2
- CostFree
- FormatPrintable PDF
Bailey's Code Block Match asks Year 5 children (ages 9 to 10) to draw lines to match code blocks, read short block style snippets, and then write an example of their own. It suits children who have met block coding, or who are ready to talk about how a program runs without a computer in front of them.
Before anyone draws a line, pick one block and say it aloud in plain words. For a repeat block, say what is inside it and how many times it runs. Then ask, "What would the screen show?" The usual slip is to read the blocks once and stop, so listen for whether the child has followed the repeat.
What is on the sheet
Children start by drawing lines to match each block. In Part 2 they read short block style snippets and say what would appear on screen. They then answer three questions about how repeats and choices run, and finish by writing their own example on the lines. The blocks cover repeat, if/else, forever, variables and messages, so children use the same words that real block coding tools use.
How to read a block program
Say each block in plain words
Turn every block into a short spoken sentence. A repeat block becomes a phrase about doing something again and again. Saying it aloud slows children down and makes the meaning clear before they decide on an answer.
Look inside the block
Repeat, forever and if/else blocks all hold other blocks. Ask the child to point to the blocks inside and say which ones run, and when. Blocks outside the shape follow on afterwards.
Predict first, then check
Ask what the screen will show before the child writes anything. A prediction is a guess made from the code. If the check shows something different, look at the code again together.
Trace with a pencil
Run a finger or pencil down the blocks one at a time, in order. Keep a note of any variable as it changes. Tracing is how programmers find mistakes, and it works just as well on paper.
Why read code on paper?
Many children first meet coding through block based tools such as Scratch, where instructions snap together like puzzle pieces. Blocks remove the need to type, so children can focus on the ideas. Those ideas are repetition, choices and storing information. They appear in the Key Stage 2 computing programming strand, and they carry on into text based coding later.
Reading code is a skill in its own right. Before a program is run, a programmer works out what it should do. Children practise this when they predict what will appear on screen. Doing it on paper means they cannot rely on pressing the green flag to find out. They have to follow the logic themselves and explain it in words.
Skills and curriculum link
- Reading block code
- Predicting output
- Understanding repetition
- Understanding choices
- Explaining your thinking
- Writing an example
Ideas for helping at home or in class
- Read it aloudSay each block in plain words before any line is drawn. Hearing the code as a sentence often makes the matching clearer.
- Act it outStand up and follow the blocks as if you were the program. Take a step, clap or turn each time the code tells you to.
- Cover and predictCover everything except the first block or two. Ask what happens so far, then uncover the next block and update the prediction.
- Use the child's wordsLet the child explain a block their own way first. Then add the coding word beside it, so the new vocabulary sits on top of something they understand.
Key words
- BlockA piece of code that you snap into place. Each block does one job.
- RepeatA block that runs the blocks inside it again and again, a set number of times.
- If/elseA choice. The program checks something. If it is true it does one thing, and if not it does something else.
- ForeverA block that keeps running the blocks inside it until the program is stopped.
- VariableA named place that stores a value. The value can change while the program runs.
- MessageA signal one part of a program sends so another part knows when to start.
How to use it
- Print both pages. Page 1 is for your child. Keep page 2, which has the notes and answers.
- Read the first block aloud together in plain words. Then let your child draw the first line.
- Let them complete Part 1, then Part 2, then the three questions. Ask them to say what the screen would show before they write.
- Ask your child to write their own example on the lines. Then check it together against the notes and answers on page 2.
- Come back to it another day and redo any block that felt unclear. Repeating a familiar sheet builds confidence.
Help, stretch and game ideas
If it feels too hard
Read each block aloud in plain words first, such as "do this four times", before the child draws a line. Start with the blocks they already know and leave the others until later. Point to the blocks inside a shape one at a time.
To stretch confident children
Ask children to change the number in one Part 2 snippet and tell a partner what the screen would show instead. They can then change a second thing, such as an if/else choice, and explain how the result differs.
Make it a game
Pairs swap sheets. Each reads the other's own example aloud, then says whether it matches what the writer described. The writer listens and explains any difference. Take turns, and agree together what the code really does.
Mistakes to watch for
Watch forA child reads the blocks once and ignores the repeat.
Try thisAsk them to point to the blocks inside the repeat and run through them again, counting aloud each time round.
Watch forA child only follows one side of an if/else.
Try thisTalk about both paths. Ask, "What happens if the answer is yes? What happens if it is no?" Then trace each path with a finger.
Watch forA child mixes up a variable's name with the value it holds.
Try thisDraw a labelled box. Write the name on the outside and the current value inside, and rub out and rewrite the value each time it changes.
Talk about it
- What does this block say in your own words?
- Which blocks are inside the shape, and which are outside it?
- What do you think the screen will show, and what made you think that?
- What would change if we changed this number?
- How is a choice in code like a choice in real life?
- Why might a programmer use a repeat block instead of writing the same block many times?
Take it off the page
Human robot
One person gives instructions using repeat and if/else, such as "repeat three times: step forward, then clap". The other follows them exactly. Swap roles and see if the instructions still work.
Block cards
Cut paper into strips and write a block on each: repeat, if/else, forever and a message. Build a short program on the table, then read it aloud to someone else.
Daily routine code
Write a morning routine as blocks. Add a choice, such as what to wear if it is raining and what to wear if it is not. Read it out and see if someone can follow it.
Who it is for
Parents
Sit beside your child for the first block, then let them lead. You do not need coding experience. Ask them to explain each block in plain words, and use the notes on page 2 to check together.
Teachers
Use it as a starter, a plenary after block coding, an early finisher task or a table activity. It needs no computers, so it works when equipment is limited. Page 2 gives support, stretch and answers.
Home educators
Print it as part of a wider computing plan, or as a screen free break between sessions on a device. The own example task makes a good prompt for discussion. Print again for brothers and sisters, or for revision later.
Where this fits in learning to code
Before this sheet, children usually work with sequences, where blocks run in order, one after another. They also learn that a program is a set of precise instructions and that the order of those instructions matters.
After this sheet, children can move on to building and testing their own programs with loops, choices and variables. They can also practise finding and fixing mistakes in code, which is known as debugging, and begin to read short pieces of text based code.
Keep practising
If this sheet went well, find more in our Year 5 computing worksheets guide, or try Loop the Treasure Trail, Code a Story Path, Star Catcher Game Blueprint or Loop the Pattern next.
Questions parents and teachers ask
- What age is Bailey's Code Block Match for?
It is written for Year 5, which is ages 9 to 10, in Key Stage 2. Children who have met block coding will find it most familiar. Others can still use it if an adult reads the blocks aloud first.
- What will children practise?
Children practise reading block style code, predicting what appears on screen and explaining how repeats and choices run. The blocks cover repeat, if/else, forever, variables and messages, so the vocabulary matches common block coding tools.
- Do children need a computer?
No. The sheet is screen free and needs only paper and a pencil. Children work out what the code does by reading and thinking, which is a useful skill before they test anything on a device.
- What if it feels too hard?
Read each block aloud in plain words first, such as "do this four times", before the child draws a line. Start with blocks they know, take a break if needed, and come back to the sheet another day.
- What if it is too easy?
Ask the child to change the number in one Part 2 snippet and explain to a partner what the screen would show instead. They could also write a second example of their own and swap it with a friend.
- How do I check the answers?
Use page 2, which has notes for the grown-up and the answers. Ask your child to explain their thinking first. If an answer differs, look at the code again together before you reveal it.
- Can teachers use it in class?
Yes. It works as a starter, a plenary, an early finisher task, homework or a table activity. It needs no preparation beyond printing, and page 2 has support and stretch ideas for mixed groups.
Preview the full PDF
More worksheets like this
Learn it through play: toys and games from Jaques
Made by Jaques of London, making games for families since 1795. A printable supports classroom learning and does not replace a teacher.



