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 | |
|---|---|---|
| 1Washing machine or microwave | AAn embedded system in a car that controls fuel injection and engine timing using sensor data | |
| 2Car engine management | BIF money >= price THEN release_item | |
| 3An embedded system in a security system uses sensors and sounds a siren when it detects movement | CA domestic appliance that uses an embedded system to control its timer, temperature and programs | |
| 4An embedded system in a vending machine checks the money inserted and releases the chosen item | DAutomatic lighting uses an embedded system with a fixed program. Users do not install or run different programs on it. | |
| 5A vending machine is a general-purpose computer because it has a processor | EIF motion_sensor = TRUE THEN sound_alarm | |
| 6Automatic lighting is controlled by the user running different programs on it | FA processor does not make a device general-purpose. A vending machine has an embedded system that does one set job: selling items. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
embedded system — A computer built into a device to do one set job, such as in a washing machine, car engine control, alarm, automatic lighting or vending machine.IF doorClosed = TRUE THEN
OUTPUT "Start wash"
ENDIFIF fuelLevel < 10 THEN
OUTPUT "Low fuel"
ENDIFIF movement = TRUE THEN
OUTPUT "ALARM"
ENDIFIF lightLevel < 30 THEN
OUTPUT "Lamp on"
ENDIFWHILE moneyIn < price
INPUT coin
ENDWHILE