9.1 Computer Architecture, Hardware, Memory Hierarchy & Storage

Key Takeaways

  • Technological Knowledge is a topic within the possible RMR Regulation 88(ii) general-post model; use the announced syllabus to determine whether and how it is tested.

  • A useful historical teaching sequence is vacuum tubes, transistors, integrated circuits and microprocessors; the fifth-generation label often refers to knowledge-based computing and AI research, not a strict hardware standard.

  • In the simplified CPU model, the ALU performs arithmetic and logic, the control unit interprets instructions and coordinates operations, and registers hold small amounts of data and state.

  • Typical volatile registers, SRAM cache and DRAM main memory contrast with nonvolatile firmware storage and persistent secondary storage; retention does not mean permanent preservation.

  • One byte has eight bits; distinguish decimal kB/MB/GB from binary KiB/MiB/GiB. One KiB is 1,024 bytes, whereas one kB is 1,000 bytes.

Last updated: December 2026

Why computer hardware matters for SPSC

Regulation 88(ii) of the SPSC Recruitment Management Regulations (RMR) lists Technological Knowledge among General Knowledge topics in its possible general-post model (60% GK and 40% English). The syllabus for your particular advertised post determines the actual subjects and weights. For computer basics, distinguish the purpose of a device from the technology it uses.

Historical milestones and computer generations

Charles Babbage began designing the mechanical Analytical Engine in the 1830s. Ada Lovelace's 1843 published notes on the engine described an algorithm for calculating Bernoulli numbers, an important early contribution to programming. Alan Turing's 1936 work on computable numbers described an abstract computing machine.

A common introductory classification of electronic computing history uses generations. It is a teaching convention with overlapping periods, not a universal technical standard with exact cutoff dates:

LabelTechnology or developmentApproximate historical context
First generationVacuum tubesLarge electronic computers of the 1940s and 1950s, including ENIAC
Second generationTransistorsTransistorized computers from the late 1950s, e.g., IBM 7090
Third generationIntegrated circuitsGreater circuit integration during the 1960s
Fourth generationMicroprocessors and increasing chip integration (including VLSI)Intel 4004 commercially introduced in 1971; personal computers later expanded
Fifth-generation conceptsKnowledge-based information processing and parallel computing, often linked to AIJapan's Fifth Generation Computer Project began in 1982; later AI and parallel architectures overlap with microprocessor development

VLSI means very-large-scale integration; ULSI denotes ultra-large-scale integration. The terms are measures or descriptions of chip integration, not firm dates that separate all computers into five mutually exclusive types. Remember the physical sequence of discrete vacuum tubes, discrete transistors, integrated circuits, and microprocessors.

Stored-program architecture and CPU components

John von Neumann's 1945 draft report on the EDVAC described a design developed with the EDVAC project in which memory could hold data and instructions. The simplified von Neumann model uses shared memory for both. Actual computers may use separate instruction and data caches or more complex interfaces.

A central processing unit (CPU) processes instructions. In a simple model:

  • Arithmetic logic unit (ALU): performs integer arithmetic and logical operations such as AND, OR and comparisons. Modern processors may have separate units for specialized operations.
  • Control unit: interprets instructions and coordinates their execution. The simplified cycle fetches an instruction, decodes it, executes it and, when applicable, stores or writes back a result.
  • Registers: small, fast storage locations within the processor for active data and state. A program counter (PC) tracks instruction position; an instruction register (IR) holds an instruction in the simplified model; an accumulator holds intermediate results in accumulator-based designs. A memory address register (MAR) and memory data register (MDR) illustrate how a simple design represents a memory address and the data being transferred. Actual architectures need not implement these as separately visible registers.

System interconnections carry data, address and control information. A textbook data bus carries data, an address bus identifies locations, and control signals coordinate operations. Modern buses and interconnects differ in their organization. Clock frequency is measured in hertz (GHz means billions of cycles per second); clock rate alone does not determine instructions per second or overall performance.

Input, output and dual-purpose devices

Input devices supply data to a computer; output devices present results. Some devices do both.

Input technologyPurpose
Optical Mark Recognition (OMR)Identifies marked positions on a form, such as filled answer bubbles
Optical Character Recognition (OCR)Extracts machine-readable text from an image of printed or handwritten text
Magnetic Ink Character Recognition (MICR)Reads characters printed with magnetic ink, such as encoded characters on bank cheques
Keyboard, mouse, scanner, microphoneEnter text, pointing input, images or audio

Regulation 87 allows either OMR or computer-based testing depending on the SPSC test. If the admission instructions specify an OMR paper, use only the indicated writing instrument and follow the provided marking rules. Do not assume that all tests are delivered on bubble sheets.

Output examples include monitors, speakers, and printers. A monitor's resolution describes its pixel dimensions; refresh rate in hertz describes how often the display refreshes, not necessarily how many new frames the source produces. A conventional LED-backlit LCD uses an LCD panel with LED lighting, while OLED display pixels emit light.

