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 | |
|---|---|---|
| 1IF score > 10 THEN OUTPUT "Pass" ELSE OUTPUT "Try again" | AELSE is indented in line with the steps instead of lining up with its IF. It should start in the same column as IF. | |
| 2REPEAT 3 TIMES OUTPUT "Hello" | BThe keywords if, then and output are in lowercase. They should be written in capitals: IF, THEN and OUTPUT. | |
| 3Write one step per line, with keywords in capitals | CThe indented step is repeated; the keywords are in capitals | |
| 4Indent a nested block further than the block around it | DELSE lines up with its IF, and the steps inside each part are indented | |
| 5if age >= 13 then output "Teen" | ESET total TO 0 INPUT age OUTPUT age | |
| 6IF score > 10 THEN OUTPUT "Pass" ELSE OUTPUT "Try again" | FREPEAT 5 TIMES IF key = "Q" THEN OUTPUT "Quit" |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
pseudocode layout — Write keywords like IF, THEN, ELSE and REPEAT in capitals, one step per line, and indent the steps inside each structure so ELSE lines up with its IF.IF score >= 50 THEN
OUTPUT "Pass"
ELSEREPEAT 3 TIMES
OUTPUT "Hi"
END REPEATIF age >= 13 THEN
OUTPUT "Teen"
END IFIF raining THEN
OUTPUT "Take umbrella"
END IFREPEAT
count ← count + 1
UNTIL count = 5