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 | |
|---|---|---|
| 1detect_device(usb_port) | AIF driver_found = FALSE THEN device_works ← FALSE | |
| 2load_driver(printer) | BThe OS notices that a new peripheral has been plugged in so it can set it up for use | |
| 3The OS controls the data passing between a program and a peripheral | CThe webcam is marked as working before the driver is loaded. The OS must load the correct driver first, and only then can the device be used. | |
| 4If there is no driver for a device, the OS cannot use the device and it does not work | DThe OS loads the mouse driver but then passes the mouse data to a different device, so the data goes to the wrong peripheral. It should pass the data to the program that needs it. | |
| 5plug_in(webcam) webcam_works ← TRUE load_driver(webcam) | Esend_data(document, printer) | |
| 6load_driver(mouse) send_data(mouse, keyboard) | FThe OS finds and loads the correct driver so the printer can be used |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
peripheral management — The OS controls data passing to and from peripherals and loads the correct driver for each device so it can be used. Without a driver, the device does not work.IF newDevice = TRUE THEN
loadDriver(newDevice)
ENDIFIF driverFound = FALSE THEN
OUTPUT "Device does not work"
ENDIFsendData(printer, document)driver ← findDriver(device)IF driverFound = TRUE THEN
OUTPUT "Device ready"
ENDIF