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 | |
|---|---|---|
| 1Hours ← DIV(150, 60) | ADIV gives the whole pounds (2), not the pence left over. To get the 75 pence, use MOD(275, 100). | |
| 2Minutes ← MOD(150, 60) | BDIV(a, b) * b + MOD(a, b) = a | |
| 3Check that DIV and MOD split a number correctly by rebuilding the original value a | CStores the minutes left over after taking out whole hours, which is 30 | |
| 4Test whether a number is even by using MOD with 2 as the divisor | DStores the whole number of hours in 150 minutes, which is 2 | |
| 5Pence ← DIV(275, 100) | EIF MOD(Number, 2) = 0 THEN | |
| 6Minutes ← MOD(60, 150) | FThe numbers are in the wrong order. The total goes first and the divisor second, so it should be MOD(150, 60). |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
DIV(150, 60) and MOD(150, 60) — Use DIV and MOD on the same two numbers to split a value. DIV gives the whole units (2 hours) and MOD gives what is left over (30 minutes). Check: DIV * b + MOD gives a back.Hours ← DIV(150, 60)
Minutes ← MOD(150, 60)Hours ← DIV(TotalMinutes, 60)
Minutes ← MOD(TotalMinutes, 60)Pounds ← DIV(Pence, 100)
LeftOver ← MOD(Pence, 100)Check ← DIV(a, b) * b + MOD(a, b)IF MOD(Number, 2) = 1 THEN
OUTPUT "Odd"
ENDIF