Mini Minds Hub · Free printable

Fix the Story Bug: Free Printable Worksheet for Year 2

In short: Free printable Fix the Story Bug for Year 2 (ages 6 to 7). Read each story program. Find the bug. Fix it. With answers for grown-ups.

  • ForYear 2
  • StageKey Stage 1
  • CostFree
  • FormatPrintable PDF

Fix the Story Bug is a Year 2 (ages 6 to 7) computing activity. Children read two story programs, find the bug in each and fix it. They put steps in the right order, spot a missing step and write it in a short sentence. It suits children who are ready to explain their thinking, and it needs only a pencil. Page 2 gives the grown up the answers.

Before anyone writes, read Program A aloud and act out each step with a toy, doing exactly what it says and nothing more. The usual slip is fixing the story in your head and skipping the broken step. Stop the moment the story stops making sense. That is where the bug is.

What is on the sheet

Children read two story programs, called Program A and Program B. Each program is a short story told as numbered steps. Children answer the questions in order. They read the steps, find the step that is wrong, say which steps need to swap and write the whole program in the right order. They explain in writing why the order matters. They also find where a step is missing and write it. Then they rewrite Program B.

  • How many steps does Program A have?
  • Which step says Pip eats the fish? Write the step number.
  • Which two steps need to swap places? Write both numbers.
  • Write the step numbers of Program A in the right order.
  • Explain why Pip cannot catch a fish before he waddles to the ice hole.
  • Between which two steps is a step missing? Write both numbers.
  • Write the missing step in a short sentence.

A worked example

Program C: Water the plant. 1. Pour water on the plant. 2. Fill the can at the tap. 3. Carry the can to the plant. What is the bug and how do we fix it?

This is a different story from the ones on the sheet. It shows two ways to hunt for a bug.

Method 1: ask what must happen first
  1. Ask, "What has to be true before the water can be poured?" The can must be full and be at the plant.
  2. Step 2 fills the can. Step 3 carries it to the plant.
  3. Step 1 pours the water, so it must come last. Move step 1 to the end.
Method 2: act it out
  1. Pretend to do step 1 with an empty can. There is nothing to pour.
  2. Now try the steps in the new order: fill, carry, pour.
  3. The story works, so the bug is fixed.
The right order is steps 2, 3, 1. Step 1 was in the wrong place.

How to hunt for a bug

Read every step

Read the whole program once without stopping. Then read it again slowly, one step at a time.

Act it out

Use a toy or your own movements. Do exactly what each step says. Stop where the story goes wrong.

Ask what comes before

For each step, ask what must already have happened. If it has not happened yet, that step is in the wrong place.

Read the fix again

After fixing, read the new program from the top. Check that it works from the first step to the last.

What are programs and bugs?

An algorithm is a set of steps for doing a task or solving a problem, in a clear order. A program is an algorithm written so that a computer can follow it. Computers do exactly what the steps say, in the order given. They cannot guess what the writer meant. That is why the order of steps matters so much.

A bug is a mistake in a program. A step might be in the wrong place, or a step might be missing. Finding and fixing bugs is called debugging, and every programmer does it. Story programs let children practise this idea with familiar events, so they can focus on the thinking without needing a computer.

Quick facts about programs and bugs

  • A bug is a mistake in a program.
  • Finding and fixing bugs is called debugging.
  • Computers follow instructions in the order they are given.
  • Programmers test their work to look for bugs.
  • Directions to a friend's house are a kind of algorithm.

Skills and curriculum link

  • Reading steps
  • Spotting bugs
  • Fixing algorithms
  • Sequencing
  • Explaining reasoning

Ideas that help with debugging

  • Order mattersSome steps can only happen after others. Ask what each step needs before it can work.
  • Nothing is assumedA computer only does what is written. If a step is not written down, it does not happen.
  • Missing stepsA gap can make the story jump. Look for the place where the story suddenly does not make sense.
  • Test the fixA fix is not finished until you read or act out the whole program again.

Key words

  • ProgramA list of steps, in order, that tells a computer or a character what to do.
  • AlgorithmA set of clear steps for doing a task.
  • SequenceThe order that steps come in.
  • BugA mistake in a program.
  • DebugTo find a bug and fix it.
  • StepOne single instruction in a program.

