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 | |
|---|---|---|
| 1Score >= 50 | AScore > 50 | |
| 2Age < 18 | BThe < operator leaves out 18, so a person aged exactly 18 gives FALSE. To include 18, use <=. | |
| 3To include the boundary value 100 when checking the largest allowed mark, use 'less than or equal to' | CTRUE when Score is 50 or more, so a Score of exactly 50 is included | |
| 4To test that a value is strictly above the boundary, so 50 itself gives FALSE, use 'greater than' | DTRUE only when Age is less than 18, so an Age of exactly 18 is not included | |
| 5IF Score => 50 THEN | EThe operator is written the wrong way round. Cambridge pseudocode uses >=, not =>. | |
| 6IF Age < 18 THEN // 18 should be included | FMark <= 100 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
< <= > >= — Relational operators that compare the size of two values and give TRUE or FALSE. < and > leave out the boundary value; <= and >= include it, so 50 >= 50 is TRUE but 50 > 50 is FALSE.IF Score >= 50 THEN
OUTPUT "Pass"
ENDIFIF Age < 18 THEN
OUTPUT "Under 18"
ENDIFResult <- 50 <= 50
OUTPUT ResultWHILE Lives > 0 DO
Lives <- Lives - 1
ENDWHILEAdult <- Age >= 18
OUTPUT Adult