Trace Tables

Complete all activities in table below and post to your Blog Site

Trace tables are a way of testing pseudo code, flowchart or a program. They ensure that all variables are changing as you would expect as the different parts execute and can be used to identify logical errors.

Create Trace Table for the Algorithms below

Trace Tables and Flow Charts 

Create new trace table for input 51

Solution to check your answer

Create Flow Charts for these algorithms

# trace table for assessment test
total = 0
n = 1
while n < 6:
if n % 2 == 0:
total = total + n
#endif
n = n + 1
#endwhile
print(total)

More exercises on trace tables click here

Scroll to Top