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 | |
|---|---|---|
| 1OUTPUT Score | AOUTPUT Score * 2 | |
| 2OUTPUT "You have ", Lives, " lives left" | BOUTPUT "Game over" | |
| 3Text must be written inside double quotes so it is displayed exactly as written | CThe commas are missing between the values. Each text and variable must be separated by commas. | |
| 4An expression can be output and the result of the calculation is displayed | DThe variable name is inside double quotes, so the word Score is displayed instead of the value stored in the variable. Remove the quotes to output the value. | |
| 5OUTPUT "Score" | EDisplays the current value stored in the variable Score on the screen | |
| 6OUTPUT "You have " Lives " lives left" | FDisplays text and a variable value together, with the values separated by commas |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
OUTPUT — Displays text in double quotes, variable values or expressions on screen. Several values are separated by commas, e.g. OUTPUT "Score: ", ScoreScore ← 50
OUTPUT "Score: ", ScoreLives ← 3
OUTPUT "You have ", Lives, " lives left"Score ← 10
Bonus ← 5
OUTPUT Score + BonusName ← "Sam"
OUTPUT "Hello ", NamePrice ← 8
Qty ← 3
OUTPUT "Cost: ", Price * Qty