How to use it

  1. Print both pages. Page 1 is for your child. Keep page 2, which has the notes and answers.
  2. Read Program A and Program B aloud together. Ask your child what they think each story is about.
  3. Let your child work through the questions in order. Remind them to act out a step if they feel stuck.
  4. Check together using page 2. Ask, "How did you spot the bug?" The explanation matters as much as the answer.
  5. Come back another day and ask your child to rewrite one program from memory, or invent a bug for you to find.

Help, stretch and game ideas

If it feels too hard

Cut Program A into strips, one step on each. Let your child move the strips around and read the story each time. When the story makes sense, they copy the order onto the sheet. Act out the steps with a toy.

To stretch confident children

Write your own four step story program with one hidden bug. Swap with a partner and ask them to debug it. They should explain what was wrong and why their fix works. Try a missing step as well as a wrong order.

Make it a game

Act out each program with toys or movements. Stop at the step where the story goes wrong. Take turns being the computer that follows every step exactly, and the programmer who has to fix it.

Mistakes to watch for

Watch forA child fixes the story in their head and does not notice the wrong step.

Try thisRead each step aloud exactly as written. Act it out. Stop the moment it does not make sense.

Watch forA child swaps the wrong two steps and the order still does not work.

Try thisRead the new order from the top. If the story still breaks, find the first step that does not work and try moving that one.

Watch forA child writes a missing step that is too big or too vague.

Try thisAsk, "Could a computer follow that?" Make it one clear action that fits between the two steps.

Talk about it

  • What is a bug, in your own words?
  • How did you know which step was in the wrong place?
  • What would happen if a computer followed the buggy program exactly?
  • Why can a story still make sense with a step missing, but a computer cannot cope?
  • Can you think of instructions at home that must be done in order?
  • How could you test your fix to be sure it works?

Take it off the page

Morning routine program

Write the steps for getting ready for school. Mix up the order and ask someone to find the bug.

Toy robot

One person gives step by step instructions and the other acts like a robot, doing exactly what is said. Spot where it goes wrong.

Draw the story

Draw one picture for each step of a program. Shuffle the pictures and put them back in the right order.

Who it is for

Parents

Sit beside your child for the first program, then let them lead. Ask them to explain each choice out loud. If they are stuck, act out the steps with a toy.

Teachers

Use it as a starter, a plenary after teaching sequence, an early finisher task or a supply cover activity. It needs no preparation beyond printing. Page 2 has support and stretch ideas for mixed ability groups.

Home educators

Print it as part of a wider computing plan. It pairs well with giving directions around the house or garden. Brothers and sisters can take turns being the programmer and the computer.

Where this fits

Before this, children follow and give simple instructions in the right order, often by moving toys or giving directions to a friend. They learn that an algorithm is a set of steps and that order matters.

After this, children design, write and debug their own programs, including on screen with block based coding. Spotting a wrong step or a missing step on paper is good preparation for finding bugs in code.

Keep practising

If this sheet went well, find more in our Year 2 Programming worksheets, Year 3 computing worksheets and Year 3 worksheets and games, or try Gadget Field Guide, Robot Guide at the Museum, Sequence Coding Cards or Rover Code Mission Control next.

Browse: Mini Minds Hub > Year 3 worksheets and games > Year 3 computing worksheets > Year 2 Programming worksheets

Questions parents and teachers ask

What age is Fix the Story Bug for?

It is written for Year 2, ages 6 to 7, in Key Stage 1. Children in Year 4 who are new to algorithms and debugging can also use it as a gentle starting point.

What will children practise?

They practise reading step by step instructions, spotting steps that are in the wrong order or missing, and fixing them. They also practise explaining in writing why the order of steps matters.

Does my child need a computer?

No. Everything is done on paper with a pencil. Children read story programs and fix them by writing. The thinking is the same as in programming, but no screen is needed.

What is a bug in a program?

A bug is a mistake in a program. In this sheet it is a step in the wrong place or a step that is missing. Finding and fixing bugs is called debugging.

What if my child finds it hard?

Cut Program A into strips, one step on each, so your child can move them around before writing the order. Acting out the steps with a toy also helps them see where the story goes wrong.

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 help, a stretch idea and the answers.

What is on page 2?

Page 2 is for the grown up. It has notes on how to use the sheet, help for children who find it hard, a stretch idea and the answers. Keep it back until your child has finished page 1.

Preview the full PDF

Made by Jaques of London, making games for families since 1795. A printable supports classroom learning and does not replace a teacher.