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 | |
|---|---|---|
| 1WHILE count <= 5 DO | AThe closing keyword should be written as END WHILE, not ENDWHILE | |
| 2END WHILE | BStarts a loop that repeats while the condition stays true | |
| 3A structure that repeats instructions while a condition remains true | CDO | |
| 4The keyword that introduces the repeated instructions after the condition | DAssignment should use ←, not = | |
| 5count ← 0 WHILE count < 3 DO DISPLAY count count ← count + 1 ENDWHILE | EWHILE loop | |
| 6n ← 1 WHILE n <= 5 DO DISPLAY n n = n + 1 END WHILE | FCloses a WHILE loop block |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
WHILE condition DO — A loop that repeats its instructions for as long as the given condition remains true, checked before each repetitionWHILE count <= 5 DOWHILE count <= 5 DO
DISPLAY count
END WHILEWHILE count <= 5 DOWHILE x > 0 DOA WHILE loop continues to repeat while its condition remains true