Ruled

Input and output devices

The devices that get data in and results out — keyboards, pointing devices, scanners and the recognition family; monitors, the printer types and plotters.

An input device converts data from a form people can produce into the binary form a computer can hold. An output device does the reverse.

Some devices do both and are called input/output devices: a touchscreen, a modem, a network card, a disk drive, a headset.

Input devices

Keyboard

The standard text input device. A typical keyboard has 104 keys in five groups:

GroupKeys
AlphanumericLetters, digits, punctuation — the QWERTY layout
Numeric keypadDigits and arithmetic operators, for fast numeric entry
Function keysF1–F12, whose meaning depends on the program
Cursor controlArrows, Home, End, Page Up, Page Down
Special / modifierEnter, Shift, Ctrl, Alt, Caps Lock, Esc, Tab, Backspace, Delete

Pointing devices

  • Mouse. Moves a pointer on screen; actions are click, double-click, right-click and drag. Optical or laser mice track movement by photographing the surface many times a second; the older mechanical mouse used a rolling ball.
  • Trackball. A stationary ball rotated by the fingers. Needs no desk space.
  • Touchpad. A pressure-sensitive surface, standard on laptops.
  • Joystick. A lever pivoting in a socket, reporting direction and tilt. Games, simulators, and controlling machinery.
  • Light pen. A pen-shaped photosensor pointed directly at the screen.
  • Touchscreen. Both input and output in one surface. Resistive screens respond to pressure from anything; capacitive screens sense the change in an electric field caused by a finger, which is why they need skin or a special stylus and support multi-touch.
  • Graphics tablet / digitiser. A flat pad and a stylus, converting drawn strokes into coordinates. Used for design and freehand illustration.

Scanning and recognition devices

  • Scanner. Shines light across a document and records the reflection to produce an image. A scan alone is a picture of text, not text — the characters are not editable until OCR is applied.
  • OCR — Optical Character Recognition. Software that examines a scanned image and identifies the characters, turning a picture of text into editable text.
  • OMR — Optical Mark Recognition. Detects the presence or absence of a mark in a fixed position. Used for multiple-choice answer sheets and objective examinations. It reads marks, not characters.
  • MICR — Magnetic Ink Character Recognition. Reads characters printed in ink containing iron oxide, in the special E-13B font. Used for the code line at the foot of bank cheques, because it can be read reliably even through a stamp or a signature.
  • Barcode reader. Reads the pattern of thick and thin bars encoding a product number. Retail billing, libraries, inventory.
  • QR code reader. Reads a two-dimensional code, which holds far more data than a barcode and can be read at any angle.
  • Biometric devices. Fingerprint, iris, face and voice recognition — identification from a physical characteristic rather than a password.
  • Smart card reader. Reads the chip embedded in a card.
  • MIDI keyboard, microphone, digital camera, webcam — capture sound, images and video.

The four recognition devices are the classic exam question. Fix them by what each recognises: OCR — characters from an image; OMR — a mark in a position; MICR — magnetic characters on cheques; barcode — a bar pattern encoding a number.

Output devices

Output is either soft copy — temporary, on a screen — or hard copy — permanent, on paper.

Monitors (VDU)

Quality is described by:

  • Resolution — the number of pixels, as , e.g. . More pixels means a sharper image.
  • Pixel. A picture element, the smallest addressable dot on the screen.
  • Refresh rate — how many times a second the image is redrawn, in Hz.
  • Dot pitch — the distance between adjacent pixels. Smaller is sharper.

Types:

TypeBasisNotes
CRTCathode ray tube; electron beam on phosphorBulky, heavy, hot, obsolete
LCDLiquid crystals shutter a backlightThin, light, low power
LEDAn LCD panel with an LED backlightBrighter, thinner, better contrast
OLEDEach pixel emits its own lightTrue black, very high contrast, no backlight

Printers

The first division is impact against non-impact: does the printing mechanism physically strike the paper?

Impact printers strike an inked ribbon against the paper. Noisy, lower quality, cheap to run, and able to print through carbon paper to make multiple copies at once — which is why they survive for railway tickets, invoices and bank passbooks.

  • Dot matrix printer. A print head of pins strikes the ribbon; characters are formed from a matrix of dots (9-pin or 24-pin — more pins, better quality). A character printer: it prints one character at a time.
  • Daisy wheel printer. A wheel of pre-formed characters strikes the ribbon. Good letter quality, but only one typeface and no graphics. Obsolete.
  • Line printerdrum and chain printers print a whole line at a time and are very fast; used with mainframes.

