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 <- total + 1 do in VCAA pseudocode?Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1x <- 5 | Atotal <- 0 total <- total + price print total | |
| 2count <- count + 1 | Bscore <- 0 score <- score + 10 score <- score + 5 | |
| 3The variable name must appear on the LEFT side of the <- operator | CWrong — VCAA pseudocode uses <- for assignment, not =. The correct statement is total <- total + 1 | |
| 4A variable stores a value that can be updated at any point using the <- operator | DIncreases count by 1 — the right side is evaluated using count's current value, then the result is stored back into count | |
| 55 <- x | EAssigns the value 5 to the variable x using the VCAA pseudocode left-arrow assignment operator | |
| 6total = total + 1 | FWrong — the variable must be on the LEFT of <-, not the right. The correct form is x <- 5 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
<- — The assignment operator in VCAA pseudocode. It stores a value in a named variable: x <- 5 places the value 5 into the variable xx <- 5total <- 0count <- count + 1score <- score + pointsresult <- price * quantity