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 | |
|---|---|---|
| 117 DIV 5 | ADIV gives the quotient, not the remainder. To test for even, use Number MOD 2 = 0. | |
| 217 MOD 5 | BResult ← 7 / 2 | |
| 3The / operator gives a real result, so dividing 7 by 2 gives 3.5 | C/ gives the real result 3.4, not the whole number 3. Use 17 DIV 5 to get the whole-number quotient. | |
| 4Brackets set the order, so the addition is done before the multiplication and the answer is 20 | DTotal ← (2 + 3) * 4 | |
| 5Pages ← 17 / 5 OUTPUT Pages (meant to find whole pages, expecting 3) | EGives the remainder after dividing, so the result is 2 | |
| 6IF Number DIV 2 = 0 THEN (meant to test for an even number) | FGives the whole-number quotient, so the result is 3 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
+ - * / DIV MOD — Arithmetic operators: + - * / calculate with numbers, and / gives a real result. DIV gives the whole-number quotient and MOD the remainder, so 17 DIV 5 is 3 and 17 MOD 5 is 2.Quotient ← 17 DIV 5Remainder ← 17 MOD 5Average ← Total / CountHours ← TotalMins DIV 60
Mins ← TotalMins MOD 60Mean ← (Score1 + Score2) / 2