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 | |
|---|---|---|
| 1ROUND(3.14159, 2) | AReturns 3.14, the value rounded to 2 decimal places | |
| 2ROUND(7.6, 0) | BThe arguments are in the wrong order. The value comes first and the INTEGER places comes second, so it should be ROUND(8.567, 2). | |
| 3The value given to ROUND can be an identifier holding a REAL number | COUTPUT ROUND(Total / 3, 2) | |
| 4The value given to ROUND can be an expression, which is worked out first and then rounded | DThe places argument is missing. ROUND needs two arguments: the value and the number of decimal places, e.g. ROUND(8.567, 2). | |
| 5Answer ← ROUND(8.567) | EResult ← ROUND(Price, 1) | |
| 6Answer ← ROUND(2, 8.567) | FReturns 8, a whole number, because places is 0 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
ROUND(value, places) — Library routine that returns value rounded to the given number of decimal places. ROUND(3.14159, 2) gives 3.14. If places is 0, the result is a whole number.OUTPUT ROUND(3.14159, 2)OUTPUT ROUND(3.14159, 2)Total ← 7.6
Whole ← ROUND(Total, 0)Average ← ROUND(Total / Count, 1)Area ← 3.14159 * Radius * Radius
OUTPUT ROUND(Area, 2)