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 | |
|---|---|---|
| 1say("Hello!", 1) | Asay("I am spoken", 1) print("I am visible") | |
| 2say("Hi!", 1) say("Hey!", 2) | BSpeaks the text Hello! aloud using voice number 1 | |
| 3The second argument in say() selects the voice | CA two-speaker conversation using different voice numbers | |
| 4say() produces spoken audio; print() shows text in the console | DWrong — say() requires two arguments: the text and a voice number | |
| 5say("Goodbye!") | Esay("Welcome!", 2) | |
| 6Say("Hello!", 1) | FWrong — say() must be all lowercase; Say() with a capital S is not recognised |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
say() — A custom function that speaks text aloud using text-to-speech; the first argument is the text to speak and the second argument is the voice numbersay("Hello there!", 1)say("Good morning!", 1)say("Hello!", 1)
say("Hi back!", 2)say("How are you?", 2)say("Goodbye!", 1)
# This uses say for audio output