Non-impact printers never touch the paper. Quiet, high quality, but cannot make carbon copies.

  • Inkjet printer. Sprays microscopic droplets of liquid ink through nozzles. Cheap to buy, excellent colour and photographs, but expensive per page and the ink can smudge or dry out. A character printer.
  • Laser printer. A laser writes the page image as an electrostatic charge pattern on a rotating drum; toner (a dry powder) sticks to the charged areas, is transferred to the paper and fused by heat. A page printer — it composes and prints a whole page at a time. Fast, sharp, cheap per page, and the office standard.
  • Thermal printer. Heats special heat-sensitive paper. Used for receipts and billing counters; the print fades over time.
ImpactNon-impact
Contact with paperYes, through a ribbonNo
NoiseLoudQuiet
QualityLowerHigh
SpeedLowerHigher
Carbon copiesYesNo
Cost per pageLowHigher (inkjet), low (laser)
ExamplesDot matrix, daisy wheel, line printerInkjet, laser, thermal

By how much is printed at once:

  • Character printers — dot matrix, daisy wheel, inkjet
  • Line printers — drum, chain
  • Page printers — laser

Print quality is measured in DPI (dots per inch) and speed in CPS (characters per second) for character printers, LPM (lines per minute) for line printers, or PPM (pages per minute) for page printers.

Plotters

Draw with one or more pens moving across the paper, producing accurate line drawings at very large sizes. Used for engineering and architectural drawings and maps. Drum plotters move the paper past a fixed pen carriage; flatbed plotters hold the paper still and move the pen over it.

Other output devices

Speakers and headphones (audio), projector (a large shared display), 3-D printer (builds a physical object layer by layer), speech synthesiser.

Worked examples

2 solved

Every step is shown, in the order you would write it in an answer book.

Example 1

Choosing the right recognition device

Question

Name the input device best suited to each, with a reason: (a) processing 40,000 multiple-choice answer sheets, (b) clearing bank cheques, (c) converting a printed book into an editable file, (d) billing at a supermarket counter.

  1. (a) Answer sheets

    What must be detected is only whether a bubble is filled at a known position — no characters are involved.

    OMR (Optical Mark Recognition). Fast, and reliable because it looks only for the presence of a mark.

  2. (b) Cheques

    The code line must be readable even though the cheque may be folded, stamped, signed over or smudged. Ink containing iron oxide can be read magnetically regardless of what is printed on top of it.

    MICR (Magnetic Ink Character Recognition), using the E-13B font.

  3. (c) A printed book

    Two stages are needed. A scanner produces an image of each page — but an image of text cannot be edited. OCR software then identifies the characters in that image and produces editable text.

    Scanner + OCR. Naming only the scanner is the common half-answer.

  4. (d) Supermarket billing

    Each product carries a printed pattern of bars encoding its product number, which is looked up in the shop's database for name and price.

    Barcode reader.

Answer

(a) OMR (b) MICR (c) scanner followed by OCR (d) barcode reader.

NoteA scanner alone gives you a picture of text. OCR is what makes it text. Exam answers must say both.

Example 2

Choosing a printer from the requirement

Question

Recommend a printer for each, with justification: (a) a railway booking counter printing a ticket and two carbon copies, (b) a college office printing 500 pages of notices a day, (c) a photographer printing colour photographs, (d) an architect printing an A0 building plan.

  1. (a) Ticket with carbon copies

    Only an impact printer can transfer an image through carbon paper to sheets underneath, because the printing action is a physical strike.

    Dot matrix printer. Print quality hardly matters; the multiple-copy requirement decides it, and no non-impact printer can meet it.

  2. (b) 500 pages a day of plain text

    High volume, sharp text, low cost per page and speed all matter; colour and photographic quality do not.

    Laser printer. A page printer, so it is fast, and toner is far cheaper per page than ink.

  3. (c) Colour photographs

    What matters is continuous-tone colour on glossy paper; speed and cost per page do not.

    Inkjet printer. Liquid ink blends smoothly and reproduces photographs better than toner.

  4. (d) An A0 building plan

    The output is a very large, dimensionally accurate line drawing, far bigger than any sheet a normal printer accepts.

    Plotter, which draws with pens on large paper and holds accuracy across the whole sheet.

  5. The reasoning pattern

    In every case the requirement names one constraint that only one technology satisfies: carbon copies → impact; volume and cost → laser; photographic colour → inkjet; very large accurate lines → plotter. Identify that constraint first and the answer follows.

