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 | |
|---|---|---|
| 1ask [What is your name?] and wait | AThe say block comes before the ask block, so answer is empty or holds an old reply. Ask first, then use answer. | |
| 2answer | Bask [How old are you?] and wait set [age] to (answer) | |
| 3Ask a question, then make the sprite say the reply the user typed. | Cask [Favourite food?] and wait say (answer) | |
| 4Save the user's reply in a variable so you can use it later, even after asking another question. | DThe second ask replaced answer, so pet gets the age. Save the first answer in a variable before asking again. | |
| 5say (answer) ask [What is your name?] and wait | EShows a question on the stage and waits for the user to type a reply and press enter. | |
| 6ask [Your pet's name?] and wait ask [Your age?] and wait set [pet] to (answer) | FA reporter block that holds the last reply the user typed after an ask and wait block. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
ask and wait — A block that shows a question and waits. The user types a reply, and it goes into the answer block. You can use answer straight away or save it in a variable.ask "What is your name?" and waitask "What is your name?" and waitask "What is your name?" and wait
say (answer)ask "Favourite animal?" and wait
set pet to (answer)
say (pet)ask "Favourite animal?" and wait
set pet to (answer)
say (pet)