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 | |
|---|---|---|
| 1timer.run(10) | AThis is open loop, not closed loop. It runs for a fixed time and never reads the temperature, so there is no feedback signal. | |
| 2if temp < target: heater.on() | BAn open-loop control: the heater runs for a set time and never checks the result | |
| 3A feedback signal is a measurement of the result that is sent back to the controller | Cheater.on() and wait(600) and heater.off() | |
| 4An open-loop system acts for a set time or amount and does not check the result | DA timer is open loop, but this code uses a sensor reading as feedback, which makes it closed loop. | |
| 5Thermostat (closed loop): heater.on() for 10 minutes, then heater.off() | Etemp = sensor.read() | |
| 6Timer (open loop): if sensor.read() > 25: fan.off() | FA closed-loop control: it uses the temperature reading as a feedback signal to decide what to do next |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
control mechanism — Decides what a system does next. Open loop ignores the result (a timer); closed loop uses a feedback signal from the result (a thermostat).heater = ON
WAIT 10
heater = OFFreading = readSensor()
IF reading < target THEN
heater = ONtemp = readSensor()
IF temp < target THEN
heater = ONWHILE temp < target DO
heater = ON
temp = readSensor()temp = readSensor()
error = target - temp
IF error > 0 THEN heater = ON