Mini Minds Hub · Free printable

Bug Fix in the Veg Patch: Free Printable Worksheet for Year 2

In short: Free printable Bug Fix in the Veg Patch for Year 2 (ages 6 to 7). Fix Harriet's bugs, then guide the watering can. With answers for grown-ups.

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

Bug Fix in the Veg Patch is a computing worksheet for Year 2 (ages 6 to 7). Children find and fix the bugs in Harriet's instructions, then follow and write arrow programs to guide a watering can across a grid. It suits children who are meeting coding ideas for the first time, and it needs no screen.

Before children write anything on the grid, model one arrow at a time. Put a counter on START, say the command aloud and move it one step. The usual slip is skipping an arrow when going quickly, so ask children to keep a finger on the command they are following.

What is on the sheet

Children begin by fixing Harriet's bugs in a set of planting steps. They then move to a grid with a START square and a watering can. A table to fill in, numbered questions with space to answer and steps to put in order give them different ways to show their thinking. They follow arrow programs with a finger or counter, then write a program of their own that avoids obstacles such as the Rock.

  • Cover the seed with soil.
  • Water the soil gently.
  • Drop the seed into the hole.
  • Push a small hole in the soil.
  • A
  • B
  • C
  • D
  • The program is Down, Down. Which plant does the can water?
  • Write a program to water the Carrots. Do not land on the Rock.

Fixing a bug in a different set of steps

Maya wrote these steps for getting ready to go outside: 1. Put on your shoes. 2. Put on your socks. 3. Open the door. What is the bug, and how do we fix it?

This example uses different steps from the sheet. It shows two ways children can find a bug.

Method 1: act it out
  1. Do each step in order, using pretend shoes and socks.
  2. Stop at the step where it goes wrong. Shoes are on, so the socks will not fit over them.
  3. Swap steps 1 and 2 so the socks go on first.
Method 2: read and test aloud
  1. Read the steps slowly, one at a time.
  2. After each step, ask, "Can I really do this next?"
  3. When the answer is no, that step is in the wrong place. Move it and read the steps again from the top.
The bug is that the steps are in the wrong order. Socks go on before shoes.

How the sheet builds understanding

Spot the bug

Children first look at ordinary steps that do not work. They explain what is wrong in their own words before changing anything.

Fix and check

They put the steps in order, then read them again to test the fix. Checking the fix is as important as making it.

Follow a program

Children trace arrow commands on a grid, one move at a time, and say where the can ends up.

Write a program

Finally they plan their own list of arrows to reach a goal while avoiding hazards, then trace it to check it works.

What is a bug in computing?

A bug is a mistake in a set of instructions. In computing the word is used for anything that stops a program doing what its writer meant. Finding and fixing bugs is called debugging. Even expert programmers have bugs in their first attempts, so spotting one is a normal part of the work and not a sign that someone has failed.

Computers follow instructions exactly. They cannot guess what you meant, so the order and the detail matter. A list of steps for solving a problem is called an algorithm. When it is written in a form a computer can follow, it is a program. Unplugged activities let children practise these ideas with paper, counters and talk before they use a device.

Skills and curriculum link

  • Spotting bugs
  • Putting steps in order
  • Following arrow programs
  • Writing clear commands
  • Logical thinking
  • Checking and fixing

Ideas that help with programs

  • Order mattersChanging the order of steps can change what happens. Read the steps in order and ask whether each one makes sense at that point.
  • One command at a timeA program is followed one command at a time. Say each command aloud and make its move before you read the next.
  • Start in the right placeEvery program begins from a set starting point. Check where the can begins before you trace any arrows.
  • Test your fixA fix is only a guess until you try it. Trace the whole program again from the beginning to see if it works.

