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 | |
|---|---|---|
| 1Diamond: Mark >= 50? Yes → OUTPUT "Pass", No → OUTPUT "Fail" | AConvert the diamond into IF ... THEN ... ELSE ... ENDIF, with each branch becoming its own statement | |
| 2Diamond: Count < 10? Yes → process → arrow back above the diamond | BREPEAT INPUT Number UNTIL Number >= 1 | |
| 3A flowchart loop tests at the bottom, and a back arrow returns when the answer is No (invalid), so it becomes a REPEAT loop | CThe ENDIF is missing, so the decision from the flowchart is not closed | |
| 4Every statement in a flowchart must be written with the keywords in capitals once it is turned into pseudocode | DA FOR loop is closed with NEXT, not ENDFOR, so the wrong closing keyword was written | |
| 5IF Age >= 18 THEN OUTPUT "Adult" ELSE OUTPUT "Child" | EIF Score > 70 THEN OUTPUT "Merit" ENDIF | |
| 6FOR Count ← 1 TO 5 OUTPUT Count ENDFOR | FA back arrow to before the test means a loop; testing first with Yes continuing the loop gives WHILE ... DO ... ENDWHILE |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Flowchart to pseudocode — Follow the flow lines and turn each symbol into a statement. A diamond becomes IF, a back arrow shows a loop, and you add ENDIF, NEXT, ENDWHILE or UNTIL. Write keywords in capitals.IF Mark >= 50 THEN
OUTPUT "Pass"
ENDIFWHILE Lives > 0 DO
Lives ← Lives - 1
ENDWHILEREPEAT
INPUT Guess
UNTIL Guess = 7FOR Count ← 1 TO 5
OUTPUT Count
NEXT CountINPUT Num
Total ← Total + Num
OUTPUT Total