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 | |
|---|---|---|
| 1IF soundLevel > 85 THEN | AAn acoustic sensor detects sound, not humidity, so the data captured is the wrong type | |
| 2IF soundDetected = TRUE THEN | BThe acoustic sensor reading is compared with a limit to check whether a noise is too loud | |
| 3A noise monitoring system uses an acoustic sensor to measure how loud the sound is | CThe acoustic sensor reports that a sound is present, for example in a burglar alarm | |
| 4A glass-break detector sets off an alarm when its acoustic sensor picks up a loud, sharp sound | DIF soundLevel > 90 THEN SoundAlarm() | |
| 5humidity ← ReadAcousticSensor() | EThe output does not match the purpose of a noise monitor, which should warn about loud sound not switch on a light | |
| 6IF soundLevel > 85 THEN LightOn() | FnoiseLevel ← ReadAcousticSensor() |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
acoustic sensor — A sensor that detects sound and measures its level. Used in noise monitoring, burglar alarms and glass-break detection to show how loud a sound is or whether a sound is present.IF soundLevel > 80 THEN
OUTPUT "Too loud"
ENDIFIF soundLevel > 80 THEN
OUTPUT "Noise warning"
ENDIFalarm ← FALSE
IF soundDetected = TRUE THEN
alarm ← TRUEWHILE monitoring = TRUE DO
soundLevel ← READ_SENSOR(acoustic)
ENDWHILElimit ← 85
soundLevel ← READ_SENSOR(acoustic)
IF soundLevel > limit THEN