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 "You have ", Lives, " lives left" | AThe commas between the values are missing. Each value in an OUTPUT must be separated by a comma. | |
| 2OUTPUT "Score: ", Score | BOUTPUT "Hello ", Name, "!" | |
| 3Spaces you want displayed must be placed inside the quotes of the text | CDisplays the words Score: followed by the value stored in the variable Score | |
| 4Text and variables can be mixed in one OUTPUT, with commas between each value | DThere is no space inside the quotes after the colon, so the output shows Score:10 with no gap. | |
| 5OUTPUT "You have " Lives " lives left" | EOUTPUT "Name: ", Name | |
| 6OUTPUT "Score:", Score | FDisplays text, then the value of Lives, then more text, all on one line |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
OUTPUT "You have ", Lives, " lives left" — One OUTPUT command can display several values, separated by commas. Mix text in quotes with variables. Any spaces you want shown must be inside the quotes.OUTPUT "You have ", Lives, " lives left"Lives ← 3
OUTPUT "You have ", Lives, " lives left"Coins ← 25
OUTPUT "Coins: ", Coins, " gold"Lives ← 3
OUTPUT "You have ", Lives, " lives left"DECLARE Lives : INTEGER
Lives ← 3
OUTPUT "Lives: ", Lives