Hardware MCQs

Computer hardware, part by part — the CPU and its Control Unit and ALU, RAM and ROM, hard disks and SSDs, the keyboard, mouse and scanner, monitors and printers, and the motherboard, ports and cards that join them all together.

Facts checked 28 November 2026.170 practice MCQs on this topic

Hardware — Study Notes

What to learn in Hardware

This topic is computer hardware the way the one-paper exams ask it: every physical part of a computer, sorted by the job it does. There are 170 practice questions on this topic: 129 from the bank and 44 new ones written to fill the gaps the bank leaves. Learn it in the order of the sections below. First the big picture — the four jobs every computer does. Then the processor, then memory, then storage, then the devices that get data in and results out, and finally the motherboard and the ports that join everything together. The questions here come from real papers — PPSC, FPSC, NTS, BPSC, ETEA, STS and the rest — and they ask the same core facts again and again: the CPU is the brain, RAM forgets when the power goes off, a hard disk keeps data permanently, a scanner reads paper in and a printer puts paper out. Learn the facts in the tables below and those questions answer themselves in seconds.

The four jobs of a computer

Every part of a computer does one of four jobs: take data in, work on it, keep it, or send it out. Input devices take data in — keyboard, mouse, scanner, microphone. The processor works on it — the CPU. Memory and storage keep it — RAM for now, the hard disk for years. Output devices send it out — monitor, printer, speaker. This layout has a name: the von Neumann architecture, set out by John von Neumann in 1945. Its big idea is the stored-program concept: instructions and data are held together in the same memory, in the same form, so loading different instructions turns the same physical machine into a word processor, a calculator or a game. And one line to fix in your mind forever: hardware is the physical parts of a computer — the parts you can touch. Software is the programs that run on them. The CPU is hardware; a programming language is not.

The four jobs and who does them
  • Input — get data into the machine: keyboard, mouse, scanner, microphone, webcam
  • Processing — work on it: the CPU (Control Unit + ALU + registers)
  • Storage — keep it: RAM for now, hard disk, SSD and pen drive for years
  • Output — send it out: monitor, printer, speaker, projector, plotter

CPU & processing: the brain of the computer

The CPU — Central Processing Unit — is called the brain of the computer because it carries out the instructions and performs the calculations, and controls all the other parts. It is a single silicon chip, the microprocessor, and it has two main components. The Control Unit (CU) directs traffic: it fetches each instruction from memory, decodes what it means, and signals the other parts to act. It does no arithmetic itself — it is a conductor, not a musician. The Arithmetic Logic Unit (ALU) does the actual work: arithmetic (add, subtract, multiply, divide) and logical operations (AND, OR, NOT, comparisons). The ALU takes its orders from the Control Unit. Inside the CPU are registers — tiny, extremely fast storage locations that hold the data being worked on at this instant. They are the smallest and fastest memory in the whole machine. Two registers have special jobs you must know: the Program Counter holds the address of the next instruction to be fetched, and the Accumulator holds the results of the ALU's calculations. Everything the CPU does is one loop repeated billions of times: fetch the next instruction, decode it, execute it — the fetch-decode-execute cycle. The CPU's speed is measured in hertz — the number of clock cycles per second — and modern processors run at gigahertz (GHz), billions of cycles a second. A higher clock speed generally means more instructions per second. A second way to go faster is more cores: a multi-core processor packs two or more independent cores onto one chip and can run several tasks at the same time, while a multiprocessor machine has more than one processor altogether. The transistor is the building block underneath all of this — a tiny semiconductor switch and amplifier. The history of the computer — the generations, the pioneers and the machines — is taught on the Computer History & Generations page.

Inside the CPU
  • Control Unit (CU) — fetches and decodes instructions, directs the other parts, does no arithmetic
  • Arithmetic Logic Unit (ALU) — performs all arithmetic and logical operations
  • Registers — smallest, fastest memory, inside the CPU
  • Program Counter — holds the address of the next instruction
  • Accumulator — holds the results of the ALU's calculations
  • Fetch-decode-execute — the cycle the CPU repeats for every instruction
Speed and history
  • CPU speed is measured in hertz; modern processors run at gigahertz (GHz)
  • Multi-core — two or more cores on one chip, several tasks at once
  • Transistor — the semiconductor switch the CPU is built from
  • Charles Babbage — father of the computer (Analytical Engine, 1830s)
  • ENIAC (1945) — first general-purpose electronic digital computer
  • Z3 (1941) — first electromechanical computer
  • First generation — vacuum tubes; second — transistors; third — integrated circuits; fourth — microprocessors

