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 | ATwo variables are listed in one INPUT. Each INPUT must read into only one variable. | |
| 2INPUT Scores[3] | BOUTPUT "Enter your age" INPUT Age | |
| 3Show a prompt with OUTPUT first, then read the user's reply into a variable | CReads a value typed by the user and stores it in element 3 of the array Scores | |
| 4Use one variable per INPUT, so two values need two INPUT statements | DINPUT Length INPUT Width | |
| 5INPUT Length, Width | EA prompt in quotes is placed after INPUT instead of a variable name. INPUT needs a variable, and the prompt belongs in an OUTPUT statement. | |
| 6INPUT "Enter a number" | FReads a value typed by the user and stores it in the variable Answer |
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 AgeINPUT Width
INPUT HeightFOR Index ← 1 TO 5
INPUT Scores[Index]
NEXT IndexOUTPUT "Enter your name: "
INPUT Name