Menu

Trace Tables - Word Drop

Drop the words into the correct position in the paragraph. Press submit to check your answers.

A ______ records a ______, which means working through an algorithm by hand one line at a time. It is used to find the final ______ for given inputs and to find logic errors. To draw one up, make a column for each variable, an output column and sometimes a column for a condition. Completing a partly filled table means writing each new value only when a variable ______.

Python code uses sequence, selection and iteration, and tracing follows each line in turn. A count-controlled loop uses ______ with range, and range stops before its ______. A condition-controlled loop uses ______. Selection or iteration can be ______ inside another selection or loop. The operator % gives the ______ after division and // gives ______. When the code reads ______, record the values the user supplies.

From a completed trace you can state how many times a loop ______, even if it prints nothing, and what the algorithm does. When traced values do not match what should happen, the table reveals a ______. After changing the code, trace it again to check that the ______ has removed the logic error.
Log in or sign-up to access the word drop