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 | |
|---|---|---|
| 110 % 3 | AWrong - use ** instead of ^ for exponents | |
| 22 ** 4 | BRaises 2 to the power of 4 | |
| 3Checks if a number divides evenly with no remainder | CWrong - use % instead of the word mod | |
| 4Multiplies a number by itself repeatedly | Dnum % 2 === 0 | |
| 5console.log(10 mod 3); | EReturns the remainder after dividing 10 by 3 | |
| 6console.log(2 ^ 4); | F3 ** 3 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
% — An operator that returns the remainder left over after dividing one number by another.console.log(10 % 3);console.log(2 ** 4);let remainder = 7 % 2;let cube = 3 ** 3;let isEven = num % 2 === 0;