Assignment traces
State records the current stored values after each instruction
- Read before write Evaluate the right side using the values just before the instruction
- One target Replace only the variable named on the left of the arrow
- Sequence Use the updated state for the next numbered instruction
- Numeric copy Copy the current number rather than creating a live connection
Common mistakes
Difficulty levels
Questions about this topic
Can a trace prove that a whole program is correct?+
No, it records what happens for the supplied case; broader correctness requires appropriate testing and reasoning
Does this execute code I submit?+
No, it uses only the fixed authored sequences and checks the final values you enter
Can I use a calculator?+
No. This topic is practised without a calculator
Which year level and chapter is this?+
Year 7 Digital Technologies, chapter 4: Algorithms