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 | |
|---|---|---|
| 1input age | AWrong — you cannot use <- with input. The correct form is `input score` with the keyword first and the variable name after it | |
| 2input a, b | BAlgorithm: compute area input length, width area <- length * width print area | |
| 3The input keyword must appear before any processing that uses the input variables | CAccepts two values from the user in one statement, storing the first in a and the second in b | |
| 4input accepts values from the user and stores them in named variables without needing the <- operator | Dinput score if score > 50 then print "Pass" end if | |
| 5score <- input | EWrong — VCAA pseudocode keywords are written in lowercase. The correct form is `input name` not `INPUT name` | |
| 6INPUT name | FAccepts a single value from the user and stores it in the variable named age |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
input — A VCAA pseudocode keyword that accepts a value from the user and stores it in a named variable. Example: input age stores the user's entered value in the variable ageinput ageinput length, heightAlgorithm: find average
input a, b
average <- (a + b) / 2Algorithm: check score
input score
if score > 50 thenAlgorithm: sum three
input x, y, z
total <- x + y + z