← IGCSE Computer Science Paper 1

USB device detection and drivers

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.

Understanding USB device detection and drivers in IGCSE Computer Science Paper 1

What it does: Automatic detection is the first part of plug and play, so no manual setup is needed. Plug and play means the driver is loaded automatically and the user does not need to restart the computer. With USB, the operating system detects the new device and loads the driver it needs without the user doing anything.

Common mistakes: Plug and play starts when the device is plugged in. Removing it would not start detection. Line 1 should be PLUG_IN(usb_device). The computer detects a USB device automatically. It does not restart to find it. Line 2 should be detected ← DETECT(device).

Class: _____________________  ·  Name: _____________________  ·  Date: _________

Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.

This module's key terms are also in a printable crossword (Modules 131–141) and word search (Modules 121–141).

Take this worksheet further — free with Cloodit

Each concept is reinforced from every angle — learned, then applied, then tested.

Learning
Duo
You plug a USB memory stick into a laptop. What does the computer do automatically?
It waits until you install the driver from a discIt detects the device and loads the driver it needs
Matches
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.
Applying
Meanings
Term
plug and play
Meaning
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.
Practice
WHEN USB device is plugged in
Testing
Gaps
usbPluggedIn = TRUE THEN
Check Answer
Spots
1REMOVE(usb_device)
2computer DETECTS usb_device

Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.

The 'Golden Phoenix' badge — Savannah Legend, one of Cloodit's 106 collectible badges
Students earn collectable badges

Over 100 of them, across seven natural biomes.

Study Buddy
Students build a real study resource

Turns their work into revision material ready for Flash Cards and Exam study.

Diamond Dash — one of Cloodit's live, competitive Sprint games
Students lock in with Sprints

Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.

A Cloodit certificate of achievement, ready to personalise and print
Custom printable certificates

Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.

Quick Questions

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
With USB, the operating system detects the new device and loads the driver it needs without the user doing anything.
2. Which term describes a USB device working as soon as it is plugged in?
A. Plug and play ✓
B. Plug and restart
Plug and play means the computer sets up the device automatically so it can be used straight away.
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 ✓
Because USB is plug and play, there is no need to restart the computer.
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 ✓
A driver is software that tells the operating system how to control and talk to a device. The cable is not the driver.
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
Automatic detection is a key part of plug and play. The user does not need to tell the computer.

Match the Pairs

plug and play → The computer automatically detects a newly connected USB device and loads its driver so it works straight away
driver → Software the computer loads so the operating system can communicate with a USB device
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
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)
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.
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.

Key Term

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.

Fill in the Blanks

1. IF usbPluggedIn = TRUE THEN loadDriver() ENDIF
Hint: Type the keyword that starts a selection, so the computer only acts when a USB device has been plugged in.
2. IF plugAndPlay = TRUE THEN OUTPUT "No restart" ENDIF
Hint: Type the Boolean value that means plug and play is switched on for the USB device.
3. IF deviceDetected = TRUE THEN loadDriver() ENDIF
Hint: Type the keyword that comes after the condition and before the action that runs when the device is detected.
4. IF deviceDetected = TRUE THEN loadDriver() ENDIF
Hint: Type the name of the subroutine that makes the computer load the driver the device needs.
5. plugAndPlay ← TRUE restartNeeded ← FALSE
Hint: Type the Boolean value that shows the computer does not need a restart before the USB device works.

Spot the Error

Question 1
A REMOVE(usb_device)
B computer DETECTS usb_device
C computer LOADS driver
D usb_device WORKS
Line 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).
Question 2
A device ← USB_MOUSE
B detected ← RESTART(device)
C IF detected = TRUE THEN
D LOAD_DRIVER(device)
Line B — The computer detects a USB device automatically. It does not restart to find it. Line 2 should be detected ← DETECT(device).
Question 3
A PLUG_IN(printer)
B OS DETECTS printer
C OS DELETES printer driver
D printer WORKS
Line 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.
Question 4
A PLUG_IN(webcam)
B found ← DETECT(webcam)
C LOAD_DRIVER(webcam)
D OUTPUT 'Restart to use'
Line 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.
Question 5
A PLUG_IN(keyboard)
B DETECT(keyboard)
C LOAD_DRIVER(printer)
D keyboard WORKS
Line 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).

Student with a class code? Join your class →