Memory: RAM, ROM and cache

Memory is where the CPU keeps what it is working on, and the first split to learn is volatile against non-volatile. Volatile memory loses everything when the power goes off; non-volatile memory keeps it. RAM — Random Access Memory — is volatile working memory. It holds the data, programs and parts of the operating system currently in use, it can be read from and written to, and it is empty every time the computer is switched on. That is why a computer also needs ROM — Read Only Memory. ROM is non-volatile and holds the startup instructions the computer needs the moment it is switched on, the bootloader and the BIOS, which load the operating system from the hard disk into RAM. ROM can normally only be read, not written, and it is small — kilobytes or a few megabytes against gigabytes of RAM. Between the CPU and RAM sits cache memory: a small, very fast copy of the data most likely to be needed next. Cache is the fastest memory after the registers, and it comes in levels — L1 is the fastest and smallest, then L2, then L3. The memory ladder, fastest to slowest, is registers, cache, RAM, then secondary storage. Two kinds of RAM to tell apart: DRAM (Dynamic RAM) is the main memory of every computer, but it stores each bit as a charge that leaks away, so it must be refreshed constantly; SRAM (Static RAM) is faster and needs no refreshing, but costs more, so it is used for cache. ROM also has kinds: PROM can be written once, EPROM is erased with ultraviolet light, and EEPROM can be erased and reprogrammed with electricity. Sizes are counted in powers of two: 1 KB is 1024 bytes, 1 MB is 1024 KB, 1 GB is 1024 MB. A 1 KB memory needs 10 address lines, because 2 to the power 10 is 1024. And two facts students mix up: the BIOS firmware itself lives in a flash memory chip on the motherboard, but the BIOS settings — the date, time and hardware configuration — are kept by the CMOS battery, a small coin cell. If a computer loses its date on every boot, the CMOS battery is dead, not the board. Memory management, by the way, is the operating system's job of looking after main memory — it is a software job, but it is tested here because its answer is main memory.

RAM against ROM
  • RAM — Random Access Memory, volatile, read and write, holds what is in use now, gigabytes
  • ROM — Read Only Memory, non-volatile, read only, holds startup instructions, small
  • Cache — small, fast copy of what is needed next; L1 fastest and smallest, then L2, then L3
  • Registers — inside the CPU, smallest and fastest of all
  • DRAM — main memory, must be refreshed constantly
  • SRAM — faster, no refreshing, used for cache memory
  • EEPROM — ROM that can be erased and reprogrammed with electricity
Memory sizes
  • 1 byte = 8 bits; 1 KB = 1024 bytes; 1 MB = 1024 KB; 1 GB = 1024 MB
  • 2.5 MB = 2560 KB; 5 MB = 5,242,880 bytes; 3 bytes = 24 bits
  • 1 KB of memory needs 10 address lines (2 to the power 10 = 1024)

Storage: keeping data for years

RAM forgets, so a computer needs somewhere to keep data when the power is off. That is secondary storage: non-volatile, much larger and cheaper per gigabyte than RAM, but slower, and the CPU cannot use it directly — data is copied into RAM first. There are three kinds, and they store data in completely different ways. Magnetic storage writes data as magnetised spots on spinning platters: the hard disk drive (HDD), which is why a hard disk is an example of magnetic storage. It holds the operating system and all your files permanently, and it is the permanent storage device the papers ask about most. Solid-state storage keeps data in flash memory chips with no moving parts: the SSD, the USB flash drive (pen drive) and the memory card. An SSD differs from a hard disk mainly in that it has no moving parts, so it is faster, silent and harder to damage — and a USB flash drive is a small portable drive for carrying data between computers. Optical storage reads pits and lands on a disc with a laser: the CD, the DVD and the Blu-ray disc. A standard CD holds 700 MB, a single-layer DVD holds 4.7 GB, and a single-layer Blu-ray disc holds 25 GB, because Blu-ray uses a shorter-wavelength laser. A CD-R can be written only once; a CD-RW can be erased and written many times. The old 3.5-inch floppy disk held 1.44 MB. Two newer ideas complete the picture. RAID combines several disks so that storage is faster and safer — if one disk fails, the data survives on the others. NVMe is the fast modern interface for SSDs: it cuts out the bottlenecks of the older SATA connection and gives much faster data transfer with lower latency, which is why NVMe drives plug straight into an M.2 slot on the board instead of using a cable. And one small word the papers love: putting or saving data into a storage location is called writing; reading it back is called reading.

