Debugging Worksheet: Fix the Code for the Car
Find the bug: one of the 12 arrows in this code is wrong, so the car bumps into something. Kids circle it and write the arrow the car needs.
- Size
- US Letter (8.5 × 11 in), fits A4
- 2 pages: the worksheet and its answer key; high-resolution, prints sharp on US Letter and A4
- Level
- Grade 1
- License
- Free for personal & classroom use
About this worksheet
A debugging worksheet for 1st grade on a 6 by 6 board with two packages to collect and two trucks, two buses and two traffic cones in the way. The printed code for the car is right except for a single arrow; following it square by square shows where things go wrong. Kids circle the wrong arrow in the car's code, write its step number, draw the arrow that fixes it and circle what went wrong. Our program checked that only one change fixes the car's code. A city board where the little car drives home. This board is also the level "Car Collects Packages" in our free online coding game.
On this sheet
wrong. Circle the wrong arrow and fix it. left right up down Pick up both packages, then go to the house.
Tips for using it
- Follow the car's code with a finger and stop the moment something goes wrong: the bug is at that step or just before it.
- Tell your child that real programmers fix bugs every day; finding the car's bug is real coding work.
- After the fix, run the car's code once more from the start to be sure.
Printing tips
Download the PDF and print at 100% (or “fit to page” on A4). Page 1 is the worksheet and page 2 is the answer key with the answers in red; print just page 1 if you want to keep the answers for checking. Free for personal, family and classroom use.