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 | |
|---|---|---|
| 1gas sensor | AA gas sensor measures gas concentration, not temperature. A temperature sensor measures temperature. | |
| 2gas concentration | BThe data a gas sensor captures: how much of a particular gas is in the air | |
| 3A gas sensor in a carbon monoxide alarm detects a dangerous gas and triggers a warning | CA gas sensor is an input device. It detects gas in the air and does not release it. | |
| 4A breathalyser uses a gas sensor to measure the alcohol concentration in a person's breath | Dreading = gas_sensor.read("alcohol") | |
| 5A gas sensor is an output device that releases gas into the air | EAn input device that detects the presence or concentration of a particular gas in the air | |
| 6A gas sensor in a gas leak detector measures the temperature of the room | Fif gas_sensor >= safe_limit: sound_alarm() |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
gas sensor — An input device that detects the presence or concentration of a particular gas in the air, e.g. in carbon monoxide alarms, gas leak detection, air quality checks and breathalysers.IF coLevel > 50 THEN
OUTPUT "Sound alarm"
ENDIFgasLevel ← gasSensor.READ()IF gasLevel > 30 THEN
OUTPUT "Gas leak!"
ENDIFIF alcoholLevel > limit THEN
OUTPUT "Over the limit"
ENDIFREPEAT
airLevel ← gasSensor.READ()
UNTIL airLevel > 50