The three kinds of secondary storage
  • Magnetic — hard disk drive (HDD): spinning platters, read by a moving head
  • Solid-state — SSD, USB flash drive, memory card: flash chips, no moving parts
  • Optical — CD, DVD, Blu-ray: read by a laser beam
Capacities to memorise
  • Floppy disk — 1.44 MB
  • CD — 700 MB (CD-R written once, CD-RW many times)
  • DVD — 4.7 GB single layer, 8.5 GB dual layer
  • Blu-ray — 25 GB single layer
Newer storage ideas
  • RAID — combines disks for speed and safety (redundancy)
  • NVMe — fast SSD interface, faster transfer and lower latency than SATA
  • Writing — saving data into a storage location; reading — getting it back

Input devices: getting data in

An input device sends data into the computer. The keyboard is the most common one: it enters text, alphabets, numbers and characters, and its keys fall into groups you must know. Function keys are F1 to F12 — F1 opens help in most programs. Toggle keys switch a mode on or off — Caps Lock and Num Lock, and Caps Lock changes lowercase to uppercase. Navigation keys move around the screen — Page Up moves one screen up, and the Delete key deletes the character to the right of the cursor while Backspace deletes the one to the left. The numeric pad sits on the right of a full keyboard, and QWERTY is the keyboard layout most commonly used. The mouse is a pointing device: it moves the cursor, and is used for selecting and pointing, clicking and dragging. An optical mouse tracks movement with a light sensor; the older mechanical mouse used a rolling ball. Other pointing devices: a trackball stays still while you rotate its ball with your fingers, and a joystick controls characters in computer games. The scanner is the device that turns paper into digital form — it shines light on a page and records it as pixels. The flatbed scanner, a page laid on glass, is the most common kind, and a barcode scanner at a supermarket checkout is a special kind that reads the bars on products. Three reading machines share the scanner's family and the papers ask their full forms again and again: OCR (Optical Character Recognition) turns printed letters into editable text; OMR (Optical Mark Recognition) reads the filled bubbles on exam answer sheets; MICR (Magnetic Ink Character Recognition) reads the magnetic-ink numbers on bank cheques. A microphone enters sound into the computer, and a webcam — a camera — enters pictures and video; both are input devices. A light pen is an input optical device used to point at the screen. Biometric input is the fingerprint reader: NADRA's registration centres capture fingerprints with the Morpho device. And a touchscreen is the device that is both: it shows the picture (output) and senses your finger (input). The modem is a two-way device too — it converts digital signals into analogue signals for a telephone line and back again, which is why it was the device a dial-up internet connection required.

Keyboard key groups
  • Function keys — F1 to F12; F1 opens help
  • Toggle keys — Caps Lock and Num Lock switch a mode on or off
  • Delete key — deletes the character to the right of the cursor
  • Backspace — deletes the character to the left of the cursor
  • Page Up — moves one screen up
  • Numeric pad — the cluster of number keys on the right of the keyboard
  • QWERTY — the most commonly used keyboard layout
Reading machines (full forms)
  • OCR — Optical Character Recognition: printed letters to editable text
  • OMR — Optical Mark Recognition: filled bubbles on answer sheets
  • MICR — Magnetic Ink Character Recognition: numbers on bank cheques
  • Barcode reader — reads the bars on products in a shop
Input devices at a glance
  • Keyboard — enters text and commands
  • Mouse — pointing device, moves the cursor, selects and points
  • Scanner — turns paper documents and pictures into digital form
  • Microphone — enters sound; webcam — enters pictures and video
  • Joystick — controls characters in games
  • Light pen — input optical device, points at the screen
  • Touchscreen — both an input and an output device

Output devices: getting results out

