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 | |
|---|---|---|
| 1CALL DefaultLine | ARuns the same procedure twice, once for each CALL line | |
| 2CALL DefaultLine CALL DefaultLine | BCALL is a complete statement on its own line and must not be placed inside OUTPUT. It should just be CALL DefaultLine. | |
| 3A procedure call is a complete statement, so it sits on its own line without OUTPUT or an assignment | CIF score >= 50 THEN CALL DefaultLine ELSE CALL DefaultLine ENDIF | |
| 4CALL can be used inside a selection, so the procedure runs only when its branch is chosen | DRuns the procedure named DefaultLine as a complete statement on its own line | |
| 5DefaultLine | EThe keyword CALL is missing, so this is only a name and does not run the procedure. It should be CALL DefaultLine. | |
| 6OUTPUT CALL DefaultLine | FCALL DefaultLine |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
CALL DefaultLine — CALL followed by a procedure name runs that procedure. It is a complete statement written on its own line, e.g. CALL DefaultLine. Control returns to the next line afterwards.CALL DefaultLineCALL DefaultLine
OUTPUT "Score"
CALL DefaultLineCALL DefaultLine
OUTPUT "Menu"
CALL DefaultLineIF Score > 50 THEN
CALL DefaultLine
ENDIFIF Score > 50 THEN CALL Pass ELSE CALL Retry