4.1 Computer Hardware, CPU, RAM vs. Storage & I/O Devices
Key Takeaways
In a simplified CPU model, control logic coordinates instructions, the arithmetic logic unit performs arithmetic and logical operations, and registers hold immediate working data.
Input devices such as keyboards, scanners, and barcode readers send data into a computer, while output devices such as monitors and printers present processed results to users.
Conventional working RAM is volatile, whereas read-only memory, rewritable firmware flash and conventional SSD/HDD storage retain data without power.
A byte has 8 bits; decimal units kB, MB, GB and TB use powers of 1,000, whereas KiB, MiB, GiB and TiB use powers of 1,024.
Office computers use processors, memory, storage, and peripherals to handle documents and many other applications. This chapter teaches general computing principles, not a claim about recruitment test equipment or content.
The Central Processing Unit (CPU)
The Central Processing Unit (CPU)—often called the processor—is the brain of a computer system. It fetches program instructions from memory, decodes what needs to be done, executes the operations, and writes results back. Processor speed is commonly measured in gigahertz (GHz), indicating billions of clock cycles per second, and modern chips contain multiple processing cores so several tasks can run simultaneously.
A simplified CPU model highlights three important components; real processor designs also include caches, specialized execution units and other circuits:
- Control Unit (CU): Directs the flow of data and instructions across the processor, memory, and peripheral devices. It fetches instructions from memory, decodes them, and issues timing and control signals rather than performing calculations itself.
- Arithmetic Logic Unit (ALU): Performs basic arithmetic and logical operations, such as addition, subtraction and comparisons; some processors use separate specialized units for operations such as floating-point arithmetic, multiplication or division.
- Registers: Tiny, ultra-fast memory locations built directly inside the CPU silicon. Registers temporarily hold the active instruction, memory addresses, and operands currently being processed by the ALU.
Worked Example: Processing a Clerical Lookup
Suppose a learner uses a spreadsheet to total a set of attendance figures. In a simplified illustration, the Control Unit fetches the addition instruction and guides the numbers from RAM into CPU registers. The ALU adds the values and places the sum back in a register, and the Control Unit routes the final result back to memory so the monitor can display it.
Input, Output, and Dual Devices
Hardware refers to the physical components of a computer you can touch, whereas software consists of intangible programs and instructions. Peripheral hardware connects a user to the CPU through Input/Output (I/O) channels:
- Input devices convert human actions or physical documents into digital signals the computer can process. Common office input devices include the keyboard (text entry), mouse (pointing and selection), flatbed or sheet-fed scanner (digitizing paper service records), barcode reader (scanning equipment or file tags), and microphone (capturing audio).
- Output devices convert processed digital data into human-readable or physical forms. Key examples are the monitor (visual display unit, soft copy output), printer (laser or inkjet hard copy output), speaker (audio output), and multimedia projector (displaying briefings on a screen).
- Dual I/O and storage devices perform both roles. A touchscreen displays visual output while sensing finger input. A multifunction printer-scanner acts as an output device when printing orders and an input device when scanning signed forms. External USB (Universal Serial Bus) drives and network cards also transfer data in both directions.
RAM vs. ROM vs. Secondary Storage
Distinguish working memory, persistent firmware and secondary storage.
Ordinary desktop Random Access Memory (RAM), usually dynamic RAM (DRAM), is volatile working memory. It requires power to retain data, so data held only there is normally lost when power is removed. RAM holds active portions of the operating system, applications and working data. Automatic saving or recovery features may already have written some edits to persistent storage.
Read-Only Memory (ROM) is nonvolatile memory designed primarily for reading. Traditional computers stored startup code in ROM; modern computers commonly store updateable Basic Input/Output System (BIOS) or Unified Extensible Firmware Interface (UEFI) firmware in nonvolatile flash memory. The startup firmware initializes hardware and normally performs platform-specific checks, often called the Power-On Self-Test (POST), before handing control to a bootloader or operating system.
Secondary storage provides high-capacity, non-volatile persistent storage for documents, databases, and installed software:
- Solid-State Drive (SSD): Uses flash memory chips with no moving parts, offering fast boot times, quiet operation, and strong shock resistance.
- Hard Disk Drive (HDD): Stores data magnetically on spinning platters read by moving mechanical heads. HDDs often offer lower cost per unit of capacity, but their moving parts generally make access slower and more sensitive to shocks than flash SSDs.
- USB Flash Drive: A portable solid-state storage device used to transfer approved files between workstations.
| Component | Volatility (typical PC) | Role |
|---|---|---|
| CPU registers | Volatile | Fast working operands and instruction state |
| RAM | Volatile | Active applications and working data |
| Firmware ROM/flash | Nonvolatile | Startup firmware; flash can be updated |
| SSD | Nonvolatile | Persistent files and applications, usually flash-based |
| HDD | Nonvolatile | Persistent files on magnetic platters |
| USB flash drive | Nonvolatile | Portable persistent storage |
Memory Capacity Units
Digital computers encode information as binary digits (bits), each having two possible values, 0 or 1. Eight bits form one byte; four bits are often called a nibble. A byte can represent an American Standard Code for Information Interchange (ASCII) code point; Unicode text is not universally one byte per character (for example, UTF-8 encodes Unicode scalar values in one to four bytes).
The International Electrotechnical Commission binary prefixes and International System of Units decimal prefixes are distinct. NIST SP 330, section 3, gives the following distinction:
| Decimal (SI prefix) | Binary (IEC prefix) |
|---|---|
| 1 kB = 1,000 B | 1 KiB = 1,024 B |
| 1 MB = 1,000 kB | 1 MiB = 1,024 KiB |
| 1 GB = 1,000 MB | 1 GiB = 1,024 MiB |
| 1 TB = 1,000 GB | 1 TiB = 1,024 GiB |
Some legacy materials and software label binary quantities with decimal symbols such as KB or GB. Establish the convention before calculating, and use the distinct symbols above for precise communication.
Worked Example: Estimating Storage and Explaining Reported Capacity
Suppose each scanned example form takes 500 kB (500,000 bytes). An allocation of 1 GB (1,000,000,000 bytes) could contain 2,000 forms if file sizes are identical and storage overhead is ignored. If the question instead specifies 500 KiB per form and 1 GiB total, dividing 1,024 × 1,024 KiB by 500 KiB gives 2,097 complete forms, with some space left over.
A drive labeled 500 GB contains a nominal 500,000,000,000 bytes. Dividing by 1,073,741,824 gives approximately 465.66 GiB. A Windows display using binary units may label that amount GB. Actual space available for storing files can be smaller because of partitioning, filesystem metadata, and other uses of disk capacity. A difference in measurement units alone is not evidence of lost storage.
Which internal component of the CPU performs mathematical calculations and logical comparisons?
Arithmetic Logic Unit (ALU)
Control Unit (CU)
Read-Only Memory (ROM)
Power-On Self-Test (POST)
A document has edits held only in ordinary volatile RAM, with no automatic save, recovery copy, or backup power. What happens when the computer loses power?
They are permanently stored in ROM during the shutdown.
They are lost because unsaved active data resides in volatile RAM.
They are automatically burned onto the BIOS chip.
They remain intact in CPU registers until power returns.
Which statement accurately describes the relationship between bits, bytes, and storage units?
One byte equals 4 bits, and 1 GB is smaller than 500 MB.
One bit can store an entire typed paragraph, while a byte holds a single binary 0 or 1.
One tebibyte equals 1,024 kibibytes.
One byte equals 8 bits, and one gibibyte (GiB) equals 1,024 mebibytes (MiB).
Sections you finish are checked off in the contents.