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 | |
|---|---|---|
| 1Side ^ 3 | ASquare ← Number ^ 2 | |
| 2Area ← Pi * Radius ^ 2 | BAnswer ← 3 * Radius ^ 2 | |
| 3Square a number by raising it to the power 2 | CRadius * 2 doubles the radius instead of squaring it. The power operator ^ is needed, so it should be Pi * Radius ^ 2. | |
| 4Power is worked out before multiplication, so only Radius is squared | DThe bracket is opened but never closed, which is a syntax error. It should be Pi * Radius ^ 2 or Pi * (Radius ^ 2). | |
| 5Area ← Pi * Radius * 2 | ESquares Radius first, then multiplies the result by Pi | |
| 6Answer ← Pi * (Radius ^ 2 | FSide raised to the power 3, so Side * Side * Side (a cube) |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
^ — The power operator. Radius ^ 2 raises Radius to the power 2, meaning Radius * Radius. It is worked out before multiplication, so Pi * Radius ^ 2 squares Radius first.Answer ← Pi * Radius ^ 2Area ← Side ^ 2Volume ← Side ^ 3Answer ← Pi * Radius ^ 2Side ← 4
Area ← Side ^ 2
OUTPUT Area