Spotting bugs in programs worksheet for Years 1–2: Spot the bug

Members Chapter 2 of Debugging Simple Programs: A Bug Hunt with Beep · Year 1, Year 2 · 3 pages · PDF, A4

All 5 worksheets in this game

One for each chapter

Spot the Bug is a printable spotting bugs in programs worksheet for Years 1 and 2 (ages 5 to 7) that teaches children to predict what a simple program will do and find the step where it goes wrong. It follows the KS1 national curriculum in England for computing: create and debug simple programs.

  • 3 A4 pages
  • Answers sheet
  • About 25 minutes
  • Colour or black and white
  • National curriculum

For members Membership opens every worksheet and every game. Already a member? Log in

Start with the free one: Make a program (chapter 1).

The game for this worksheet Debugging Simple Programs: A Bug Hunt with Beep Chapter 2 · Bugs: predicting a program and spotting the mistake · read aloud ▶ Play chapter 2 in the gameChapter 1 is free

Print it on A4, in colour or black and white. Do it after the chapter, or before it to see what your child already knows.

What's on the worksheet

Your child predicts where Beep the robot will stop, then finds the step where a program goes wrong. With a where-will-the-toy-stop game at home and answers.

Page 1 · Learn
Beep follows a program with a wrong turn and stops at an X, a worked example on predicting then checking with a finger, and a warm-up ringing where Beep will stop.
Page 2 · Try it together
Where will the toy stop? A grown-up reads a short program, your child points to where a toy will end up, then tests it one step at a time.
Pages 2–3 · Practise
Predict where Beep stops on two grids, ring the wrong step in two buggy programs, and test two programs to decide which has a bug.
Answers sheet
Every answer by page, what to watch out for (blaming the robot, counting the start square, mixing up left and right) and ideas without paper.

3 A4 pages and an answers sheet · about 25 minutes

In the classroom

  • Show the Learn page program on the board and ask pupils to predict where Beep will stop before tracing it together.
  • Play Where will the toy stop? with a floor robot or a pupil as the robot, with the class predicting first.

Questions from the worksheet

  1. Predict! Where will Beep stop? Ring the letter.
  2. Beep should reach the flower, but there's a bug. Ring the wrong step.
  3. Bug or no bug? Test each program. Tick if it reaches the flower. Cross if it has a bug.
  4. Beep went the wrong way. Mia says, "Beep must be broken!" Is she right? What should she do?

The answers are on the answers sheet, for grown-ups.

National curriculum in England

This worksheet practises this statement from the Years 1–2 computing programme of study:

  • Create and debug simple programs

Source: National curriculum in England: computing programmes of study (DfE)

Using it at home

  • Play Where will the toy stop? on a table or floor for about 10 minutes. Ask your child to point before you move the toy.
  • Use the word "bug" for any mistake in a program, and praise your child for predicting even when the guess is wrong.

Watch out for

Thinking the robot is broken or naughty when a program goes wrong.
Say "Beep follows the program exactly. Let's find the bug in the program."
Counting the square the robot starts on when predicting where it will stop.
Count the jumps: the square Beep starts on is not one of them.
Mixing up Beep's left and right when it faces down the page.
Turn the sheet so Beep's nose points up, then make the turn.

Questions and answers

What is a bug in a computer program?

A bug is a mistake in a program that makes it do something it shouldn't. In KS1, a bug might be a wrong turn or a wrong number of steps.

How do children find a bug in a program?

They predict what the program will do, then test it one step at a time. The first step where it goes wrong is the bug.

More worksheets from Debugging Simple Programs: A Bug Hunt with Beep

More Year 1 technology worksheets

One for every chapter of every game, with answers.

Browse them →