These resources will be removed by the end of the Spring Term 2026.

Start using our brand new teaching resources now. Designed by teachers and subject experts, with real classrooms in mind.

The older resources below were created for lockdown learning during the pandemic and are not designed for classroom teaching.

Lesson details

Key learning points

  1. In this lesson, we will learn what a trace table is and how to use one. Trace tables help check logic errors in a program and help us learn how to read and follow programs.

Licence

This content is made available by Oak National Academy Limited and its partners and licensed under Oak’s terms & conditions (Collection 1), except where otherwise stated.

Loading...

Prior knowledge starter quiz

Download quiz pdf
Share with pupils

3 Questions

Q1.
What will be the output of this program if the user enter's Hedy when prompted?

An image in a quiz
Correct answer: Hello Hedy
There is an error in the program
Try again Hedy
Try again Hedy, Hello, Hedy

Q2.
What will be the output of this program if the user enter's Rebecca when prompted?

An image in a quiz
Hello Hedy
There is an error in the program
Correct answer: Try again Hedy
Try again Hedy, Hello, Hedy

Q3.
True or False: A while loop isn’t constantly evaluating the condition. It executes the entire sequence within the loop before re-evaluating the condition.

False
Correct answer: True

3 Questions

Q1.
Complete the sentence. A while loop is an example of ...

Correct answer: Iteration
Selection
Sequence
Subroutines

Q2.
What will be output on the screen when this program is executed?

An image in a quiz
3,2,1
Correct answer: 3,2,1,0
4,3,2,1
There is an error in the program

Q3.
Which line of code in the program below contains a condition?

An image in a quiz
1
Correct answer: 2
3
4
5

Lesson appears in

UnitComputing / Programming 3: Iteration

Computing