Barcode scanner
An input device that shines a laser across a barcode. Black lines absorb light, white gaps reflect it, and a sensor reads the pattern to get the product number.
Understanding Barcode scanner in IGCSE Computer Science Paper 1
What it does: The difference between absorbed and reflected light creates the pattern that the sensor reads. The barcode only stores a number, so the system searches a database with it to get the product details such as the price. A barcode scanner usually uses a laser to sweep light across the barcode so the reflected light can be read. It sends data into the computer, so it is an input device. Checkouts scan barcodes to find each product's price. Playing music is done by a speaker, an output device. Scanning an item identifies the product, so the database can reduce its stock count when it is sold or increase it when it is delivered.
Common mistakes: Black lines absorb light, they do not reflect it. The line should be: black lines ABSORB light. The sensor reads the reflected light pattern, it does not write to it. It should be sensor.read(light).
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 252–261) and word search (Modules 240–261).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
barcode scannerFill in the Blanks
Spot the Error
Student with a class code? Join your class →