An output device presents the processed result in a form people can use. The monitor is the main one: it displays text, pictures and video on a screen, and it is also called a VDU (Visual Display Unit). A single point on the screen is a pixel, and the quality of a screen depends on its resolution — the number of pixels, more pixels meaning a sharper image. Full HD is 1920 by 1080 pixels. Old monitors were CRTs — Cathode Ray Tubes, big glass tubes; modern ones are LCDs (Liquid Crystal Display), lit by LEDs (Light Emitting Diodes), which use less power. Output on a screen is called soft copy, because you cannot hold it. The printer makes the hard copy: printed output on paper. There are two families. Impact printers strike the paper — the dot-matrix printer, whose pins hit an inked ribbon to form characters from dots. Non-impact printers never touch the paper: the inkjet printer sprays tiny droplets of ink through nozzles and is the most common type of printer for home use, the laser printer uses a laser beam and toner, a dry powder fused onto the paper with heat, and the thermal printer heats specially coated paper, which is how till receipts are printed. A plotter is the specialist printer for large drawings and maps — architects' blueprints and engineering designs. A 3D printer builds real objects layer by layer, which is called additive manufacturing. The speaker turns the computer's signals into sound you can hear, and headphones are output devices too. A projector throws the display onto a large screen or wall so many people can see it at once. The rule for sorting any device is one question: does data go in, come out, or both? Keyboard, mouse and scanner go in; monitor, printer and speaker come out; touchscreen and modem do both.

Screens
  • Pixel — a single point on a computer screen
  • Resolution — the number of pixels; higher resolution means a sharper image
  • Full HD — 1920 × 1080 pixels
  • CRT — Cathode Ray Tube, the old glass-tube monitor
  • LCD — Liquid Crystal Display; LED — Light Emitting Diode
  • Soft copy — output on a screen; hard copy — printed output on paper
Printers
  • Dot-matrix — impact printer, pins strike a ribbon
  • Inkjet — non-impact, sprays ink through tiny nozzles; most common home printer
  • Laser — non-impact, uses a laser beam and toner (dry powder)
  • Thermal — heats specially coated paper (till receipts)
  • Plotter — prints large drawings and maps
  • 3D printer — builds objects layer by layer (additive manufacturing)

Motherboard, ports & system

The motherboard is the main circuit board of a computer — the board that connects all the other main parts together. The processor sits in its CPU socket, the RAM in its memory slots, and the storage and cards in their connectors and expansion slots. The chipset is the set of controller chips that manages the flow of data between the CPU, memory, storage and peripherals, and decides which parts the board can support. The BIOS (Basic Input Output System) is the firmware that starts the computer: when you switch on, it runs POST — the Power-On Self-Test — which checks the CPU, memory and drives, and beeps or shows an error message if something is wrong. You enter BIOS setup with the Del or F2 key just after switching on, to change the boot order or settings. UEFI is the modern replacement for BIOS: it supports larger drives and secure boot and can be used with a mouse. The BIOS firmware lives in a flash memory chip on the board, and its settings are kept by the CMOS battery. Expansion slots take the cards that add a job to the machine: the graphics card (GPU — Graphics Processing Unit) draws the pictures and videos on the screen and sits in a PCIe x16 slot; the network interface card (NIC) connects the computer to a network; the sound card produces audio; and a Wi-Fi adapter connects it to a wireless network. The ports on the back of the machine are how the outside world plugs in: USB (Universal Serial Bus) for pen drives, printers, keyboards and mice — USB 3.0 transfers data at up to 5 Gbps, far faster than USB 2.0 at 480 Mbps; HDMI (High-Definition Multimedia Interface) carries video and audio to a monitor or television; VGA (Video Graphics Array) is the older video port; Ethernet is the wired network port; and SATA connects hard disks and SSDs inside the case. The power supply unit (PSU) converts AC mains power into the DC power the parts need, and a UPS (Uninterruptible Power Supply) is a battery that keeps the computer running for a short time after the electricity goes off, so work can be saved. Finally, computers themselves come in kinds: microcomputers (PCs) are the desktops in a computer lab; a hybrid computer resembles both a digital and an analogue computer; and a digital computer stores and processes data in digital form.

On the motherboard
  • Motherboard — the main circuit board, connects all the main parts
  • Chipset — manages data flow between CPU, memory and peripherals
  • BIOS — firmware that starts the computer; entered with Del or F2
  • POST — Power-On Self-Test, checks hardware at switch-on
  • UEFI — the modern replacement for BIOS
  • CMOS battery — keeps the BIOS settings and clock when power is off