Printer familyExampleBasic distinction
ImpactDot matrixPins strike an inked ribbon; can print multipart forms
Non-impactInkjetDeposits small ink droplets
Non-impactLaserElectrophotographic drum, toner and fusing
Non-impactDirect thermalHeat-sensitive paper; common in receipt printing

A touchscreen both displays output and receives touch input. A multifunction printer with scanner provides both input and output; a network interface can send and receive data. USB is a connection interface rather than an OCR or OMR technology.

Memory and storage hierarchy

A typical hierarchy balances access speed, capacity, cost and retention. Registers and cache are near the CPU, then main memory, then secondary storage. The relative speed and capacity depend on the particular design.

TechnologyVolatilityCommon role
CPU registersGenerally volatileActive operands, instruction position and state
SRAM (static RAM)VolatileOften used in processor caches; holds data without periodic capacitor refresh while powered
DRAM (dynamic RAM)VolatileMain working memory, e.g., DDR SDRAM; stored charge requires periodic refresh
ROM (read-only memory) and flashNonvolatileFixed or reprogrammable code/storage depending on type
SSD and HDDNonvolatileSecondary storage of software and files

Random-access memory describes an access property; common SRAM and DRAM are volatile, but not every random-access memory technology is. A ROM stores contents without continued power; programmable ROM (PROM) can be programmed once, erasable PROM (EPROM) can be erased and reused, and electrically erasable PROM (EEPROM) can be rewritten electrically. Modern flash is electrically erasable nonvolatile memory. BIOS is a traditional PC firmware implementation; UEFI defines a firmware-to-operating-system interface whose implementation initializes the platform and loads the operating system. Firmware is commonly stored in reprogrammable flash rather than permanent mask ROM.

A hard disk drive (HDD) stores data magnetically on rotating disks with moving heads. A solid-state drive (SSD) typically stores data using NAND flash and has no moving mechanical drive parts. SSDs usually have lower access latency than HDDs. SATA and NVMe are different storage interfaces/protocols; local NVMe drives commonly use PCI Express, whereas the NVMe standard also supports other transports. Performance varies by device and interface. Optical media include CDs, DVDs and Blu-ray Discs; they are read optically and differ in capacity and recording format. Persistent storage retains data without power but can fail, so backups matter.

Binary representation and units

A bit is a binary digit (0 or 1), a nibble is four bits, and a modern byte is eight bits. ASCII uses 7-bit codes (128 possible code values); various legacy 8-bit encodings extend ASCII differently. Unicode represents characters from many writing systems including Urdu and Sindhi; UTF-8 and UTF-16 are different encodings of Unicode, not fixed one-byte character tables.

Do not equate decimal prefixes with binary prefixes. The SI Brochure (2026 update) and IEC binary-prefix standard distinguish:

Decimal unitExact bytesBinary unitExact bytes
kilobyte (kB)1,000kibibyte (KiB)1,024
megabyte (MB)1,000,000mebibyte (MiB)1,048,576
gigabyte (GB)10910^9gibibyte (GiB)2302^{30}
terabyte (TB)101210^{12}tebibyte (TiB)2402^{40}
petabyte (PB)101510^{15}pebibyte (PiB)2502^{50}

The higher decimal prefixes exa, zetta, yotta, ronna and quetta (powers of 10) differ from the binary exbi, zebi, yobi, robi and quebi (powers of 2). Older materials sometimes use KB for 1,024 bytes; if an exercise explicitly defines that legacy convention, use it for that exercise, but the standards-based term is KiB. Example: 2 MiB = 2 × 1,048,576 = 2,097,152 bytes; 2 MB = 2,000,000 bytes. Distinguish bytes (B) from bits (bit or b): 1 MiB contains 8,388,608 bits.

Worked binary-decimal conversion

Binary place values grow from right to left: 1, 2, 4, 8, 16, 32. For 101101, the 1-bits correspond to 32, 8, 4 and 1:

(101101)2=32+0+8+4+0+1=(45)10(101101)_2 = 32 + 0 + 8 + 4 + 0 + 1 = (45)_{10}

To reverse the conversion, divide 45 by 2 repeatedly and record the remainders: 45→22 remainder 1, 22→11 remainder 0, 11→5 remainder 1, 5→2 remainder 1, 2→1 remainder 0, 1→0 remainder 1. Reading the remainders bottom to top gives 101101.

Loading diagram...
Typical memory hierarchy and separate firmware storage
Test Your Knowledge

In an SPSC test delivered with a standardized paper bubble sheet rather than CBT, which scanning technology identifies filled answer bubbles?

A

Magnetic Ink Character Recognition (MICR)

B

Optical Character Recognition (OCR)

C

Optical Mark Recognition (OMR)

D

Universal Serial Bus (USB) Imaging

Test Your Knowledge

Which commonplace volatile memory technology does not need periodic capacitor refresh and is often used for processor cache?

A

Static RAM (SRAM)

B

Dynamic RAM (DRAM)

C

Electrically Erasable PROM (EEPROM)

D

NAND Flash Storage

Test Your Knowledge

What is the decimal (base-10) equivalent of the binary number 101101?

A

37

B

41

C

43

D

45

Sections you finish are checked off in the contents.