Debugging Worksheet: Fix the Code for the Bee
Find the bug: one of the 12 arrows in this code is wrong, so the bee bumps into something. Kids circle it and write the arrow the bee 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 flowers to collect and two spiders, two spider webs and a rain cloud in the way. The printed code for the bee is right except for a single arrow; following it square by square shows where things go wrong. Kids circle the wrong arrow in the bee'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 bee's code. A sunny meadow where the bee heads home. This board is also the level "Bee Collects Flowers" in our free online coding game.
On this sheet
wrong. Circle the wrong arrow and fix it. left right up down Pick up both flowers, then go to the hive.
Tips for using it
- Follow the bee'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 bee's bug is real coding work.
- After the fix, run the bee'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.