Key words

  • BugA mistake in a set of instructions.
  • DebugTo find a bug and fix it.
  • CommandOne single instruction, such as an arrow.
  • ProgramA list of commands in order for a computer or robot to follow.
  • SequenceThings that happen one after another in a set order.
  • GridA pattern of squares in rows and columns.

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 the sheet aloud. Ask your child what they think a bug is before they start.
  3. Work through the first bug together. Talk about why each choice is right or wrong.
  4. Let your child trace the can with a finger or counter, saying each command aloud as they go.
  5. Check with page 2, then ask, "How did you know?" Come back another day to try the harder tasks again.

Help, stretch and game ideas

If it feels too hard

Let your child act out the planting steps first, using real or pretend objects. On the grid, place a counter on START and say each move aloud. Move it one command at a time, and cover the later arrows with a card until they are needed.

To stretch confident children

Ask your child to write a program that waters all three plants, starting at START and avoiding the Rock and the Pond. They should trace it with a counter to test it. Then they can swap programs with someone else and debug each other's.

Make it a game

One child gives arrow commands to a partner, who moves a counter on the grid. Swap roles after a few turns. Then look for any bugs together and decide how to fix them before playing again.

Mistakes to watch for

Watch forA child skips an arrow and the can ends up in the wrong place.

Try thisKeep a finger on the command being followed. Say each arrow aloud and move the counter straight away.

Watch forA child mixes up directions when the program has several different arrows.

Try thisTape a small arrow key next to the grid. Say the direction word as the counter moves.

Watch forA child fixes the steps by reading them but never tests the fix.

Try thisAsk them to act the fixed steps out or trace the program from START. Fixing means checking again from the beginning.

Talk about it

  • What is a bug? Can you think of one in a game or a toy?
  • Why does the order of steps matter?
  • How did you know where the can would end up?
  • What would happen if the program had one extra arrow?
  • How can you check a program is right before you give it to someone?
  • Which part was trickiest, and what helped?

Take it off the page

Human robot

One person gives simple commands such as forward, turn left and turn right. The other person walks as the robot. Swap roles and fix any bugs together.

Muddled routines

Draw the steps of a daily routine on separate pieces of paper. Mix them up, then put them back in order and explain each choice.

Chalk grid

Draw a grid of squares outside with chalk. Add a start square and a few obstacles. Take turns writing arrow programs and walking them.

Who it is for

Parents

Sit beside your child for the first bug, then let them lead. Use a counter on the grid and ask them to explain each move. Praise careful thinking and trying again, not only correct answers.

Teachers

Use it as a starter or plenary after teaching algorithms, or as an early finisher task. Pairs can swap programs and debug each other's. Page 2 gives support and stretch ideas for mixed ability groups.

Home educators

Print it as part of a wider computing plan. It pairs well with outdoor games where children give each other directions. Use it again for brothers and sisters, or to revisit debugging a few weeks later.

Where this skill fits

Before this sheet, children are used to following and giving everyday instructions, such as steps in a routine or directions in a game. They also need to know simple direction words like up and down.

After this, children can write longer programs and predict what a program will do before they test it. In Key Stage 2 they go on to design programs that use repetition and choices, building on the habit of checking and debugging.

Keep practising

If this sheet went well, find more in our Year 2 Programming worksheets, Year 2 computing worksheets and Year 2 worksheets and games, or try Robot Waiter Order Slip, Oakley's Library Robot, Predict the Beetle Bot or Robot Sandwich Algorithm next.

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

Questions parents and teachers ask

What age is Bug Fix in the Veg Patch for?

It is written for Year 2 (ages 6 to 7) in Key Stage 1. Younger children can try it with an adult, and older children can use the stretch task on page 2.

What is a bug?

A bug is a mistake in a set of instructions. Fixing it is called debugging. On this sheet, children spot where Harriet's steps go wrong and then correct them.

Does my child need a computer?

No. The sheet is unplugged, so children only need a pencil. A finger or small counter helps them trace the can on the grid.

What if my child finds it hard?

Let them act out the planting steps first. On the grid, move a counter one command at a time and say each arrow aloud. Page 2 has more help ideas.

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.

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 swap programs to debug.

Do I need to print in colour?

No. It prints well in black and white on plain A4 paper, so it is easy to use at home or in the classroom.

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.