Inputs, processes, outputs and storage

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

Inputs, processes, outputs and storage

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. A till program lets the cashier type in the barcode of each item. Which part of the requirements is this?
A Input
B Output
2. A quiz program adds up the number of correct answers. Which part of the requirements is this?
A Process
B Storage
3. A till program prints a receipt showing the total cost. Which part of the requirements is this?
A Input
B Output
4. A quiz program saves each player's high score in a file so it is still there tomorrow. Which part of the requirements is this?
A Output
B Storage
5. Which list correctly names the four parts of a program's requirements?
A Inputs, processes, outputs, storage
B Inputs, loops, outputs, variables

Match the Pairs

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

Left columnRight column
1Input: the student's quiz answer ACalculating the total is a process, not an input. The input is the data typed or scanned in, such as the item price.
2Process: add up the item prices BThe work the program does on the data, such as calculating or comparing
3An output is a result the program shows to the user after processing COutput: display the final score
4Storage is data the program keeps so it can be used again later DStorage: save every student's high score
5Till program - Input: calculate the total bill EA list of correct answers kept for checking is storage, not output. Output is what is shown to the user, such as the score.
6Quiz program - Output: the correct answers list FThe data the program takes in from the user

Definitions

Input, Process, Output, Storage

Fill in the Blanks

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

1.
// Input: take in the price of an item _____ Price
2.
// Process: work out the cost Total ← Price _ Quantity
3.
// Output: show the result ______ "Total: ", Total
4.
// Storage: keep the score for later _______ Score : INTEGER
5.
// Process: compare the score IF Score __ PassMark THEN OUTPUT "Pass"

Spot the Error

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

Question 1
A Till program requirements
B Output: price of each item
C Process: add prices to total
D Output: the final total
Question 2
A Output: the player's answers
B Process: compare with answer
C Output: Correct or Wrong
D Storage: the high score
Question 3
A INPUT Price
B INPUT Qty
C Total ← Price + Qty
D OUTPUT Total
Question 4
A Input: the player's answers
B Output: save the high score
C Process: count correct answers
D Output: show the final score
Question 5
A Score ← 0
B INPUT Answer
C IF Answer ← 4 THEN
D Score ← Score + 1
E ENDIF

Answer Key

Inputs, processes, outputs and storage
Section A: Quick Questions
Q1
A — Input
Q2
A — Process
Q3
B — Output
Q4
B — Storage
Q5
A — Inputs, processes, outputs, storage
Section B: Match the Pairs
Q1
Input: the student's quiz answer → The data the program takes in from the user
Q2
Process: add up the item prices → The work the program does on the data, such as calculating or comparing
Q3
An output is a result the program shows to the user after processing → Output: display the final score
Q4
Storage is data the program keeps so it can be used again later → Storage: save every student's high score
Q5
Till program - Input: calculate the total bill → Calculating the total is a process, not an input. The input is the data typed or scanned in, such as the item price.
Q6
Quiz program - Output: the correct answers list → A list of correct answers kept for checking is storage, not output. Output is what is shown to the user, such as the score.
Section C: Definitions
Q1
Input, Process, Output, Storage — The four parts of a program's requirements: the data it takes in, the work it does on that data, the results it shows, and the data it keeps for later.
Section D: Fill in the Blanks
Q1
// Input: take in the price of an item INPUT Price
Q2
// Process: work out the cost Total ← Price * Quantity
Q3
// Output: show the result OUTPUT "Total: ", Total
Q4
// Storage: keep the score for later DECLARE Score : INTEGER
Q5
// Process: compare the score IF Score >= PassMark THEN OUTPUT "Pass"
Section E: Spot the Error
Q1
B — The price of each item is typed in by the user, so it is an Input. It should read 'Input: price of each item'. Output is for results the program shows.
Q2
A — The player's answers are data going into the program, so they are an Input, not an Output. It should read 'Input: the player's answers'.
Q3
C — The process is a calculation. The total cost is the price multiplied by the quantity, so the line should be Total ← Price * Qty.
Q4
B — Saving the high score for later is Storage, because it is data the program keeps. It should read 'Storage: save the high score'.
Q5
C — The process of comparing the answer with the correct one needs the relational operator =, not the assignment arrow. It should be IF Answer = 4 THEN.