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 | |
|---|---|---|
| 1Label: "Enter your name:" | AA label that shows prompt text telling the user what to type | |
| 2Textbox: nameBox | BA text box is for the user to type in. Showing a result needs a label with output text. | |
| 3A label can show the result as output text after the program has worked it out | CThe text box has no label, so the user does not know what to type. It needs a prompt label such as "Enter your age:". | |
| 4A label next to a text box tells the user what to type, so they know what the box is for | DA text box where the user can type in their answer | |
| 5Textbox: "Type your age here" (used to show the final score) | ELabel: "Favourite animal:" | Textbox: animalBox | |
| 6Textbox: ageBox (no label beside it) | FLabel: "Your total is " + total |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
text box and label — A text box lets the user type in an answer. A label is words on the screen that tell the user what to type (prompt text) or show the result (output text).LABEL "Type your name:"
TEXTBOX nameLABEL "Type your name:"
TEXTBOX nameLABEL "Type your age:"
TEXTBOX ageLABEL "Pick a number:"
TEXTBOX number
LABEL "You typed " + numberLABEL "Enter your name:"
TEXTBOX name
LABEL "Hello, " + name