HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /A library uses barcodes inside its books…
HardComputer ScienceHigh School (9–10)Computer Science › Computer HardwareConceptualIGCSE

A library uses barcodes inside its books…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

A library uses barcodes inside its books. Its new posters show QR codes that link to the library's web page.

Describe how a barcode scanner reads a barcode. Then explain one difference between a barcode and a QR code, and why the posters use QR codes.

Need a reminder? The key ideaShowHide

An input device captures data from the outside world in a form the computer can process. A barcode scanner reads reflected light from bars, and a QR code scanner reads an image of a square code. A resistive screen works when two layers are pressed together, a capacitive screen when a finger draws charge, and an infra-red screen when a finger breaks beams. A 2D scanner images flat pages and a 3D scanner measures solid objects.

The worked solution

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Step 1. Reading a barcode.

  • A light shines onto the barcode.
  • The dark bars reflect little light and the white spaces reflect a lot.
  • A sensor detects the pattern of reflected light.
  • The pattern is turned into a number, the code, which is sent to the computer.

Step 2. The difference. A barcode is a row of bars, read in one direction. A QR code is a square grid of small black and white squares, read in two directions. So a QR code can hold much more data.

Step 3. The posters. A web address is far more data than a short number. It fits in a QR code. A visitor can scan it with the camera of a phone.

Answer: reflected light from the bars and spaces is detected and converted to the code. A QR code is a two-dimensional pattern that holds much more data, enough for a web address.

Log in to save this for later
← All Problems
← A museum has an infra-red touch screen. It has 48 beams of infra-red light across it and 32 beams…A school prints 500 copies of its newsletter every month… →
More onComputer Science › Computer Hardware

Discussion (0)

Log in to join the discussion.

Loading…

More on this topic

  1. A family's home network has a laptop, two phones, a games console and a printer…Hard
  2. A network tool shows the IPv4 address of a laptop in binary: 11000000.10101000.00000001.00101101…Medium
  3. A printer's network interface card has the MAC address 00:1A:2B:3C:4D:5E…Easy
  4. A small design company has five staff. Two of them often work from home…Hard
  5. A music shop sells old songs on CD and keeps its sales records on a hard disk drive…Medium
All problems on this topic →