TeachQuill
All grades · Editable classroom template

Program debugging log

Give an average-calculating program three sets of known inputs. Use the results to locate the incorrect step. Run the same failing input after changing the code and record whether the expected result now appears.

Edit template
Fill in the fields below, or print a blank copy to write on.Your changes stay in this browser.

Clear all entries?

This will erase the text saved in this program debugging log. You can’t undo this action.

TEACHQUILL · CLASSROOM RESOURCES

Program debugging log

Give an average-calculating program three sets of known inputs. Use the results to locate the incorrect step.

Science and engineering

Student details

Materials and conditions

Pseudocode to check: Set total to 0. Add each input number to the total. Output total divided by 2. Use [2,4], [2,4,6] and [8] as tests.

Working notes

ItemTest inputExpected and actual outputHypothesis and change
Typical input
 
 
 
Boundary input
 
 
 
Retest
 
 
 

Follow-up

Entries are stored locally in this browser and may be lost if browser data is cleared. Follow your school’s policies when handling student information.

Classroom use

What should I prepare, and how should I review the result?

Pseudocode to check: Set total to 0. Add each input number to the total. Output total divided by 2. Use [2,4], [2,4,6] and [8] as tests. Finish by discussing the prompt “Which test shows that the correction worked?”

How to use this template

  1. 1. Gather the materials

    Before using this template, gather the following: Starting program, goal, output.

  2. 2. Assign the worksheet

    Give an average-calculating program three sets of known inputs. Use the results to locate the incorrect step. Leave the response cells blank when printing for students.

  3. 3. Review the result

    Use the follow-up prompt to review the work. The completed template can capture Reproduction conditions, hypothesis, modification, retest.

Frequently asked questions

Where is my draft saved?

Reopen this template in the same browser on the same device to continue editing. Save a PDF before clearing browser data or starting another copy.

Can I print a blank form?

Yes. Leave the fields blank and select Print / Save PDF. If you have a draft, save a copy before clearing its entries.

Related classroom templates

Program debugging log | Printable Worksheet | TeachQuill