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 Line(60) | AThe word CALL is missing, so the procedure is not called correctly. It should be CALL Line(60). | |
| 2CALL Line(MySize) | BCALL Line(20) | |
| 3Calling the same procedure with a different value gives a different result, for example a shorter line. | CFOR Count ← 1 TO 3 CALL Line(Count * 10) NEXT Count | |
| 4A procedure can be called in a loop so that each pass sends a new value into the parameter. | DRuns the procedure Line and passes the value 60 into its parameter. | |
| 5Line(60) | ERuns the procedure Line and passes the current value stored in the variable MySize into its parameter. | |
| 6CALL Line 60 | FThe value is not in brackets. It should be CALL Line(60). |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
CALL Line(60) — CALL runs the procedure Line and passes the value 60 in brackets into its parameter. A variable can be passed too, e.g. CALL Line(MySize). Different values give different results.CALL Line(60)CALL Line(60)MySize ← 40
CALL Line(MySize)FOR Count ← 1 TO 3
CALL Line(Count)
NEXT CountFOR Count ← 1 TO 3
CALL Line(10)
NEXT Count