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 lightLevel < 30 THEN lamp ← ON | AIF 25 < 30 THEN lamp ← ON | |
| 2IF motion = TRUE THEN securityLight ← ON | BThe comparison is the wrong way round. The lamp would switch on in bright daylight, because the reading is high, not at dusk when it is low. | |
| 3The actuator in an automated light is the part that changes the lamp, such as a dimmer making it less bright | CAn infra-red motion sensor detects a person, so the microprocessor switches the security light on automatically | |
| 4Tracing a street light at dusk: the light sensor reading falls below the stored value, so the lamp is switched on | Ddimmer ← 40 | |
| 5IF lightLevel > 30 THEN streetLamp ← ON | EThis is manual control, not automation. Automated lighting uses sensors and a microprocessor to switch lights without anyone touching a switch. | |
| 6Smart lamp turns on only when someone presses the wall switch | FA street lamp's microprocessor compares the light sensor reading with a stored value and switches the lamp on at dusk |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
automated lighting — Lights switched on, off or dimmed by sensors and a microprocessor with no one touching a switch, e.g. a street lamp that comes on when its light sensor detects dusk.IF lightLevel < darkValue THEN
lamp ← ON
ENDIFIF infraRed = TRUE THEN
securityLight ← ON
ENDIFIF lightLevel < darkValue THEN
lamp ← ON
ENDIFIF phoneNearHome = TRUE THEN
hallLight ← ON
ENDIFlightLevel ← READ(lightSensor)
IF lightLevel < 30 THEN
lamp ← ON