Thanksgiving Coloring Pages: 34 free pages to print →
Debug the Loop Code: Fish to the Shell printable worksheet
Grade 2

Debug the Loop Code: Fish to the Shell

Debug the loop code: one of the 5 repeat blocks that should take the fish to the shell has a wrong arrow. Find it and fix it.

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 2
License
Free for personal & classroom use

About this worksheet

A 2nd grade debugging page on a 7 by 7 board with a starfish to collect and three octopuses, two jellyfish and two crabs. The fish's code is written in loop blocks and exactly one block is wrong, its arrow or its repeat number. Kids follow the fish's blocks square by square, circle the wrong one, write the right block and say what went wrong. Our program checked that a single change is the only fix for the fish. The key marks the fish's bug and draws the working path. This board is also the level "Fish to the Shell: Loops" in our free online coding game.

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