Countdown timer coding worksheet for Years 5–6: Countdown timers

Members Chapter 3 of Variables in Coding: Build Scores and Timers with Bit · Year 5, Year 6 · 4 pages · PDF, A4

All 5 worksheets in this game

One for each chapter

Countdown Timers is a printable coding worksheet for Years 5 and 6 (ages 9 to 11) that teaches children to count a timer variable down with a repeat loop and use its value in an if block. It follows the national curriculum in England for Key Stage 2 computing: use sequence, selection and repetition in programs, and work with variables and various forms of input and output.

  • 4 A4 pages
  • Answers sheet
  • About 30 minutes
  • Colour or black and white
  • National curriculum

For members Membership opens every worksheet and every game. Already a member? Log in

Start with the free one: What is a variable? (chapter 1).

The game for this worksheet Variables in Coding: Build Scores and Timers with Bit Chapter 3 · Timers: a countdown variable with repetition and selection · read aloud ▶ Play chapter 3 in the gameChapter 1 is free

Print it on A4, in colour or black and white. Do it after the chapter, or before it to see what your child already knows.

What's on the worksheet

Make a timer variable count down with a repeat loop, work out how many times a loop must run, and decide when the blocks inside an if will run. Includes a human countdown game, code tracing and an answers sheet.

Page 1 · Learn
A countdown script with a repeat loop and an if block, a strip of timer values from 10 to 0, a traced loop of 5 repeats, Flip's tip and a warm-up.
Page 2 · Try it together
Human countdown: clap and count a timer down from 10, then try changing it by -2 with an if rule: if timer is less than 4, clap twice.
Pages 2–4 · Practise
Work out how many repeats reach 0, trace three loops and say if they count up or down, decide which if blocks run, fix a timer bug and write a countdown script.
Answers sheet
Every answer by page, what to watch out for (counting the wrong way, miscounting the loop, mixing up < and >) and ideas to go further.

4 A4 pages and an answers sheet · about 30 minutes

Using it at home

  • Do the human countdown first and say each value out loud. Before round 2, ask how many times the loop will run.
  • Let your child trace each loop in a small table, writing the timer value after every time round. The sheet takes about 30 minutes.

Watch out for

Making a timer count up when it should count down.
change timer by 1 counts up; change timer by -1 counts down.
Miscounting how many times a repeat loop needs to run.
Divide the start value by the step: from 12 in steps of 3 is 12 divided by 3, which is 4 repeats. Trace it to check.
Thinking the blocks inside an if always run.
They only run when the condition is true. With timer at 3, if timer > 5 is false, so its blocks are skipped.

Questions from the worksheet

  1. timer starts at 30, change by -5: how many times must the loop repeat for timer to reach exactly 0?
  2. timer stores 3. Does if timer > 5 then say Beep! say Beep?
  3. This timer should count down from 60 to 0, but it shows 60, 61, 62. Which block is wrong?
  4. Write a script for a countdown that starts at 20, goes down in 2s and says Go! when the timer reaches 0.
  5. Mia writes set timer to 10, then repeat 9: change timer by -1. She says the timer ends at 0. Is she right?

The answers are on the answers sheet, for grown-ups.

National curriculum in England

This worksheet practises this statement from the Years 3–6 computing programme of study:

  • Use sequence, selection, and repetition in programs; work with variables and various forms of input and output

Source: National curriculum in England: computing programmes of study (DfE)

In the classroom

  • Run the human countdown as a whole-class starter, with pupils taking turns to be the loop.
  • Use set C as a vote: show each if block and ask pupils to hold up yes or no cards.

Questions and answers

How do you make a countdown timer in block coding?

Set a timer variable to the starting number, then use a repeat loop that waits 1 second and changes the timer by -1 each time. Repeat it as many times as the starting number to reach 0.

What does an if block do?

An if block checks a condition, such as timer < 4. The blocks inside it run only when the condition is true; otherwise they are skipped.

More worksheets from Variables in Coding: Build Scores and Timers with Bit

More Year 5 technology worksheets

One for every chapter of every game, with answers.

Browse them →