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 | |
|---|---|---|
| 1FOR i FROM 1 TO 10 | AThe closing keyword should be written as END FOR, not ENDFOR | |
| 2END FOR | BFOR loop | |
| 3A structure that repeats instructions a fixed number of times | CAssignment in pseudocode should use ←, not = | |
| 4The keyword that sets where the loop variable stops counting | DStarts a loop counting i from 1 up to 10 | |
| 5FOR i FROM 1 TO 10 DISPLAY i ENDFOR | ECloses a FOR loop block | |
| 6FOR j FROM 1 TO 5 j = j + 1 END FOR | FTO |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
FOR i FROM 1 TO n — A loop that repeats its instructions a fixed number of times, counting the variable i from 1 up to nFOR i FROM 1 TO 5FOR i FROM 1 TO 5FOR i FROM 1 TO 5FOR i FROM 1 TO 5
DISPLAY i
END FORFOR count FROM 1 TO 10