Mini Minds Hub · Free printable
Debug the Little Red Hen: Free Printable Worksheet for Year 2
In short: Free printable Debug the Little Red Hen for Year 2 (ages 6 to 7). Put the steps in order, then fix the robot's muddles. With answers for grown-ups.
- ForYear 2
- StageKey Stage 1
- CostFree
- FormatPrintable PDF
Debug the Little Red Hen is a computing worksheet for Year 2 (ages 6 to 7). Children put a set of steps in order, then work out what went wrong when a pretend robot reads some instructions. They fix the muddles by rewriting vague instructions as exact ones. It suits children who enjoy stories, acting and spotting mistakes.
Before anyone writes, be the robot yourself. Ask your child to tell you to walk to the door, then do only what they say. If they say "walk", keep walking on the spot. Children quickly see that a robot cannot guess what they mean.
What is on the sheet
Children begin with a set of steps from the story and put them in the right order. Then they meet a robot that has read some instructions and got into a muddle. They work out what went wrong when the robot reads its steps. They also rewrite vague instructions so the robot knows exactly what to do. The sheet has numbered questions with space to answer, lines for writing and steps to put in order.
- Plant the wheat seeds
- Cut the ripe wheat
- Grind the wheat into flour
- Mix the flour into dough
- Bake the dough in the oven
- The robot read: Bake the dough, then mix the flour. What went wrong?
- Fix it. Rewrite Put in some flour so the robot knows exactly how much.
- The robot read: Make the oven hot. Rewrite it with exact steps.
Ways to build on the sheet
Act it out
Once children have written their exact steps, one child reads them aloud. A partner plays the robot and does only what is said. Any silly result shows where a bug is hiding.
Draw a step strip
Fold a strip of paper into boxes. Children draw one step in each box, then cut the boxes apart, shuffle them and put them back in order.
Robot voice
Read the steps in a flat robot voice, with no guessing allowed. Saying them this way helps children notice what is missing.
Swap and test
Children swap their rewritten steps with a partner. The partner follows them exactly and says whether anything was unclear.
Why teach debugging with a story?
An algorithm is a set of steps that tells someone, or something, how to do a job. Computers follow algorithms exactly. They cannot guess what a person meant. That is why the order of the steps matters, and why each step must be clear. Year 2 children can learn this long before they write any code.
The Little Red Hen is a traditional tale that most children know. Because the story is familiar, they can think about the instructions instead of working out what is happening. A bug is simply a mistake in a set of instructions. Finding and fixing bugs is a normal, useful part of computing, and children soon enjoy hunting for them.
The story mentions an oven. Real ovens and hot trays are for adults only. Any acting out with the sheet should be pretend, using paper and imagination.
Did you know?
- A computer does exactly what its instructions say, even when that is not what the person meant.
- A mistake in a set of instructions is called a bug.
- Finding and fixing a bug is called debugging.
- People who write computer programs test their work and fix bugs again and again.
- Wheat is a type of grass that people grow for its grain.
Skills and curriculum link
- Ordering steps
- Spotting vague instructions
- Writing exact steps
- Thinking like an algorithm
- Finding and fixing bugs
Ideas for talking about algorithms
- What an algorithm isAn algorithm is a set of steps for doing a job. Everyday jobs such as getting dressed or setting the table can be written as algorithms.
- Why order mattersSteps only work when they happen in a sensible order. Ask your child to imagine a job where doing things in the wrong order would cause a problem.
- Why exact words matterA robot cannot ask questions. If an instruction is unclear, it has to guess, and it may guess wrongly. Exact words leave no room for guessing.
- Mistakes are usefulProgrammers expect to find bugs. Treat a muddle on the page as a clue to follow, not as a failure.
Key words
- AlgorithmA set of steps that tells someone how to do a job.
- InstructionOne clear thing to do.
- SequenceThe order that things happen in.
- BugA mistake in a set of instructions.
- DebugTo find a bug and fix it.
- ExactClear and precise, with nothing left to guess.
How to use it
- Print both pages. Page 1 is for your child. Keep page 2, which has the notes and answers.
- Read the story together first so the steps feel familiar.
- Work through the first question together. Talk about each choice before your child writes.
- Let your child try the rest alone or with a partner. Then act out the steps while one person plays the robot.
- Check against page 2 and talk about any bugs you found. Come back another day to try again.
Help, stretch and game ideas
If it feels too hard
Read each line aloud, slowly. Let your child say the fix before they write it, or draw it instead. Cut the steps into strips so they can move them around. Try one muddle at a time and take a break between them.
To stretch confident children
Swap sheets with a partner. Can they follow your exact steps without asking a single question? Then choose a new everyday job, such as packing a bag, and write exact steps for it. Test them on a grown-up playing the robot.
Make it a game
One child is the robot and must do only what the steps say, nothing more. The other child reads the instructions aloud. Silly mistakes show where the bugs are. Swap roles, then fix the bugs together and try again.
Mistakes to watch for
Watch forA child rewrites a vague instruction but is still vague, for example by changing one unclear word for another.
Try thisPlay robot. Do exactly what the new words say. When the result is wrong, ask what extra information the robot needed.
Watch forA child puts the steps in order by guessing, without thinking about what each step needs first.
Try thisAsk, "What has to be done before this step can happen?" Move the strips around until each step has what it needs.
Watch forA child thinks the robot should just know what is meant.
Try thisRemind them that a robot only follows the words. Let them try to give instructions for a simple job and see what goes wrong.
Talk about it
- What does the robot need to know that a person might guess?
- Which step must come first, and how do you know?
- What happens if two steps swap places? Try it with a different job.
- How did you spot the bug?
- What is a job you do every day that could be written as exact steps?
- Which instruction was the hardest to make exact, and why?
Take it off the page
Robot walk
One person gives exact instructions such as turn left or take two steps. The other is the robot and moves around the room. Swap roles and see who can guide the robot to a chosen spot.
Getting ready steps
Write or draw the steps for getting ready for school. Cut them into strips, mix them up and put them back in order. Check each step is exact.
Toy tidy algorithm
Write exact steps for tidying one shelf or box of toys. A grown-up follows them like a robot and stops at anything unclear.
Who it is for
Parents
Sit beside your child for the first question, then let them lead. Read the story first and be the robot if they get stuck. Praise clear thinking and spotted bugs, not only correct answers.
Teachers
Use it as a starter, plenary, early finisher task or table activity after teaching algorithms. Pairs can act out their steps. It needs no preparation beyond printing, and page 2 has support and stretch ideas.
Home educators
Use it as a screen free computing activity alongside books and everyday talk. Print it again for brothers and sisters, or return to it a few weeks later to see what has stuck.
Where this skill leads
Before this sheet, children follow and give simple instructions in everyday life, such as directions in a game or steps in a routine. They also learn that order matters in stories and in daily jobs.
After it, children can write short programs on screen or with a programmable toy, and test and fix them. They go on to plan longer sequences, use repeats and see that clear, precise instructions are the basis of all programming.
Teach this in class: a ready lesson plan
Objective. Children will be able to put the steps of making bread in order and rewrite vague instructions as exact steps that a robot could follow.
Timing. starter 5 min, teach 10 min, task 25 min, plenary 5 min. Before this lesson. Children have put events in order in stories using words like first, next and then. They have given or followed simple directions, such as telling a friend where to walk. They do not need to have used a programmable toy or a screen.
Classwork scenario
At Red Hen's Bakery, the robot helper has been following muddled instructions, and the loaves have come out flat, raw and odd. The children are the Debugging Team, brought in to mend the instruction cards before the village bake sale. Each pair is one team. They must put the bread steps in order, find the vague steps, and write exact ones. At the end, one team member plays the robot to test the new card.
Starter and teach
Starter. 5 minutes in total. Take 1 minute to settle the class on the carpet. Then you are the robot. Ask for a volunteer to tell you how to pick up a pen from the table. Do exactly and only what they say, so 'Pick up the pen' might mean you grab the whole pot, and 'Go to the table' might mean you walk into the table. Let the class laugh, then ask what the instruction needed to say. Take two more tries, using the children's fixes each time. Finish with this: a robot cannot guess, so we have to be exact. About 4 minutes of activity.
Teach. 10 minutes in total. (2 min) Tell the story in your own words, or read this short version. 'The Little Red Hen found some wheat seeds. She asked her friends, Who will help me plant them? Not I, said the dog, the cat and the duck. So she planted them herself. Later she cut the wheat, ground it into flour and mixed the dough. Each time, her friends said, Not I. Then she baked the bread. It smelled so good that they all came running. Who will help me eat it? she asked. This time she ate it herself.' (3 min) Order: write 'Put the loaf in a bag' and 'Slice the loaf' on the board. Ask which comes first and what the robot would do if they were swapped. Point out that the order is where the bug is. (4 min) Exact: write 'Put on some butter'. Ask what the robot cannot know. Rebuild it together as three steps: pick up the knife, scoop one blob of butter the size of a grape, spread it on the slice from edge to edge. Each step is one action with a clear amount. Do not model any answer from the sheet. (1 min) Ask children to show with a thumb whether they could now tell a robot to spread butter.
Running the sheet
25 minutes in total. Pairs, with a sheet each so every child writes. Give out the sheets and settle pairs in the first minute (1 min). Children put the five steps in order from the sequence box (3 min). Then they answer numbered questions 1 to 4 (9 min). Next comes the debug challenge, writing 4 exact steps for the robot to put the dough in the oven (6 min). For the last 6 minutes, swap sheets with the partner. One child reads the challenge steps aloud and the other is the robot and mimes them, doing only what each step says. Then swap roles. Silly results show where the bugs are, and each pair fixes one. Safety: this is all mime, with no real food or oven. Clear a space between pairs and risk assess your own room. Staffing: you circulate and ask the circulating questions without marking every sheet live. The teaching assistant sits with the support group.
Support, core and stretch
- Support: The teaching assistant reads each line aloud. Children say the fix before they write it, or draw it, and a partner can write for them. Start with the sequence box and question 1. For question 3 give the starter 'Fill the cup ___ times.' For question 4 provide a word bank: turn, dial, wait, minutes. For the challenge, give the starter 'Open the ___. Put the ___ in.' and ask for 3 steps first, with a fourth if they are ready.
- Core: Children complete the sequence box and questions 1 to 4. Then they write 4 exact steps for the challenge, one action per step. They swap sheets and act out their steps with a partner, then fix any bug they find.
- Stretch: Children swap sheets with a partner and follow the exact steps without asking any questions. If a question is needed, the writer finds the missing detail and adds it. For a harder case, they write exact steps for the robot to take the loaf out and put it on a rack, including the oven gloves. The rule is that each step must name one action and one object, and they give a reason for any number they choose.
Vocabulary, misconceptions and questions
algorithm: a list of steps in order to do a job; bug: a mistake in a set of steps; debug: find a mistake and fix it; exact: clear, with nothing left to guess; sequence: things placed one after another in order
- Children say 'some flour' is fine because a person would know what to do. Ask them to be the robot who cannot ask a question, then ask what number or measure would tell it.
- Children write one long step with several actions, such as 'Turn on the oven and wait until it is hot'. Ask them to count the actions and split them so each step has one.
- Which step has to come before this one, and how do you know?
- What would the robot do with this step? Show me.
- Is there a number or a name in your step that tells the robot exactly what to do?
- If your partner read this out, would they need to ask you anything?
Plenary and what secure looks like
5 minutes in total. (3 min) Invite two pairs to act out their challenge steps for the class while the others watch for bugs. (1 min) Ask what bug and debug mean in their own words, and what made a step exact. (1 min) Tidy sheets and go back to seats.
A secure answer puts the sheet steps in the order plant, cut, grind, mix, bake. Question 1 says the robot baked before mixing, so the order was out of order. Question 2 says some does not tell the robot how much. Question 3 gives a number and a container, for example fill the cup with flour 3 times and tip it in the bowl. Question 4 gives separate steps, such as turn the oven on, turn the dial to a number, then wait a number of minutes. The challenge has 4 steps in order, each with one action, that a partner robot can follow without asking.
At home and across the curriculum
Ask your child to be the boss and you be the robot. They give you exact steps to put a sock in a drawer. Do exactly what they say. If you get it wrong, ask them what was missing and try again.
English: instructions use short command sentences that start with an action word, such as open, press, turn and wait. Children can notice this in their challenge steps.
Sheets that go with this lesson
- Warm-up: Story Steps. Use it the day before, or in place of the starter, so children have already practised ordering and exact wording in a different story.
- Practise: Get Dressed, Robot!. Use it in the next lesson so children can spot a bug and write their own fix with a new set of everyday steps.
- Challenge: The Very Silly Robot. Give it to pairs who finish early, or use it in the next lesson, for more work on spotting an unclear step and writing clear, exact steps to fix it.
Keep practising
If this sheet went well, find more in our Year 2 computing worksheets and Year 2 worksheets and games, or try Safer Internet Day Mission, Loops Dance Game, Waddles' Number Line Train or Robo's Salon Steps Comic next.
Browse: Mini Minds Hub > Year 2 worksheets and games > Year 2 computing worksheets
Questions parents and teachers ask
- What age is Debug the Little Red Hen for?
It is written for Year 2 (ages 6 to 7), in Key Stage 1. Slightly younger or older children can try it with support, depending on how confident they are with reading, writing and thinking about steps.
- Does my child need a computer?
No. It is a screen free activity that needs only paper and a pencil. Children learn about algorithms by ordering and rewriting steps on the page, and by acting them out.
- What is debugging?
Debugging means finding and fixing mistakes in a set of instructions. On this sheet, children spot where the robot's instructions go wrong and rewrite them so they work.
- Are the answers included?
Yes. Page 2 is for the grown-up. It has notes on using the sheet, help for children who find it hard, a stretch idea and the answers, so you can check together.
- Can teachers use it in class?
Yes. It works as a starter, plenary, early finisher task, homework or table activity. It needs no preparation beyond printing, and pairs can act out their steps with one child playing the robot.
- What if my child finds it hard?
Read each line aloud and let them say the fix before they write it, or draw it. Work on one muddle at a time and do the first question together.
- Do I need to print in colour?
No. It prints well in black and white on plain A4 paper. Print both pages, give page 1 to your child and keep page 2 for yourself.
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.



