Ninth graders learn to trace code by hand — following it line by line, tracking each variable in a table, and predicting the output before running it. Tracing is how you truly understand what a program does (and find bugs). They order the steps, then trace a program.
Students will be able to…
How can you figure out what code does without running it?
Project this and have students put the code-tracing steps in order.
Tap any phase to open the teacher moves and student actions.
Can you predict a program’s output before you run it?
Students learn.
Students practice.
Students apply.
Students close.
Aligned to the CSTA K-12 Computer Science Standards and the ISTE Standards for Students.
Evaluate and trace program execution.
Systematically test and debug.
Document and reason about code.
Reason about program behavior.
Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students.
Have students trace a program and predict its output. A printable variable-table worksheet is in the CS library.
Tap a card to flip it, then rate whether you knew it. Built from this lesson’s vocabulary.
A quick self-check with instant feedback, drawn from this lesson’s key terms.
A print-and-go review sheet with a built-in answer key. Tap “Show answer key” to reveal answers, or print the clean version for students.