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 | |
|---|---|---|
| 1MOD(10, 3) | AGives 0, because 4 divides 12 exactly with nothing left over | |
| 2MOD(12, 4) | BGives 1, because 3 goes into 10 three times (9) and 1 is left over | |
| 3Find the leftover minutes after taking 130 minutes and removing whole hours | CIF MOD(Number, 2) = 0 THEN | |
| 4Check whether a whole number is even by testing if the remainder after dividing by 2 is 0 | DMOD needs two arguments, a and b. Only one was given, so it cannot work out a remainder. It should be MOD(10, 3). | |
| 5OUTPUT MOD(10) | Eleftover ← MOD(130, 60) | |
| 6OUTPUT MOD(3, 10) | FThe arguments are in the wrong order. To get the remainder of 10 divided by 3 it should be MOD(10, 3), which gives 1. MOD(3, 10) gives 3. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
MOD(a, b) — Returns the remainder left when a is divided by b. MOD(10, 3) is 1. The result is 0 when b divides a exactly. Example: MOD(130, 60) gives the 10 leftover minutes.OUTPUT MOD(10, 3)Minutes ← MOD(130, 60)LeftoverMinutes ← MOD(130, 60)
OUTPUT LeftoverMinutesIF MOD(Number, 2) = 0 THEN
OUTPUT "Even"
ENDIFHours ← 130 DIV 60
Minutes ← MOD(130, 60)
OUTPUT Hours, Minutes