Answer

(a) dot matrix (impact, for carbon copies) (b) laser (c) inkjet (d) plotter.

Practice problems

6 with solutions

Work each one on paper first. The full solution — not just the answer — is one click away.

Problem 1Basic

List the five groups of keys on a standard keyboard, with two examples from each.

Show solution
GroupPurposeExamples
AlphanumericText entry, in the QWERTY layoutA–Z, 0–9, punctuation
Numeric keypadFast entry of numbers and arithmeticThe right-hand digit block, and
Function keysProgram-specific commandsF1 (help), F5 (refresh)
Cursor controlMoving the insertion pointArrow keys, Home, End, Page Up/Down
Special / modifierControl the effect of other keys or the systemEnter, Shift, Ctrl, Alt, Esc, Tab, Caps Lock, Backspace, Delete

A standard keyboard has about 104 keys. Note that Backspace deletes to the left of the cursor and Delete to the right — a distinction questions sometimes ask for.

AnswerAlphanumeric, numeric keypad, function, cursor control, and special/modifier keys.
Problem 2Basic

Define resolution, pixel, refresh rate and dot pitch.

Show solution
  • Pixelpicture element: the smallest individually addressable dot on a display. Every image is built from pixels.

  • Resolution — the total number of pixels on the screen, written , for example (Full HD). Higher resolution means finer detail and more content visible at once.

  • Refresh rate — the number of times per second the whole image is redrawn, measured in hertz (Hz). Hz is standard; higher rates give smoother motion. On old CRT monitors a low refresh rate produced visible flicker.

  • Dot pitch — the distance between the centres of two adjacent pixels, in millimetres. Smaller is better: a smaller dot pitch packs pixels closer, giving a sharper image.

Note that resolution alone does not fix sharpness — looks razor sharp on a phone and coarse on a large television, because the same pixel count is spread over a larger area, giving a larger dot pitch.

AnswerPixel = smallest addressable dot; resolution = pixel count as width × height; refresh rate = redraws per second in Hz; dot pitch = distance between adjacent pixels, smaller being sharper.
Problem 3Exam level

Distinguish between impact and non-impact printers, and describe two examples of each.

Show solution
Impact printerNon-impact printer
MechanismStrikes an inked ribbon against the paperNever touches the paper
NoiseLoudQuiet
Print qualityLowerHigh to very high
SpeedLowerHigher
Multiple (carbon) copiesPossibleNot possible
GraphicsLimitedFull
Cost per pageLowLow (laser) to high (inkjet)

Impact — two examples.

  1. Dot matrix printer. The print head carries a vertical column of pins; selected pins are driven forward to strike the ribbon, so each character is formed from a matrix of dots. 9-pin heads give draft quality, 24-pin heads near-letter quality. A character printer. Still used where carbon copies are needed — railway tickets, invoices, bank passbooks.

  2. Line printer (drum or chain). Prints an entire line at a time rather than a character, making it very fast. A drum printer carries the character set on a rotating drum; a chain printer on a revolving chain. Used with mainframes for very high volume listings.

Non-impact — two examples.

  1. Inkjet printer. Sprays extremely fine droplets of liquid ink through nozzles onto the paper. Inexpensive to buy, excellent colour and photographic reproduction, but high cost per page and ink that can smudge or dry in the nozzles.

  2. Laser printer. A laser beam writes the page image as a pattern of electrostatic charge on a rotating drum; dry toner powder clings to the charged regions, is transferred to the paper and fused by heat. A page printer — it assembles and prints a complete page at a time. Fast, very sharp, and cheap per page, making it the office standard.

The decisive difference to state in an answer: only an impact printer can produce carbon copies, because only it applies physical pressure to the paper.

AnswerImpact printers strike a ribbon against paper — noisy, lower quality, but can make carbon copies (dot matrix, line printer). Non-impact printers never touch the paper — quiet and high quality but no carbon copies (inkjet, laser).
Problem 4Exam level

Explain OCR, OMR, MICR and barcode readers, and state one application of each.

Show solution

All four read data from a printed document, but each recognises something different.

1. OCR — Optical Character Recognition. Software that examines a scanned image and identifies the shapes in it as characters, converting a picture of text into editable, searchable text. Works on printed and, less reliably, handwritten text.
Application: digitising printed books, records and forms; reading vehicle number plates.

