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 | |
|---|---|---|
| 1pseudocode | APseudocode does not need to run on a computer. It is for planning the logic of an algorithm, so small syntax slips matter less than clear logic. | |
| 2OUTPUT "Hello" | BTotal ← Price * Quantity | |
| 3Pseudocode shows the logic of a design, so the same idea can later be written in any programming language | CIF Score >= 50 THEN OUTPUT "Pass" ENDIF | |
| 4Pseudocode follows Cambridge 0478 style rules, such as capital-letter keywords and the arrow for assignment | Dprint() is Python syntax, so it is a programming language, not Cambridge pseudocode. Pseudocode should use OUTPUT "Hello" instead. | |
| 5print("Hello") // thinking this is pseudocode | EA Cambridge-style pseudocode line that shows a message to the user, written with a capital-letter keyword | |
| 6Pseudocode must be typed into a compiler and run without errors | FA structured, code-like way of writing an algorithm that follows set rules but does not need to run on a computer |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
pseudocode — A structured, code-like way of writing an algorithm that follows set rules but does not need to run on a computer. It shows the logic of a design, not exact programming syntax.OUTPUT "Enter a number"
INPUT Num
OUTPUT Num * 2IF Score >= 50 THEN
OUTPUT "Pass"
ENDIFINPUT Price
Total ← Price * 3
OUTPUT TotalFOR Count ← 1 TO 5
OUTPUT Count
NEXT Count// Calculate the area of a rectangle
Area ← Length * Width
OUTPUT Area