Thanksgiving Coloring Pages: 34 free pages to print →
Debugging Worksheet: Fix the Code for the Mouse printable worksheet
Grade 1

Debugging Worksheet: Fix the Code for the Mouse

Find the bug: one of the 10 arrows in this code is wrong, so the mouse bumps into something. Kids circle it and write the arrow the mouse needs.

Size
US Letter (8.5 × 11 in), fits A4
PDF
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 cookies to collect and two cats, a chair and a broom in the way. The printed code for the mouse is right except for a single arrow; following it square by square shows where things go wrong. Kids circle the wrong arrow in the mouse'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 mouse's code. A board set inside the house, where the mouse sneaks toward the cheese. This board is also the level "Mouse Collects Cookies" in our free online coding game.

On this sheet

wrong. Circle the wrong arrow and fix it. left right up down Pick up both cookies, then go to the cheese.

Tips for using it

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.

More Coding Worksheets for Kids

See all 42 →

You may also like