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 | |
|---|---|---|
| 1light sensor | AIF light_level < 60 THEN grow_lamp ← ON | |
| 2light level | BA light sensor measures brightness (light level), not temperature. A temperature sensor measures how hot or cold it is. | |
| 3An automatic street light uses a light sensor to detect when it gets dark so the lamp can switch on | CThe data a light sensor captures, showing how bright or dark it is | |
| 4A greenhouse uses a light sensor to check there is enough light for plants, and adds lamps if it is too dim | DAn input device that measures how bright the light is and sends the light level to a computer | |
| 5A light sensor measures the temperature of a room | EIF light_level < 30 THEN lamp ← ON | |
| 6Screen brightness: the light sensor is an output device that shows the picture | FA light sensor is an input device. It measures the room light and sends it to the computer, which then changes the screen brightness. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
light sensor — An input device that measures how bright the light is and sends the light level to a computer. Used in automatic street lights, screen brightness and greenhouses.INPUT lightLevelINPUT lightLevel
IF lightLevel < 30 THEN
OUTPUT "Street light ON"IF lightLevel < 30 THEN
streetLight ← "ON"
ENDIFIF lightLevel > 70 THEN
screenBrightness ← 100
ENDIFIF lightLevel < 50 THEN
OUTPUT "Grow lamp ON"
ENDIF