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 sensor_reading = 999 THEN | AThe microprocessor only sees what the sensor sends. A faulty sensor gives wrong data, so wrong decisions are made. | |
| 2IF mains_power = OFF THEN | BConnected systems can be hacked. A cyber attack can change settings or stop the system, so security is needed. | |
| 3A backup power supply keeps the automated system working during a power cut | CIF system_fault = TRUE THEN SWITCH TO manual_control ENDIF | |
| 4Manual control lets a person take over when the automated system fails | DA faulty sensor is sending a wrong reading, so the system may react incorrectly | |
| 5A hacker cannot harm a system that is connected to a network | EIF mains_power = OFF THEN USE battery_backup ENDIF | |
| 6A faulty sensor is not a problem because the microprocessor always knows the right reading | FA power cut has happened, so the system may stop working unless there is a backup |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
system failure — When an automated system stops working or is harmed, for example by a faulty sensor, a power cut or hacking, so the whole process may fail. A backup or manual control helps.IF sensorValue < 0 THEN
OUTPUT "Sensor fault"
ENDIFIF mainPower = FALSE THEN
backupOn ← TRUE
ENDIFIF attempts > 3 THEN
OUTPUT "Possible hacking"
ENDIFIF autoFailed = TRUE THEN
mode ← "MANUAL"
ENDIFIF temp < -50 OR temp > 150 THEN
OUTPUT "Faulty sensor"
ENDIF