Open up the computer! Meet the devices that take information in and send it out, the CPU that thinks with lightning speed, and the memories that remember โ some only for a moment, some for years.
~40 min read6 quick checksTest: 20 questions
1Input, output โ or both?
A computer talks to the world through devices (also called peripherals). Ask one question about each device: does it send information into the computer, or bring it out?
Input device โ puts data and instructions into the computer. Example: keyboard.
Output device โ shows or gives us the result from the computer. Example: monitor.
Some devices do both. A touch screen shows pictures (output) and feels your finger (input).
Information flows in through input devices and out through output devices.
2Input devices & the keyboard
Keyboard
Used to type letters, numbers and commands. Most keyboards are QWERTY keyboards โ named after the first six letters on the top letter row.
Mouse
A pointing device. Move it to move the pointer; click, double-click, right-click, drag and scroll. Invented by Douglas Engelbart in 1964.
Scanner
Copies a paper page or photo into the computer as a picture.
Barcode reader
Reads the black-and-white stripes (barcode) on a product, so the price appears at once โ used at supermarket counters.
Microphone
Takes in sound, such as your voice.
Webcam / digital camera
Take in pictures and videos, for example in a video call.
Joystick
A stick used to play games and control movement.
Light pen
A pen-shaped device used to point or draw directly on the screen.
Touchpad
The flat pad on a laptop that works like a mouse.
Biometric (fingerprint) scanner
Reads your fingerprint to check who you are.
MICR
Magnetic Ink Character Recognition โ banks use it to read the special numbers printed at the bottom of cheques.
A replica of Engelbart's first mouse, seen from below โ a wooden box with two metal wheels.Photo: Science Museum Group, CC BY 4.0 via Wikimedia CommonsA barcode reader scanning a package.Photo: IAEA Imagebank, CC BY-SA 2.0 via Wikimedia Commons
Special keys on the keyboard
Purple = function keys ยท pink = toggle key ยท orange = modifier keys ยท green = editing keys.
Kind of key
Keys
What they do
Function keys
F1 to F12
Special jobs in each program. F1 = Help, F2 = Rename, F5 = Refresh.
Toggle keys
Caps Lock, Num Lock, Scroll Lock
Press once to turn ON, press again to turn OFF โ like a light switch. Caps Lock ON types CAPITAL letters.
Modifier (combination) keys
Shift, Ctrl, Alt, โ Win
Work only while held down with another key: Shift + a = A; Ctrl + C = Copy.
Editing keys
Backspace, Delete, Insert
Backspace erases the character to the left of the cursor; Delete erases the character to the right.
Other important keys
Enter, Spacebar, Tab, Esc
Enter starts a new line or says "OK"; Spacebar (the longest key) gives a space; Tab jumps forward; Esc cancels.
Navigation keys
Arrow keys, Home, End, Page Up, Page Down
Move the cursor around the screen and page.
Numeric keypad
Keys 0โ9 on the right
Type numbers quickly, like a calculator โ works when Num Lock is ON.
โ ๏ธ Olympiad trap
Shift also gives capital letters โ but only while you hold it down, so it is a modifier key, not a toggle key. The toggle keys are Caps Lock, Num Lock and Scroll Lock.
At a shop, the cashier points a device at the stripes on a biscuit packet and the price appears. Which input device is it?
Scanner
Barcode reader
Light pen
Plotter
A barcode reader reads the pattern of stripes. A scanner copies a whole page as a picture, and a plotter is an output device.
3Output devices & printers
Monitor (VDU)
Shows text, pictures and videos โ the soft copy. Old monitors were bulky CRT ones; today's are thin, flat LCD and LED screens.
Printer
Prints output on paper โ the hard copy.
Plotter
Prints very large, detailed drawings like building plans, maps and charts.
Speakers & headphones
Give sound output. Headphones let only you hear it.
Projector
Shows the computer screen as a big picture on a wall or white screen.
Impact and non-impact printers
Printer
Type
How it prints
Good to know
Dot-matrix
Impact (it hits the paper)
Tiny pins strike an ink ribbon against the paper, making letters out of dots.
Noisy, slow, cheap to run; can print carbon copies. Used for bills and bank passbooks.
Inkjet
Non-impact
Sprays tiny drops of liquid ink onto the paper.
Quiet; good for colour photos at home.
Laser
Non-impact
A laser beam and dry toner powder, like a photocopier.
Very fast, quiet and sharp โ used in offices and for desktop publishing (DTP).
A dot-matrix printer โ an impact printer.Photo: Jud McCranie, CC BY-SA 4.0 via Wikimedia Commons
Remember:Dot-matrix = Dots hammered through a ribbon (noisy). Inkjet = Ink spray. Laser = Lightning fast with toner.
โ ๏ธ Olympiad trap
A scanner and a printer look alike but are opposites: the scanner is input (paper โ computer), the printer is output (computer โ paper). A keyboard with little lights on it is still only an input device.
Which printer uses dry toner powder and is the fastest of the three?
Dot-matrix printer
Inkjet printer
Plotter
Laser printer
Laser printers use toner powder and print very fast. Inkjets spray liquid ink; dot-matrix printers strike a ribbon with pins.
4The CPU โ the brain of the computer
The CPU (Central Processing Unit), also called the processor, does all the processing and controls every other part โ just like your brain controls your body. It is a small chip fixed on the main circuit board, the motherboard, inside the CPU cabinet. The CPU has three units:
The three units of the CPU.
Unit
Job
Think of it asโฆ
ALU โ Arithmetic Logic Unit
Does all calculations (+, โ, ร, รท) and comparisons (Is 8 greater than 5? Are they equal?).
The calculator
CU โ Control Unit
Controls and directs the flow of data and instructions between all parts. It does no calculating itself.
A traffic policeman
MU โ Memory Unit
Holds the data, instructions and results that are being worked on right now.
A notepad on the desk
โ ๏ธ Olympiad trap
"Which unit controls all the operations?" โ Control Unit. "Which unit calculates or compares?" โ ALU. The CU is the boss who gives orders, but it never does the sums!
A laptop processor chip โ the whole CPU fits on your fingertip.Photo: Vitaly Zdanevich, CC0 via Wikimedia Commons
Which unit of the CPU checks whether 15 is greater than 12?
Arithmetic Logic Unit
Control Unit
Input Unit
Output Unit
Comparing is a logic job, so the ALU does it. The CU only directs the work.
5Bits, bytes and memory units
A computer stores everything โ words, pictures, songs โ as 0s and 1s. 0 stands for the OFF state and 1 for the ON state of electric signals. These two digits are called binary digits, or bits.
Bit = one 0 or one 1 โ the smallest unit.
Nibble = 4 bits (half a byte).
Byte = 8 bits โ enough to store one character, like A or 7. The byte is the basic unit of storage.
After that, each unit is 1024 times the one before it โ not 1000.
From the tiny bit to the giant yottabyte.
Unit
Equal to
1 Nibble
4 bits
1 Byte (B)
8 bits
1 Kilobyte (KB)
1024 bytes
1 Megabyte (MB)
1024 KB
1 Gigabyte (GB)
1024 MB
1 Terabyte (TB)
1024 GB
1 Petabyte (PB)
1024 TB
1 Exabyte (EB)
1024 PB
1 Zettabyte (ZB)
1024 EB
1 Yottabyte (YB)
1024 ZB
Remember the big units: "Kind Monkeys Give Tasty Peanuts Every Zoo Year" โ KB, MB, GB, TB, PB, EB, ZB, YB.
In computer memory, 1 KB = 1024 bytes, not 1000. If an option says "1 MB = 1000 KB", it is the everyday metric idea, not the computer rule. And watch the direction: bigger unit โ smaller unit means multiply by 1024.
How many bits are there in 4 bytes?
16
24
32
4096
1 byte = 8 bits, so 4 bytes = 4 ร 8 = 32 bits. (16 bits would be 4 nibbles.)
6Primary memory: RAM, ROM & cache
Computer memory is the place where a computer holds data and instructions. It is of two types: internal (primary) and external (secondary).
Internal memory โ also called primary or main memory โ is built from silicon chips fixed on the motherboard inside the CPU cabinet. The CPU uses it directly while working. It is of two types: RAM and ROM.
RAM โ Random Access Memory
Holds the programs and work you are using right now. When you start the computer, Windows is loaded into RAM; any program you open is loaded into RAM too.
It is volatile: everything in it is lost when the power goes off. The CPU can read and write it. Like a blackboard that is wiped and rewritten again and again. Common sizes: 2 GB, 4 GB, 8 GB and more.
ROM โ Read Only Memory
Holds the start-up instructions that prepare the computer for use and check that all parts are working when you switch it on.
It is non-volatile: it keeps its data even without power. Its instructions can only be read, not changed by the user. Like a traffic signal โ it always gives the same instructions.
RAM
ROM
Full form
Random Access Memory
Read Only Memory
Power off?
Data is lost (volatile)
Data stays (non-volatile)
Can we change it?
Yes โ read and write
No โ read only
What it holds
Programs and files being used now
Start-up instructions (BIOS)
A RAM stick โ it plugs into the motherboard.Photo: An-d, CC BY-SA 3.0 via Wikimedia Commons
โ๏ธ Real life
Priya was typing a story when the power went off. She had not saved it, so the story was lost. Why? Unsaved work lives in RAM, which is volatile. When you save, the work is copied to the hard disk, which keeps it. Save often! (Ctrl + S)
Cache memory
Cache memory is a very small, very fast memory placed between the CPU and RAM. It keeps the data and instructions the CPU uses most often, so the CPU does not have to wait. Fastest of all are the tiny registers inside the CPU itself.
Types of ROM you may meet: PROM (Programmable ROM โ written once), EPROM (Erasable PROM โ erased with ultraviolet light) and EEPROM (Electrically Erasable PROM).
Remember:RAMRuns Away Memory when power goes. ROMRemains On Memory.
Which memory keeps the computer's start-up instructions even when the power is switched off?
RAM
ROM
Cache
Registers
ROM is non-volatile and holds the start-up instructions. RAM, cache and registers are temporary.
7Secondary storage devices
External memory โ also called secondary or auxiliary memory โ stores data permanently. Data is not lost when the computer is switched off. We need it because internal memory is volatile and small. It is slower than RAM: when you run a program, it is first copied from secondary storage into RAM.
Types of computer memory (as in your textbook).
โ ๏ธ Olympiad trap
The hard disk sits inside the CPU cabinet, yet it is external (secondary) memory! "External" here means secondary storage, not "outside the box". Internal memory means only RAM and ROM.
Device
Kind
Stores about
Good to know
Hard disk (HDD)
Magnetic
512 GB, 1 TB, 5 TBโฆ
Main storage, fixed inside the CPU cabinet. Spinning disks record data on both sides. Portable (external) hard disks are used for backups.
SSD (Solid-State Drive)
Flash memory
256 GB, 512 GB, 1 TBโฆ
No moving parts โ much faster than a hard disk; now used in most laptops.
CD (Compact Disc)
Optical
700 MB
Thin shiny disc, 4.7 inches (12 cm) across. Stores text, pictures, sound and video. Read in a CD drive.
DVD (Digital Versatile / Video Disc)
Optical
4.7 GB to 17 GB
Same size as a CD but stores about 6 times more โ used for movies.
Blu-ray disc
Optical
25 GB (single layer), 50 GB (dual layer)
Named after the blue-violet laser that reads and writes it. For high-quality video and games.
Pen drive (flash drive)
Flash memory
Up to 1 TB
Small, light, removable, plug and play. Fits the USB port. Used to carry files between computers. Faster and more reliable than CDs.
Memory card (SD card)
Flash memory
32 GB to 512 GB
Used in mobiles and cameras. A memory card reader connects it to a computer through a USB port.
Cloud storage
Online
As much as you rent
Files are kept on faraway servers on the Internet (e.g. Google Drive, OneDrive) โ open them from any device with an Internet connection. Cloud storage is not AI, though AI can use data stored there.
Inside a hard disk: the shiny spinning disk (platter) and the reading arm.Photo: Eric Gaba, CC BY-SA 3.0 via Wikimedia CommonsA pen drive plugs into a USB port.Photo: Evan-Amos, public domain via Wikimedia Commons
Remember the discs, small to big: CD (700 MB) โ DVD (4.7 GB) โ Blu-ray (25 GB). "Cats Dance Beautifully."
Rhea wants to take her project from the school lab to her home computer. Which device should she use?
RAM
ROM
Pen drive
Monitor
A pen drive is small, removable and plug-and-play through the USB port โ perfect for carrying files.