Loading preview...

Features

  • Each program: start at a number, repeat, print the number, and add, subtract, multiply, or divide
  • Three programs a page print one wrong number to circle, fix and explain
  • The last program prints the right output, but one block of its code is wrong
  • Two lines to explain each bug
  • Support, on-level, and challenge pages
  • Color and black-and-white versions
  • Answer keys included

Skills Covered

  • Check a number pattern against its rule
  • Find and correct a wrong number in a pattern
  • Read a simple program: start, repeat, print
  • Explain a mistake in writing
  • Find the rule a pattern really follows
  • Use multiplication and division facts in patterns

How to Use This Pack

Each page has four programs drawn as flow charts. A program starts at a number, then repeats two steps: it prints the number, then changes it by the rule. In programs 1 to 3 the code is right but one number in the output came out wrong: students circle it, write the right number, and explain what went wrong. In program 4 the output is what the programmer wanted, but one block of code is wrong: students circle the bug in the code and explain how to fix it. Pages 1 to 4 are on grade level with all four operations; pages 5 and 6 are support pages that add and subtract within 100; pages 7 and 8 are a challenge, with bigger numbers and code that may do the opposite of what the output shows.

In the Classroom

Debug the first program together: run the code one step at a time, compare each result with the output, and say out loud what went wrong. Save program 4 for a pair discussion: how can the output be right if the code is wrong?

At Home

Ask your child to run each program out loud. For program 4, ask what rule the output follows, then which block of the code says something else.

Tips for Success

  • Run the code one step at a time and compare with the output
  • Find the jump between the wrong number and the one before it
  • For a code bug, find the rule the output follows first
  • Watch for swapped digits, like 42 for 24

Common Core Standards Alignment

This pack supports the following Common Core State Standards for Mathematics:

  • 3.OA.D.9 Spot patterns in addition tables, times tables and other arithmetic, and explain them with properties, like why multiples of 5 end in 0 or 5.

© Copyright 2010. National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved.

Code Debugger: Find the Bug and Explain the Fix

3rd Grade

Number patterns printed by simple programs, each with a bug to find. Students circle a wrong number, fix it and explain what went wrong, then find the wrong block in a program's code and explain how to fix it.

Download PDF
Pin

What’s Included

  • 8 printable worksheets with 4 programs per page
  • 3 difficulty levels: On Level (pages 1–4), Support (pages 5–6), Challenge (pages 7–8)
  • Color and printer-friendly black-and-white versions
  • Answer keys for all 8 worksheets
Can’t find what you need?

Tell us what to make next, or build your own with a worksheet maker.

Suggest a worksheet

Free to print and share

This worksheet is free to download, print, copy, and hand out in your classroom or at home. You do not need to create an account, and there are no watermarks on the PDF.