2. OMR — Optical Mark Recognition. Detects only the presence or absence of a mark at a fixed, predetermined position on a specially printed sheet. It does not identify characters at all, which is exactly why it is so fast and so accurate.
Application: marking multiple-choice examination answer sheets; ballot papers; survey forms.

3. MICR — Magnetic Ink Character Recognition. Reads characters printed in ink containing iron oxide, in the standard E-13B font, by magnetising the ink and sensing the pattern. Because the reading is magnetic rather than optical, it succeeds even when the characters are overprinted, stamped, folded or smudged, and it is very hard to forge.
Application: the code line at the foot of bank cheques, giving cheque number, bank and branch code and account number.

4. Barcode reader. Scans a printed pattern of parallel bars of varying thickness that encodes a number, and passes that number to a program which looks up the corresponding record. A QR code reader does the same for a two-dimensional code, which holds much more data and can be read at any angle.
Application: retail billing and stock control; library book issue; parcel tracking.

How to keep them apart: OCR reads characters, OMR reads marks, MICR reads magnetic characters, and a barcode reader reads a bar pattern.

AnswerOCR = characters from an image (digitising books); OMR = marks at fixed positions (answer sheets); MICR = magnetic-ink characters (cheques); barcode reader = bar patterns encoding a number (retail billing).
Problem 5Exam level

What is a plotter? How does it differ from a printer, and what are its two types?

Show solution

A plotter is a hard-copy output device that draws with one or more pens moved mechanically across the paper under program control. Rather than depositing dots to build an image, it draws continuous lines from point to point.

Differences from a printer.

PrinterPlotter
Forms the image fromDotsContinuous drawn lines
Best atText and photographsAccurate line drawings
Paper sizeUsually up to A4/A3Very large — A1, A0 and wider
AccuracyAdequate for documentsDimensionally precise
SpeedFastSlow
CostLow to moderateHigh

Two types.

  1. Drum plotter. The paper is wrapped round a rotating drum. The drum turns the paper along one axis while the pen carriage moves along the other, so the two motions together trace any line. Because the paper can keep rolling, a drum plotter can produce a drawing of almost unlimited length while occupying little floor space.

  2. Flatbed plotter. The paper lies flat and stationary on a bed, and the pen moves over it in both directions. Accuracy is higher, since the paper never moves, but the machine must be at least as large as the biggest sheet it can take.

Applications. Engineering and architectural drawings, circuit layouts, maps and survey plans, and graph plotting — all cases where the correctness of a line matters more than the appearance of text.

AnswerA plotter draws with moving pens to produce large, dimensionally accurate line drawings; printers build images from dots. The two types are drum (paper rotates) and flatbed (paper stationary).
Problem 6Challenge

A scanned page of a book cannot be edited in a word processor, but a typed page can. Explain the difference, and describe what OCR does about it.

Show solution

The two files look similar on screen but contain fundamentally different things.

A typed page is stored as character codes. The letter A is held as the number (in ASCII), and the file records a sequence of such codes together with formatting instructions. Because the file knows which characters are present, the program can search for a word, change a font, correct a spelling, count words, or read the text aloud.

A scanned page is stored as an image — a grid of pixels, each with a colour value. The file records that a certain pixel is black and its neighbour is white. It contains no characters at all. The shapes only look like letters to a human reader; to the program they are indistinguishable from a photograph of a tree. Nothing can be searched, corrected or restyled, because there is nothing there to search.

What OCR does. Optical Character Recognition bridges the two. It:

  1. pre-processes the image — straightens it, removes speckles, and reduces it to black and white
  2. segments it, locating blocks of text, then lines, then words, then individual characters
  3. recognises each isolated shape, by comparing it against stored patterns or by measuring its features, and decides which character it most probably is
  4. post-processes using a dictionary and language rules, so that a shape read ambiguously as rn can be corrected to m when the surrounding letters make a real word

The output is a file of character codes — now genuinely editable, searchable and reformattable.

Why OCR is imperfect. The recognition step is a decision under uncertainty. Poor scan quality, unusual fonts, handwriting, small print, tables, multiple columns and mixed languages all raise the error rate, and the classic confusions (/O, /l/I, rn/m) are between shapes that genuinely differ by very few pixels. This is why OCR output always needs proofreading, and why a scanned archive is usually stored as image and OCR text together — the image as the faithful record, the text so it can be searched.

AnswerA typed page stores character codes, so the program knows which characters exist; a scan stores only pixel values and contains no characters. OCR analyses the image, segments and recognises each shape, and outputs character codes — imperfectly, so the result needs proofreading.