Choose exam board for KS4 Computer Science (GCSE)
Choose exam board for KS4 English
Choose exam board for KS4 French
Choose exam board for KS4 Geography
Choose exam board for KS4 German
Choose exam board for KS4 History
Choose tier for KS4 Maths
Choose exam board for KS4 Music
Choose exam board for KS4 Physical education (GCSE)
Choose exam board for KS4 Religious education (GCSE)
Choose exam board for KS4 Spanish

      Lesson details

      Learning outcome

      I can explain how input and output devices allow users to interact with a computer system.

      Key learning points

      1. The user can use the keyboard as an input.
      2. Computers produce output through various methods.

      Keywords

      • Input - data that is sent to a program to be processed

      • Output - information produced by a computer system as a result of processing data

      Common misconception

      Input and output of a program happen automatically, without the need for coding. The computer uses it in the correct part of your program.

      Computers process instructions in code that requires input and output. The programmer needs to specify exactly where and how it should be handled.

      Teacher tip

      Stress that input gets data into the computer, and output gets information out. This is not always through a keyboard and monitor. Explore how other devices perform the same actions.

      Equipment

      Pupils will need access to a device that can edit and run Python programs. Examples in this lesson use the RPF Code Editor https://oak.link/python-editor

      Licence

      This content is © Oak National Academy Limited (2026), licensed on Open Government Licence version 3.0
      except where otherwise stated. See Oak's terms & conditions
      (Collection 2).

      Lesson video

      Loading...

      Prior knowledge starter quiz

      6 Questions

      Q1.
      Match the terms to their definitions.

      Correct Answer:IDE,a tool for writing and running programs

      a tool for writing and running programs

      Correct Answer:syntax highlighting,using colours to distinguish code elements

      using colours to distinguish code elements

      Correct Answer:compiler,converts code into a machine-readable format

      converts code into a machine-readable format

      Correct Answer:debugger,finds and fixes errors in the code

      finds and fixes errors in the code

      Q2.
      What is a key advantage of using an IDE?

      It automatically writes code for you.
      It replaces the need for programming knowledge.
      It automatically writes code for you.
      Correct answer: It combines multiple tools in one application.

      Q3.
      Which of these is an example of an output device?

      Correct answer: monitor
      keyboard
      mouse
      microphone

      Q4.
      What is an input device?

      a device used to print documents
      a device used to store data
      Correct answer: a device used to provide data to a computer
      a device used to display information from a computer

      Q5.
      What is the purpose of a debugger in an IDE?

      Correct answer: to find and fix errors in the code
      to create colourful syntax
      to run the program faster
      to write documentation

      Q6.
      Which of these is not a tool included in an IDE?

      code editor
      debugger
      compiler
      Correct answer: web browser

      6 Questions

      Q1.
      Match the devices to their roles.

      Correct Answer:keyboard,sends text and number data to a program

      sends text and number data to a program

      Correct Answer:printer,produces physical output

      produces physical output

      Correct Answer:microphone,captures audio input

      captures audio input

      Correct Answer:speaker,plays audio output

      plays audio output

      Q2.
      Put these steps in order for handling input and output in a program.

      1 - Receive input.
      2 - Process the input.
      3 - Produce output.

      Q3.
      What is output in a computer system?

      Correct answer: data produced after processing
      data sent to a program
      a type of input device
      a coding error

      Q4.
      What Python function is used to get data from the user?

      Correct Answer: input, input()

      Q5.
      What is the role of a program in managing input and output?

      to store data permanently
      to display all errors in the code
      to replace the need for input devices
      Correct answer: to process the input and generate the output

      Q6.
      What will print("Hello, World!") display?

      Correct Answer: Hello, World!

      To help you plan your 10 computer science lesson on: Input and output, download all teaching resources for free and adapt to suit your pupils' needs...