Skip to content
Menu

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.

Whiteboard video lesson: Timers, testing and improving

13-minute video lesson

Teaching, worked examples and 20 practice questions solved step by step.

Watch free for a month

What your child will learn

  • Build a countdown timer
  • Explain repeat until
  • Use a test table
  • Improve a game from feedback

The method

  1. Write tests.
  2. Record actual.
  3. Debug.
  4. 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?

  1. Step 1: Start

Answer: starts the timer at 30

Question 2

What does ‘change timer by -1’ do?

  1. Step 1: Down

Answer: takes 1 off the timer

Question 3

Why wait 1 second in the loop?

  1. Step 1: Real time

Answer: so the timer counts real seconds