Computer Fundamentals and Hardware
Generations and types of computers, the CPU, the memory hierarchy and units, common input, output and storage devices, and number system conversions with worked examples.
4 min readUpdated
What a computer does
A computer is an electronic machine that accepts input, processes it according to stored instructions, produces output and stores data for later use. Hardware is the physical equipment; software is the set of instructions that tells the hardware what to do.
Generations of computers
| Generation | Main technology | Points to remember |
|---|---|---|
| First | Vacuum tubes | Machine language, very large, much heat. ENIAC (unveiled 1946, about 18,000 tubes), UNIVAC I (delivered 1951) |
| Second | Transistors | Smaller and more reliable; assembly and early high-level languages |
| Third | Integrated circuits (IC) | Operating systems and multiprogramming; IBM System/360 (announced 1964) |
| Fourth | Microprocessor (LSI and VLSI) | Personal computers; Intel 4004 (1971), IBM PC (1981) |
| Fifth | Artificial intelligence, parallel processing | Still developing |
Types of computers
- By working principle: analog (continuous quantities), digital (discrete 0s and 1s), hybrid (both).
- By size and power: microcomputer, minicomputer, mainframe, supercomputer. Banks traditionally ran central processing on mainframes; supercomputers are used for weather and scientific work.
The CPU
The Central Processing Unit is the brain of the computer. Its parts are:
- Arithmetic Logic Unit (ALU): performs calculations and comparisons.
- Control Unit (CU): directs the fetch, decode and execute cycle and coordinates other units; it does not process data itself.
- Registers: very small, very fast storage inside the CPU.
CPU clock speed is measured in hertz (MHz, GHz).
Memory hierarchy and units
From fastest, smallest and costliest per bit to slowest, largest and cheapest:
Registers, then cache, then main memory (RAM), then secondary storage (SSD, hard disk), then offline backup media.
- RAM is volatile: contents are lost when power goes off.
- ROM is non-volatile and holds start-up instructions. Variants: PROM (written once), EPROM (erased with ultraviolet light), EEPROM (erased electrically; flash memory is of this family).
- Cache is a small, fast memory between the CPU and RAM that holds frequently used data.
| Unit | Size |
|---|---|
| Bit | A single 0 or 1 |
| Nibble | 4 bits |
| Byte | 8 bits |
| Kilobyte (KB) | 1024 bytes |
| Megabyte (MB) | 1024 KB |
| Gigabyte (GB) | 1024 MB |
| Terabyte (TB) | 1024 GB |
The table uses the binary convention followed in exams and in memory sizing. Strictly, SI prefixes mean powers of 1000, and the IEC names kibibyte, mebibyte and gibibyte were approved in 1998 for the powers of 1024.
Input, output and storage devices
- Input: keyboard, mouse, scanner, microphone, barcode reader, MICR (reads magnetic-ink characters on cheques), OCR (reads printed text), OMR (reads marks on answer sheets).
- Output: monitor, speaker, plotter, printer. Impact printers (dot matrix) strike a ribbon; non-impact printers (inkjet, laser) do not.
- Both input and output: touch screen.
- Storage: hard disk (magnetic), CD and DVD (optical), SSD and pen drive (flash, no moving parts).
Number systems
| System | Base | Digits |
|---|---|---|
| Binary | 2 | 0, 1 |
| Octal | 8 | 0 to 7 |
| Decimal | 10 | 0 to 9 |
| Hexadecimal | 16 | 0 to 9, A to F (A = 10, F = 15) |
Worked examples:
- Binary to decimal: 101101 = 32 + 0 + 8 + 4 + 0 + 1 = 45.
- Decimal to binary: 25 = 16 + 8 + 1, so 25 = 11001. (Repeated division by 2 gives remainders 1, 0, 0, 1, 1 read bottom-up.)
- Binary to hexadecimal: group in fours from the right. 1010 1111 = AF = 10 x 16 + 15 = 175.
- Octal to binary: write each digit as three bits. Octal 57 = 101 111 = 101111 (decimal 47).
Exam pointers
- Vacuum tube, transistor, IC, microprocessor: match each to the first four generations in that order.
- The ALU calculates and compares; the CU controls; registers hold data inside the CPU.
- RAM is volatile, ROM is non-volatile; EPROM is erased by ultraviolet light.
- 1 nibble = 4 bits, 1 byte = 8 bits, and each larger unit is 1024 times the previous one in the binary convention.
- MICR is the cheque-reading device used in banking; OMR reads marks, OCR reads text.
- One hexadecimal digit equals four binary digits; one octal digit equals three.
Check what stuck
Questions written from this note, with the answer explained after you mark them.
Try 5 questions now
No account needed. Mark them and see each answer explained.
Sources
Rates, limits and figures change. Confirm anything time-sensitive against the latest official notice before the exam.