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.
total DIV 4 return when total is 10?15 MOD 4 evaluate to in pseudocode?Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1area <- length * width | AWrong — x is not a valid pseudocode operator. The multiplication operator is the asterisk *. The correct form is `area <- length * width` | |
| 2remainder <- total MOD 7 | BDivides total by 7 and stores only the remainder in the variable remainder — for example if total is 22 the result is 1 | |
| 3DIV returns the whole number part of a division, discarding any remainder | Cquotient <- 17 DIV 5 | |
| 4The + operator adds two values and the - operator subtracts one value from another | Dtotal <- a + b profit <- revenue - cost | |
| 5area <- length x width | EWrong — the caret ^ is not a standard VCAA pseudocode operator. To square a value, multiply it by itself: `result <- a * a` | |
| 6result <- a ^ 2 | FMultiplies length by width using the * operator and stores the result in area |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
MOD — The pseudocode operator that returns the remainder after integer division. Example: 10 MOD 3 gives 1 because 10 divided by 3 is 3 remainder 1total <- price * quantityaverage <- (a + b) / 2remainder <- total MOD 7quotient <- total DIV 4profit <- revenue - cost