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 | |
|---|---|---|
| 1WHILE TRUE | AThe program runs once and stops. There is no loop, so the system never checks the sensor again and the feedback loop is broken. | |
| 2IF temp < 20 THEN heater ← ON | BIF temp >= 25 THEN heater ← OFF | |
| 3The sensor reading is analogue, so an ADC converts it to digital before the microprocessor can use it | CKeeps the control loop running continuously so the sensor is read again and again | |
| 4The microprocessor compares the reading with a stored value and signals the actuator to turn off when the target is reached | DThe order is wrong. The sensor sends readings to the microprocessor, not straight to the actuator. The microprocessor then signals the actuator. | |
| 5Sensor → Actuator → Microprocessor | EThe microprocessor compares the sensor reading with the stored value and switches the actuator on | |
| 6temp ← ADC(sensor) IF temp < 20 THEN heater ← ON END | Ftemp ← ADC(sensor) |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
feedback loop — A sensor sends readings to a microprocessor, which compares them with a stored value and signals an actuator, such as a heater, to act. This repeats continuously.WHILE TRUE DO
temp ← READ_SENSOR()
ENDWHILEIF temp < 20 THEN
heater ← ON
ENDIFIF temp > setValue THEN
heater ← OFF
ENDIFdigital ← ADC(analogue)
IF digital < setValue THEN
heater ← ONIF temp < setValue THEN
heater ← ON
ENDIF