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 distance < 2 then brake() | Aif rearDistance < 30 then beep() | |
| 2if carWaiting then lights = GREEN | BAn automatic traffic light uses a sensor to detect a waiting vehicle and the microprocessor changes the signal. | |
| 3Parking sensors measure how far away an obstacle is and warn the driver when the car gets too close. | CThe microprocessor compares the proximity sensor reading with a stored value and makes the braking actuator slow the vehicle when an obstacle is too close. | |
| 4A driverless train uses an infra-red sensor to detect an obstacle on the track and stops the train. | DWrong: the microprocessor can only act on data. Sensors are needed to capture information about obstacles, the road and other vehicles. | |
| 5A driverless car needs no sensors because the microprocessor already knows where every obstacle is. | Eif infraRed = OBSTACLE then stopTrain() | |
| 6The brakes are the sensor that detects a obstacle and sends data to the microprocessor. | FWrong: brakes are an actuator that act on the microprocessor's output. A proximity or infra-red sensor detects the obstacle. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
automated transport system — A vehicle or traffic system where sensors send data to a microprocessor, which controls actuators to steer, brake or signal without a driver controlling every action.distance ← readProximity()
IF distance < 10 THEN applyBrakes()
ENDIFIF obstacle = TRUE THEN
stopTrain()
ENDIFIF carWaiting = TRUE THEN
changeLight("GREEN")
ENDIFrearDistance ← readParkingSensor()
IF rearDistance < 30 THEN soundBuzzer()
ENDIFWHILE journeyActive = TRUE
stopIfObstacle()
ENDWHILE