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 | |
|---|---|---|
| 1INPUT Name | AThe quotes make this display the word Name instead of the value stored in the variable. To show the variable, write OUTPUT Name. | |
| 2OUTPUT "Hello" | BINPUT needs a variable name to store the value in, not a string in quotes. It should be INPUT Name. | |
| 3Display the value stored in a variable called Name, not the word Name | CDisplays the message Hello on the screen | |
| 4Ask the user a question first, then read their answer into Age | DOUTPUT "Enter your age" INPUT Age | |
| 5INPUT "Name" | EReads a value typed by the user and stores it in the variable Name | |
| 6OUTPUT "Name" | FOUTPUT Name |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
INPUT Name — INPUT reads a value from the user into the variable Name. OUTPUT displays a value or message on screen, such as OUTPUT "Hello" or OUTPUT Name.INPUT NameOUTPUT "Hello"INPUT Name
OUTPUT NameOUTPUT "Enter your name"
INPUT NameOUTPUT "Your name?"
INPUT Name
OUTPUT Name