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) | AReturns 3, the whole-number part of 10 divided by 3, with the remainder discarded | |
| 2DIV(17, 5) | BDIV discards the fractional part, so DIV(7, 2) is 3, not 3.5. Use 7 / 2 to get 3.5. | |
| 3Find how many whole 60-minute hours are in a number of minutes stored in Minutes | CDIV(14, 4) returns the quotient 3, not the remainder 2. The remainder is found with MOD(14, 4). | |
| 4Find how many full packs of 6 can be made from Total eggs | DReturns 3, because 5 goes into 17 three whole times | |
| 5Result ← DIV(7, 2) // Result is 3.5 | EFullPacks ← DIV(Total, 6) | |
| 6Left ← DIV(14, 4) // Left is 2, the remainder | FHours ← 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) — Returns the whole-number quotient of a divided by b, discarding the fractional part. For example, DIV(10, 3) returns 3. Both a and b are integers.OUTPUT DIV(10, 3)OUTPUT DIV(17, 5) // gives 3INPUT Minutes
Hours ← DIV(Minutes, 60)
OUTPUT HoursDECLARE Packs : INTEGER
Packs ← DIV(50, 12)
OUTPUT PacksStudents ← 95
Rows ← DIV(Students, 10)
OUTPUT Rows // shows 9