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 | |
|---|---|---|
| 1result = 10 % 0 | AError: Use ** not ^ for powers | |
| 22 ^ 3 | BOk: 2 to the power 10 | |
| 310 % 2 == 0 | COutput: 2 | |
| 42 ** 10 | DValid: Check if even | |
| 5print(17 // 5) | EError: Modulo by zero | |
| 6print(17 % 5) | FOutput: 3 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
// — Floor division - divides and rounds DOWN to the nearest integer.~~%print(10 // 3) # Result: 3print(10 % 3) # Result: 1print(2 ** 3) # Result: 8print(7 % 2) # Result: 1 (remainder)print(5 ** 2) # Result: 25