Inputs and outputs worksheet for Years 5–6

Members Chapter 4 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

Inputs and Outputs is a printable computing worksheet for Years 5 and 6 (ages 9 to 11) that teaches children to store a person's input in a variable and show it as an output. 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 4 · Inputs and outputs: asking, storing and showing · read aloud ▶ Play chapter 4 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

Sort devices into inputs and outputs, store what someone types in a variable and show its value, and predict what a guess-my-number program says. Includes a gadget hunt at home, code to trace and write, and an answers sheet.

Page 1 · Learn
A keyboard, an ask-and-say script and a screen show input, variable and output, with a worked example of what the program says when Leo types his name.
Page 2 · Try it together
Gadget hunt: find four gadgets at home, such as a phone, a TV or a doorbell, and list their inputs and outputs in a table.
Pages 2–4 · Practise
Sort eight devices, trace two ask-and-say programs, tell a variable's name from its value, predict a guess-my-number program and write a program that asks for an age.
Answers sheet
Every answer by page, what to watch out for (mixing up inputs and outputs, showing a name instead of a value) and ideas to go further.

4 A4 pages and an answers sheet · about 30 minutes

Using it at home

  • On the gadget hunt, look but don't touch anything hot or plugged in. Ask: is information going in or coming out?
  • Act out the Learn page: you are the computer. Ask a question, write the answer on a slip labelled name, then say it back.

Watch out for

Mixing up inputs and outputs.
Ask: is information going into the computer (input) or coming out of it (output)?
Showing a variable's name instead of the value stored in it.
say "name" shows the word name. Use the variable block to show what it stores.
Mixing up greater than and less than in a condition.
Read the sign as words: guess > 7 means guess is greater than 7.

Questions from the worksheet

  1. Sort these into inputs and outputs: microphone, speaker, keyboard, screen, mouse, printer, camera, headphones.
  2. name stores Sam. What does say "name" show? What does the name variable block show?
  3. Write a program that asks "How old are you?", stores the answer in age, and says "Hello, explorer!" if age is more than 9.
  4. Sam says, "A screen is an input, because you look at it." Is he right? Explain.

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

  • Play guess my number as a class, with one pupil answering only too high, too low or you got it.
  • Use the gadget hunt table with classroom devices in pairs, then share which device has the most inputs.

Questions and answers

What is the difference between an input and an output?

An input is information going into a computer, such as typing, clicking or speaking. An output is information coming out, such as words on a screen, sound or light.

How is an input stored in a program?

The program asks a question, then stores the answer in a variable, such as set name to answer. It can then use or show that value later.

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 →