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 ← total + mark | AIF mark >= 50 THEN OUTPUT "Pass" ELSE OUTPUT "Fail" ENDIF | |
| 2total = total + mark | BThe keywords are in lower case, but Cambridge pseudocode needs IF, THEN, OUTPUT and ENDIF in upper case. Precision matters. | |
| 3Pseudocode keywords must be written in upper case in the Cambridge format | CIF mark >= 50 THEN | |
| 4A flowchart shows a decision as a diamond with Yes and No branches, matching an IF in pseudocode | DPython's print() is program code. Paper 2 answers must use pseudocode such as OUTPUT, except the 15-mark question, which allows Python, VB or Java. | |
| 5if mark >= 50 then output "Pass" endif | EPseudocode: the Cambridge assignment arrow stores a new value in the variable | |
| 6print("Pass") in a Paper 2 pseudocode answer | FProgram code (such as Python): the equals sign is used for assignment |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
pseudocode — Cambridge's fixed format for planning an algorithm before it is written as program code. Paper 2 answers must use it, except the 15-mark question, which allows Python, VB or Java.Total ← 0OUTPUT Totalprint(Total)IF Score ≥ 50 THEN
OUTPUT "Pass"
ENDIFif Score >= 50:
print("Pass")