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 | |
|---|---|---|
| 1Algorithm: find the larger input a, b if a > b then print a | AWrong — the Algorithm header requires a colon: `Algorithm: find the sum`. Without the colon the header does not follow VCAA pseudocode convention | |
| 2Begin result <- a + b Print result End | BA complete VCE Software Development pseudocode algorithm: Begin opens the body, statements are indented inside, and End closes it | |
| 3The Algorithm: header must be the first line of a VCAA maths pseudocode algorithm and uses a capital A and a colon | CWrong — the keyword must have a capital A: `Algorithm: find total`. Lowercase `algorithm` does not follow VCAA convention | |
| 4In VCE Software Development pseudocode, Begin opens and End closes the algorithm body; all statements inside are indented | DAlgorithm: compute average input x, y average <- (x + y) / 2 print average | |
| 5algorithm: find total input a, b total <- a + b | EA complete VCAA maths pseudocode algorithm: Algorithm header names it, input collects values, then processing and output follow in order | |
| 6Algorithm find the sum input a, b print a + b | FBegin score <- x * 10 Print score End |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Algorithm: — The required header keyword that names a VCAA maths pseudocode algorithm. Written as Algorithm: followed by a descriptive name, it must appear as the first line before input or processingAlgorithm: calculate area
input l, w
area <- l * wAlgorithm: find the total
input a, b
total <- a + bAlgorithm: check age
input age
if age >= 18 thenBegin
total <- a + b
Print total
EndBegin
result <- x * 2
Print result
End