USB device detection and drivers

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

USB device detection and drivers

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. You plug a USB memory stick into a laptop. What does the computer do automatically?
A It detects the device and loads the driver it needs
B It waits until you install the driver from a disc
2. Which term describes a USB device working as soon as it is plugged in?
A Plug and play
B Plug and restart
3. After plugging in a USB mouse, what do you usually need to do before using it?
A Restart the computer first
B Nothing, you can use it straight away
4. What is a driver?
A A cable that connects the device to the computer
B Software that lets the computer communicate with a device
5. Which statement about USB device detection is correct?
A The computer detects a newly plugged in device automatically
B The user must tell the computer that a device has been plugged in

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1plug and play AThe computer detects the device automatically and loads the driver it needs itself. The user does not have to install it manually first.
2driver BWith plug and play, the computer does not need to be restarted. The device works straight away after it is detected and its driver is loaded.
3The computer detects a USB device as soon as it is plugged in, without the user doing anything CThe computer automatically detects a newly connected USB device and loads its driver so it works straight away
4After detecting a USB device, the computer loads the driver and the device works with no restart DDevice detected -> driver loaded -> use device now (no restart)
5Plug in USB webcam -> restart computer -> webcam works ESoftware the computer loads so the operating system can communicate with a USB device
6Plug in USB printer -> user manually finds and installs driver -> detected FPlug in USB mouse -> computer detects device automatically

Definitions

plug and play

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
__ usbPluggedIn = TRUE THEN loadDriver() ENDIF
2.
IF plugAndPlay = ____ THEN OUTPUT "No restart" ENDIF
3.
IF deviceDetected = TRUE ____ loadDriver() ENDIF
4.
IF deviceDetected = TRUE THEN __________() ENDIF
5.
plugAndPlay ← TRUE restartNeeded ← _____

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A REMOVE(usb_device)
B computer DETECTS usb_device
C computer LOADS driver
D usb_device WORKS
Question 2
A device ← USB_MOUSE
B detected ← RESTART(device)
C IF detected = TRUE THEN
D LOAD_DRIVER(device)
Question 3
A PLUG_IN(printer)
B OS DETECTS printer
C OS DELETES printer driver
D printer WORKS
Question 4
A PLUG_IN(webcam)
B found ← DETECT(webcam)
C LOAD_DRIVER(webcam)
D OUTPUT 'Restart to use'
Question 5
A PLUG_IN(keyboard)
B DETECT(keyboard)
C LOAD_DRIVER(printer)
D keyboard WORKS

Answer Key

USB device detection and drivers
Section A: Quick Questions
Q1
A — It detects the device and loads the driver it needs
Q2
A — Plug and play
Q3
B — Nothing, you can use it straight away
Q4
B — Software that lets the computer communicate with a device
Q5
A — The computer detects a newly plugged in device automatically
Section B: Match the Pairs
Q1
plug and play → The computer automatically detects a newly connected USB device and loads its driver so it works straight away
Q2
driver → Software the computer loads so the operating system can communicate with a USB device
Q3
The computer detects a USB device as soon as it is plugged in, without the user doing anything → Plug in USB mouse -> computer detects device automatically
Q4
After detecting a USB device, the computer loads the driver and the device works with no restart → Device detected -> driver loaded -> use device now (no restart)
Q5
Plug in USB webcam -> restart computer -> webcam works → With plug and play, the computer does not need to be restarted. The device works straight away after it is detected and its driver is loaded.
Q6
Plug in USB printer -> user manually finds and installs driver -> detected → The computer detects the device automatically and loads the driver it needs itself. The user does not have to install it manually first.
Section C: Definitions
Q1
plug and play — When a USB device is plugged in, the computer automatically detects it and loads the driver it needs, so the device works straight away with no need to restart.
Section D: Fill in the Blanks
Q1
IF usbPluggedIn = TRUE THEN loadDriver() ENDIF
Q2
IF plugAndPlay = TRUE THEN OUTPUT "No restart" ENDIF
Q3
IF deviceDetected = TRUE THEN loadDriver() ENDIF
Q4
IF deviceDetected = TRUE THEN loadDriver() ENDIF
Q5
plugAndPlay ← TRUE restartNeeded ← FALSE
Section E: Spot the Error
Q1
A — Plug and play starts when the device is plugged in. Removing it would not start detection. Line 1 should be PLUG_IN(usb_device).
Q2
B — The computer detects a USB device automatically. It does not restart to find it. Line 2 should be detected ← DETECT(device).
Q3
C — Once the device is detected, the operating system loads the driver it needs. It does not delete it. Line 3 should be OS LOADS printer driver.
Q4
D — With plug and play the device works straight away with no need to restart. Line 4 should output that it is ready with no restart.
Q5
C — The computer must load the driver for the device that was plugged in, which is the keyboard. Line 3 should be LOAD_DRIVER(keyboard).