Cards and ports
  • GPU — Graphics Processing Unit, draws pictures and video (PCIe x16 slot)
  • NIC — Network Interface Card, connects the computer to a network
  • Wi-Fi adapter — connects to a wireless network
  • USB — Universal Serial Bus; USB 3.0 up to 5 Gbps
  • HDMI — High-Definition Multimedia Interface, video plus audio
  • VGA — Video Graphics Array, older video port
  • SATA — connects hard disks and SSDs to the motherboard
  • PSU — converts AC mains power into DC power
  • UPS — Uninterruptible Power Supply, battery backup for a short time

Two traps to avoid

Two traps in this topic have caught students for years. First, the CD-ROM capacity: the papers themselves disagree, and both figures are defended. A standard CD-ROM holds about 700 MB — the 80-minute disc — and that is the figure this page teaches, because it is the one the PPSC paper keys. A different paper keys 680 MB, which is the usable capacity some sources quote for the same disc. This page holds that question back rather than teaching both numbers. Second, the BIOS: two different things share one name. The BIOS firmware — the startup program — lives in a flash memory chip on the motherboard. The BIOS settings — the date, time and hardware configuration — are kept by the CMOS battery. A question that asks where the BIOS is stored wants flash memory; a question that asks what stores the BIOS settings wants the CMOS battery. Read which one the question asks. A third, smaller trap: CPU speed. The unit is the hertz, so a question offering Hertz as an option wants Hertz; but the speed of a modern processor is always stated in gigahertz, so a question offering Gigahertz wants Gigahertz. Both answers are right — the options tell you which one the paper wants.

How to revise this topic

Revise in three passes. First pass: learn the four jobs and sort every device into input, processing, storage or output — ask 'does data go in, come out, or both?' until the sorting is automatic. Second pass: learn the tables — RAM against ROM, the three kinds of storage with their capacities (floppy 1.44 MB, CD 700 MB, DVD 4.7 GB, Blu-ray 25 GB), the printer family, the keyboard key groups, and the full forms (CPU, RAM, ROM, USB, HDMI, VGA, GPU, OCR, OMR, MICR, LCD, LED, CRT, UPS). These are pure memory and they are the easiest marks in the paper because the same facts return every year. Third pass: do the 'which device' questions, and read the question stem before the options — the wrong options are usually devices from another branch, so naming the branch first leaves only one possible answer. And one last rule: never confuse direction. A scanner reads paper into the computer; a printer puts the computer onto paper. If you remember the direction, half the questions in this topic are already answered.

More facts to learn

  1. A smart card is amicroprocessor card containing a processor and memory for secure storage
  2. The most common type of storage devices aremagnetic storage and flash memory together
  3. A normal computer lab uses microcomputers (PCs)
  4. A computer with more than one processor is amultiprocessor
  5. A single chip with two or more separate processor cores is amulti-core processor
  6. The silicon chip used for data processing is themicroprocessor
  7. The output unit supplies the processed result to the user in human-readable form
  8. The part of the computer that stores instructions and data for immediate use during processing isRAM
  9. The best technology to save data on a disk isthe laser
  10. An optical disc is read using a laser beam
  11. A DVD is an example of anoptical disk
  12. A hard disk is an example ofmagnetic storage
  13. A compact disc is an example ofoptical storage
  14. The numeric pad is present on thekeyboard
  15. A keyboard is used to enteralphabets, text and characters all of these
  16. A headphone is anoutput device
  17. The QWERTY keyboard format is the most commonly used
  18. The F1 key is used foropening help
  19. The Delete key removes the character to the right of the cursor
  20. A single point on a computer screen is apixel
  21. The printed output from a computer is calledhardcopy
  22. A monitor is a soft copyoutput device
  23. A light pen is aninput optical device
  24. A barcode scanner is the scanner used at supermarket checkouts to read product barcodes
  25. The device used to listen to sound from a computer is thespeaker
  26. A webcam is aninput device
  27. The quality of a screen depends uponits resolution
  28. A UPS stands forUninterruptible Power Supply
  29. The processor is hosted on themotherboard
  30. The main function of the keyboard is to enter data
  31. The main function of the CPU is processing instructions
  32. The two main components of the CPU are the Control Unit and theALU
  33. The ALU responds to the commands coming from theControl Section
  34. A modem converts digital signals into analogue signals
  35. A network interface card connects a computer to a network
  36. A graphics card makes the pictures and videos that appear on the screen
  37. GPU stands forGraphics Processing Unit
  38. A Wi-Fi adapter lets a computer connect to a wireless network
  39. The power button switches a computer on
  40. If a computer beeps while turning on, it will display a BIOS or UEFI error message

Keep Learning — Hardware