Input, process, output and storage

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Input, process, output and storage

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which stage of a digital system takes in data from the user?
A Output
B Input
2. A student types a number into a calculator app. The calculator adds it to another number. Which stage is the adding?
A Process
B Store
3. Which stage keeps data so it can be used again later?
A Store
B Input
4. Which is an example of the output stage?
A A microphone records your voice
B A printer prints a photo
5. A digital system is made of input, process, store and output.
A True: every digital system takes in data, processes it, stores it and outputs a result
B False: only computers with a screen use these stages

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1input ATyping sends data into the system, so it is input, not output. Output is what the system shows back.
2process Bstore
3A digital system keeps data so it can be used again later Coutput
4A digital system shows the result of its work to the user, such as a picture on a screen DData going into a digital system, such as a key press or a tap on a screen
5Typing on a keyboard is output EThe system works on the data, such as adding up numbers or sorting a list
6input -> output -> process -> store FThe stages are in the wrong order. Data must be processed before the result is output.

Definitions

input, process, store, output

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
Typing on a keyboard is the _____ stage
2.
The CPU does the _______ stage
3.
Saving a file to a disk is the _____ stage
4.
Showing a result on a screen is ______
5.
Task: play a song Store: song file on the phone Output: _______

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A name = input('Name? ')
B greeting = 'Hi ' - name
C print(greeting)
Question 2
A a = int(print('First? '))
B b = int(input('Second? '))
C total = a + b
D print(total)
Question 3
A score = 10
B file = open('score.txt', 'r')
C file.write(str(score))
D file.close()
Question 4
A temp = int(input('Temp? '))
B if temp > 25:
C print(Hot)
D else:
E print('Cool')
Question 5
A OUTPUT: scan barcode
B PROCESS: look up the price
C STORE: save sale in database
D OUTPUT: show price on screen

Answer Key

Input, process, output and storage
Section A: Quick Questions
Q1
B — Input
Q2
A — Process
Q3
A — Store
Q4
B — A printer prints a photo
Q5
A — True: every digital system takes in data, processes it, stores it and outputs a result
Section B: Match the Pairs
Q1
input → Data going into a digital system, such as a key press or a tap on a screen
Q2
process → The system works on the data, such as adding up numbers or sorting a list
Q3
A digital system keeps data so it can be used again later → store
Q4
A digital system shows the result of its work to the user, such as a picture on a screen → output
Q5
Typing on a keyboard is output → Typing sends data into the system, so it is input, not output. Output is what the system shows back.
Q6
input -> output -> process -> store → The stages are in the wrong order. Data must be processed before the result is output.
Section C: Definitions
Q1
input, process, store, output — A digital system takes in data (input), works on it (process), keeps it (store) and shows a result (output).
Section D: Fill in the Blanks
Q1
Typing on a keyboard is the input stage
Q2
The CPU does the process stage
Q3
Saving a file to a disk is the store stage
Q4
Showing a result on a screen is output
Q5
Task: play a song Store: song file on the phone Output: speaker
Section E: Spot the Error
Q1
B — The process stage joins the text together. Strings are joined with +, not -. It should be greeting = 'Hi ' + name.
Q2
A — Taking data in is the input stage, which needs input(). print() is an output command. It should be a = int(input('First? ')).
Q3
B — The storage stage saves data to a file, so the file must be opened in write mode 'w'. Mode 'r' only reads. It should be open('score.txt', 'w').
Q4
C — The output text must be in quotes. Without them Python looks for a variable called Hot. It should be print('Hot').
Q5
A — Scanning a barcode takes data in, so it is the input stage, not output. Line 1 should start with INPUT.