TeachQuill
All grades · Editable classroom template

Code tracing sheet

Start a running total at 0. Add 2, 4 and 6 in order and record the total after each step. Have students trace a second input by hand before running the code to check their prediction.

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 code tracing sheet. You can’t undo this action.

TEACHQUILL · CLASSROOM RESOURCES

Code tracing sheet

Start a running total at 0. Add 2, 4 and 6 in order and record the total after each step.

Science and engineering

Student details

Materials and conditions

Short program, input, objective

Working notes

ItemIterationCurrent inputTotal after execution
First iteration
 
 
 
Second iteration
 
 
 
Third iteration
 
 
 

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?

Prepare these materials or details: Short program, input, objective. Finish by discussing the prompt “What changes if the last input becomes 8?”

How to use this template

  1. 1. Gather the materials

    Before using this template, gather the following: Short program, input, objective.

  2. 2. Assign the worksheet

    Start a running total at 0. Add 2, 4 and 6 in order and record the total after each 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 Step-by-step state, predicted output, check.

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

Code tracing sheet | Printable Worksheet | TeachQuill