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 | |
|---|---|---|
| 1let age = 12; | Avar total = 100; | |
| 2const name = "Sam"; | Bconst | |
| 3The older, less preferred way to declare variables | CWrong - the keyword 'let' must be lowercase | |
| 4Signals to other developers that a value is fixed | DDeclares a variable that can never be reassigned | |
| 5const pi = 3.14; pi = 3.15; | EDeclares a variable that can change later | |
| 6LET score = 0; | FWrong - const variables can't be reassigned |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
let — Declares a variable whose value can be changed later.let age = 12const name = "Sam"let score = 0;
score = score + 1var total = 100const pi = 3.14