Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This Inputs, processes and outputs of an algorithm worksheet is part of the IGCSE Computer Science 0478 — 7c Pseudocode and Flowcharts journey. Print it as a booklet?
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 Mark | AAn output: the algorithm displays a message and the value of Total to the user | |
| 2OUTPUT "Total: ", Total | BThis is a process (counting stored in a variable), not an output. Nothing is shown to the user until an OUTPUT statement such as OUTPUT Count runs. | |
| 3A process: a calculation that works on the input data and stores the result in a variable | CIF Mark >= 50 THEN | |
| 4A process: a decision that chooses what happens next depending on the input | DThis is a process (a calculation stored in a variable), not an input. The input is the INPUT Mark statement that brings the value in. | |
| 5Inputs: Total ← Total + Mark | ETotal ← Total + Mark | |
| 6Outputs: Count ← Count + 1 | FAn input: the algorithm takes a value from the user and stores it in the variable Mark |
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 — Every algorithm takes INPUT data, carries out processes on it (calculations, decisions, storing in variables or arrays), then gives OUTPUT results.INPUT Price
Total ← Price * 2
OUTPUT TotalINPUT Price
INPUT Qty
Total ← Price * QtyINPUT Mark
IF Mark >= 50 THEN
OUTPUT "Pass"INPUT Age
NextAge ← Age + 1
OUTPUT NextAgeFOR Count ← 1 TO 3
INPUT Scores[Count]
NEXT Count