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 Number | AWaits for the user to type a value and stores it in the variable Number | |
| 2OUTPUT "Total is ", Total | BINPUT must be followed by a variable name, not a message. Use OUTPUT for the message, then INPUT Number to store the value. | |
| 3Prompt the user with OUTPUT before asking for a value with INPUT | COUTPUT "Enter a number" INPUT Number | |
| 4Display several items on one line by separating them with commas | DThe items are not separated by a comma. It should be OUTPUT "Total is ", Total. | |
| 5INPUT "Enter a number" | EDisplays the message Total is followed by the value stored in Total | |
| 6OUTPUT "Total is " Total | FOUTPUT "Average is ", Average |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
INPUT and OUTPUT — INPUT stores a value the user types into a variable. OUTPUT displays a message or value on screen. Show several items by separating them with commas.OUTPUT "Total is ", TotalINPUT NumberOUTPUT "Enter a number"
INPUT Number
OUTPUT "You typed ", NumberINPUT Price
OUTPUT "Price is ", PriceOUTPUT "Enter your age"
INPUT Age