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 | |
|---|---|---|
| 1Total ← Price * Quantity | AMultiplies Price by Quantity and stores the result in Total | |
| 2Average ← Sum / Count | BDivides Sum by Count and stores the result in Average | |
| 3Work out a percentage by multiplying the score by 100, then dividing by the maximum mark, and storing it in a variable | CThe letter x is not a multiplication operator in pseudocode. Use * instead: Area ← Length * Width | |
| 4Add two numbers together and store the result in a variable | DThe result must be stored on the left of the ← operator, with the expression on the right: NewScore ← Score + 5 | |
| 5Area ← Length x Width | ETotal ← Mark1 + Mark2 | |
| 6Score + 5 ← NewScore | FAnswer ← Score * 100 / MaxMark |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
+ - * / — The arithmetic operators in pseudocode: + adds, - subtracts, * multiplies and / divides. Example: Answer ← Score * 100 / MaxMark stores the result in a variable.Answer ← Score * 100 / MaxMarkAnswer ← Score * 100 / MaxMarkTotal ← Price + TaxChange ← Paid - CostAnswer ← Score * 100 / MaxMark