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 | |
|---|---|---|
| 1temperature sensor | AThis describes a moisture sensor. A temperature sensor measures how hot or cold the greenhouse air is. | |
| 2temperature > 25 -> fan ON | BAn input device that measures how hot or cold something is | |
| 3A central heating system uses a temperature sensor to switch the boiler on when a room is too cold | CA sensor is an input device. It sends temperature readings in, and the heating element is the output that heats the oven. | |
| 4A weather station uses a temperature sensor to record the air temperature at regular intervals | DIF roomTemp < 18 THEN boiler ON | |
| 5A temperature sensor measures how much moisture is in the soil of a greenhouse | EA control rule where a temperature reading above a set value turns on a fan, as in a greenhouse | |
| 6An oven uses a temperature sensor as an output device to heat the food | FairTemp <- readTemperatureSensor() |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
temperature sensor — An input device that measures how hot or cold something is. Used in central heating, ovens, greenhouses and weather stations.WHILE temperature < 180
oven_heater ← ON
ENDWHILEIF temperature < 18 THEN
heating ← ON
ENDIFIF temperature > 30 THEN
window ← OPEN
ENDIFINPUT temperature
OUTPUT "Temp: ", temperatureIF temperature <= 0 THEN
OUTPUT "Frost warning"
ENDIF