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 | |
|---|---|---|
| 1total ← price * quantity | AShowing the total on screen is an output, not a process. Calculating the total is the process. | |
| 2IF score >= limit THEN | BA process that calculates a total by multiplying two stored values | |
| 3A process that adds up values to calculate a running total | CIF speed > 60 THEN | |
| 4A process that checks whether a value is over a limit | Dtotal ← total + mark | |
| 5Processes: name, age, score | EThese are inputs (data), not processes. A process is an action such as adding, comparing or sorting. | |
| 6Process: OUTPUT total | FA process that compares a value with a limit to make a decision |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
process — An action or calculation a solution carries out on its data, such as adding a total, comparing a value with a limit, sorting or searching, or making a decision.Total ← Total + PriceIF Speed > Limit THEN
OUTPUT "Too fast"
ENDIFFOR Count ← 1 TO 5
Total ← Total + Mark
NEXT CountIF Name = Target THEN
Found ← TRUE
ENDIFTemp ← A
A ← B
B ← Temp