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 | |
|---|---|---|
| 1print(Colour.green + "Level up!") | AColour should start with an uppercase C, not lowercase colour | |
| 2print(Colour.red + "Warning!") | BColour.blue | |
| 3A value joined with + to a string to change its printed colour | CThe colour name should not be written in quotation marks | |
| 4The word after the dot specifying which colour to use | DDisplays the text in green | |
| 5print(colour.red + "Warning!") | EDisplays the text in red | |
| 6print(Colour."red" + "Game Over") | FColour. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Colour.red — A value joined to a string with + inside print() to change the colour of the displayed textprint(Colour.green + "Level up!")print(Colour.red + "Warning!")print(Colour.blue + "Great job!")print(Colour.gold + "Score: 100")print(Colour.purple + "Bye!")