Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1INPUT PIN | AATM: the card PIN typed by the customer is data going in, so it goes in the input group | |
| 2balance ← balance - amount | BATM: working out the new balance is something the program does, so it goes in the process group | |
| 3Quiz game: the high-score table must be kept after the game ends, so it is sorted as storage | CStorage is missing. The account balance and PIN must be kept somewhere, so the check for missing parts was skipped. | |
| 4Greenhouse: a sensor reading is data coming in, and the check against the limit is a process that decides what happens next | DIF temperature > 30 THEN OPEN window | |
| 5Quiz game decomposition: Input = score is displayed on screen | EWRITE highScores TO file | |
| 6ATM decomposition: Input = PIN, Process = check PIN, Output = notes given out (no storage listed) | FShowing the score on screen is an output, not an input. Input is data the player enters, such as an answer. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Input, Process, Output, Storage — Read the scenario and sort every part into input (data in), process (what is done), output (result shown) or storage (data kept). Then check nothing is missing or in the wrong group.Typing the PIN at an ATM is an inputChecking the PIN matches is a processShowing the cash amount is an outputQuiz high scores kept in a file are storageSensor reads temperature: input
Compare with the target: process
Switch fan on or off: output