Variable Trace Table

Programming Language

imperative / any

Form

Representation

Attribution — Origin / Source

Collected by Craig S. Miller — Interview, Steve Jost

Conceptual Advantage

Shows how variables are updated with assignments.

Mapping

PLNM
variable table heading
value last element listed in the column

Draws Attention To

Variable values and their assignment.

Use When

To demonstrate what happens when a variable is assigned another value. Helpful for demonstrating how to effectively swap values between two variables.

Cost

Requires that the instructor explains that only the bottom value is stored in the variable.

Comments or Feedback?

Do you have feedback on this notional machine? Did you find a mistake, or do you have a request for improvement? You can create an Issue on GitHub, where the description is hosted. This way we can see your feedback and address it.

For this, you need a GitHub account. Then follow this link to see the source file of this page. In there, click the ... left of the highlighted line, then pick "Reference in a new issue".

Create an Issue on GitHub