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 | |
|---|---|---|
| 1OUTPUT "Welcome, " & Name | AShows a message on the screen that joins a greeting to the user's name | |
| 2OUTPUT "Heater ON" | BINPUT is used where OUTPUT is needed. INPUT takes data in from the user, but a message that shows a result must use OUTPUT. | |
| 3A result shown on a screen is an output | COUTPUT "Sprinkler ON" | |
| 4A signal that controls an actuator is an output | DOUTPUT "Your total is ", Total | |
| 5INPUT "Your score is ", Score | EThese are inputs, not outputs. The keypad and door sensor send data in. The outputs would be the siren and a warning message. | |
| 6Outputs for an alarm system: keypad code, door sensor | FGives a signal or message that tells a device to switch on |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
output — The result a solution gives out, such as a message on screen, a printout, a sound or a signal that switches a device on or off.OUTPUT "Your total is ", TotalTotal ← Price * Quantity
OUTPUT TotalIF Temp > 30 THEN
OUTPUT "FAN ON"
ENDIFINPUT Name
OUTPUT "Hello ", NameFOR Count ← 1 TO 3
OUTPUT Count
NEXT Count