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 | |
|---|---|---|
| 1addNumbers(3, 4) | AA function call uses round brackets, not square brackets | |
| 2total ← addNumbers(3, 4) | B(3, 4) | |
| 3Writing a function's name followed by arguments in brackets | CCalls the addNumbers function with two arguments | |
| 4Values passed into a function call, matching the parameters it expects | DCalling a function | |
| 5total <- addNumbers 3, 4 | EStores the value returned by a function call in a variable | |
| 6size ← area[5, 3] | FCalling a function requires brackets around its arguments |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
addNumbers(3, 4) — Calling a function by writing its name followed by arguments in brackets, running its instructions and possibly producing a valuetotal ← addNumbers(3, 4)total ← addNumbers(3, 4)result ← multiply(6, 7)message ← greet("Sam")DISPLAY addNumbers(2, 5)