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 Answer | AINPUT Length INPUT Width | |
| 2OUTPUT "Enter your age" | BOUTPUT "Enter your name" INPUT Name | |
| 3Show a prompt first, then read the user's value into a variable | CTwo variables are listed in one INPUT. Each INPUT must read into only one variable, so use INPUT Length then INPUT Width on separate lines. | |
| 4Use one variable per INPUT to read two separate values | DINPUT needs a variable name, not a prompt string. Use OUTPUT for the prompt and then INPUT Age to store the value. | |
| 5INPUT Length, Width | EReads a value typed by the user and stores it in the variable Answer | |
| 6INPUT "Enter your age" | FShows a prompt message so the user knows what to type before the INPUT |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
INPUT Answer — INPUT followed by a variable name reads a value typed by the user and stores it in that variable. Use one variable per INPUT, and OUTPUT a prompt first.INPUT AnswerDECLARE Age : INTEGER
OUTPUT "Enter your age"
INPUT AgeOUTPUT "Enter your name"
INPUT NameDECLARE Score : INTEGER
OUTPUT "Enter your score"
INPUT ScoreOUTPUT "Enter a number"
INPUT Number
OUTPUT Number * 2