Year 6 · Computing · Variables and games · Lesson 4
Timers, testing and improving
Countdown timers with repeat-until loops, test tables comparing expected and actual results, debugging, and improving games through feedback.

13-minute video lesson
Teaching, worked examples and 20 practice questions solved step by step.
Watch free for a monthWhat your child will learn
- Build a countdown timer
- Explain repeat until
- Use a test table
- Improve a game from feedback
The method
- Write tests.
- Record actual.
- Debug.
- Improve, retest.
Key words: timer, repeat until, test table, expected, actual, iteration.
Worked examples
The first three practice questions from the lesson, with every step.
Question 1
What does ‘set timer to 30’ do?
- Step 1: Start
Answer: starts the timer at 30
Question 2
What does ‘change timer by -1’ do?
- Step 1: Down
Answer: takes 1 off the timer
Question 3
Why wait 1 second in the loop?
- Step 1: Real time
Answer: so the timer counts real seconds