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 templateClassroom 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. Gather the materials
Before using this template, gather the following: Short program, input, objective.
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. 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
Experiment variables planner
Compare how different folds affect the load a paper bridge can carry. First identify the one condition you will change.
Experimental data log
Drop a ball from the same height three times and measure its bounce height. Include units and conditions.
Evidence for a scientific conclusion
A flat paper bridge held 3, 4 and 3 coins. A folded bridge held 8, 7 and 8. Which carried more in these tests?