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 | |
|---|---|---|
| 1DIV(10, 3) | AGroups ← DIV(30, 4) | |
| 2DIV(125, 60) | BDIV does not return decimals. DIV(10, 3) returns 3, not 3.33, because the fractional part is discarded. | |
| 3Store how many whole groups of 4 fit into 30 | COUTPUT DIV(Minutes, 60) | |
| 4Output the whole hours in a number of minutes stored in Minutes | DReturns 2, the number of whole hours in 125 minutes | |
| 5Result ← DIV(10, 3) OUTPUT Result // expects 3.33 | EReturns 3, because 3 whole groups of 3 fit into 10 and the remainder is discarded | |
| 6Hours ← DIV(60, Minutes) | FThe arguments are in the wrong order. To find whole hours, the minutes must be divided by 60, so it should be DIV(Minutes, 60). |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
DIV(a, b) — Divides a by b and returns only the whole number part, discarding any remainder. DIV(10, 3) returns 3, so it counts how many whole groups of 3 fit into 10.OUTPUT DIV(10, 3)Hours ← DIV(150, 60)DECLARE TotalMinutes : INTEGER
Hours ← DIV(TotalMinutes, 60)DECLARE Groups : INTEGER
Groups ← DIV(17, 5)DECLARE Groups : INTEGER
Groups ← DIV(10, 3)
OUTPUT Groups