Computer ยท Chapter 01

๐Ÿ’ป Computer Basics

Hardware, software, generations, memory and storage units.

๐Ÿ’ก What is a Computer?

A computer is an electronic device that takes input, processes it, stores data, and gives output. It works on the IPO cycle: Input โ†’ Process โ†’ Output.

Hardware โ€” physical parts you can touch: CPU, RAM, hard disk, keyboard, monitor.
Software โ€” programs and instructions: Windows, MS Word, Chrome browser.

Types of memory:
โ€ข RAM (Random Access Memory) โ€” temporary, volatile. Loses data when power off. Fast.
โ€ข ROM (Read Only Memory) โ€” permanent, non-volatile. Stores BIOS/firmware.
โ€ข Cache โ€” fastest memory, inside CPU. Stores frequently used data.
โ€ข Hard Disk / SSD โ€” permanent storage. HDD uses magnetic disks; SSD uses flash chips (faster).

CPU (Central Processing Unit) โ€” the brain. Contains ALU (arithmetic/logic), CU (control unit), registers. Speed measured in GHz.

๐Ÿ“Š Computer generations โ€” exam favorite

1st Gen (1940s-50s) โ€” Vacuum tubes. ENIAC. Very large, high power, low reliability.
2nd Gen (1950s-60s) โ€” Transistors. Smaller, faster, cheaper. Assembly language.
3rd Gen (1960s-70s) โ€” Integrated Circuits (ICs). High-level languages (FORTRAN, COBOL).
4th Gen (1970s-present) โ€” Microprocessors. Intel 4004 (1971). Personal computers.
5th Gen (present-future) โ€” AI, parallel processing, natural language. Still evolving.

๐Ÿ”‘ Units of storage โ€” SSC/CCC must-know

1 Bit = smallest unit (0 or 1)
1 Byte = 8 bits | 1 KB = 1024 Bytes | 1 MB = 1024 KB | 1 GB = 1024 MB | 1 TB = 1024 GB | 1 PB = 1024 TB
Input devices: Keyboard, Mouse, Scanner, Microphone, Webcam, Joystick, Light Pen, OMR, OCR, MICR, Barcode Reader
Output devices: Monitor (VDU), Printer, Speaker, Projector, Plotter
Both I/O: Touchscreen, Modem, USB drive

๐ŸŽฌ

Computer Architecture โ€” IPO Cycle

Animation
COMPUTER ARCHITECTURE โ€” CLICK EACH COMPONENT โŒจ๏ธ INPUT Devices โ€ข Keyboard โ€ข Mouse โ€ข Scanner โ€ข Microphone โ€ข Webcam โ€ข Joystick โ€ข Light Pen โ€ข OMR/OCR โ€ข MICR โ€ข Barcode Reader โ€ข Touchscreen โ†’ ๐Ÿง  CPU Central Processing Unit ALU Arithmetic & Logic Unit +, -, *, /, AND, OR, NOT CU (Control Unit) Directs all operations Registers Speed: GHz (billions/sec) Cores: 2, 4, 8, 16... Cache: L1, L2, L3 โ†’ ๐Ÿ’พ MEMORY Storage hierarchy Registers (fastest) Inside CPU, tiny Cache (L1/L2/L3) KB to MB, very fast RAM (Primary) Volatile, 4-64 GB ROM (Firmware) Non-volatile, BIOS HDD / SSD (Secondary) 500GB - 4TB, permanent Cloud / Optical (Tertiary) DVD, Blu-ray, Google Drive โ†’ ๐Ÿ–ฅ๏ธ OUTPUT Devices โ€ข Monitor โ€ข Printer โ€ข Speaker โ€ข Projector โ€ข Plotter โ€ข Headphones I/O Both: โ€ข Touchscreen โ€ข Modem โ€ข USB Drive CLICK ANY COMPONENT Computer follows IPO cycle: Input data โ†’ CPU processes it โ†’ Output shown to user โ†’ Data stored in memory.

Every computer operation โ€” from typing a letter to rendering a game โ€” goes through this same cycle.

๐Ÿ’ป

Computer Concepts Explorer

Interactive
1st Gen (1940-56)Vacuum tubes โ€” ENIAC, UNIVAC
2nd Gen (1956-63)Transistors โ€” smaller, faster, cheaper
3rd Gen (1964-71)Integrated Circuits (IC) โ€” IBM 360
4th Gen (1971-now)Microprocessors โ€” Intel 4004 (1971), PCs
5th Gen (future)AI, parallel processing, natural language
Practice (SSC/CCC): What is the difference between RAM and ROM? Which is volatile?
RAM (Random Access Memory):
โ€ข Temporary / Volatile โ€” data lost when power is off
โ€ข Read and Write both possible
โ€ข Used as working memory โ€” stores currently running programs and data
โ€ข Faster than storage but slower than cache
โ€ข Types: DRAM (Dynamic RAM โ€” needs refresh), SRAM (Static RAM โ€” faster, in cache)
โ€ข Size: typically 4GB to 64GB in modern computers

ROM (Read Only Memory):
โ€ข Permanent / Non-volatile โ€” data preserved even without power
โ€ข Generally Read Only (some modern types can be rewritten)
โ€ข Stores firmware โ€” BIOS (Basic Input Output System)
โ€ข Slower than RAM
โ€ข Types: PROM (Programmable ROM), EPROM (Erasable PROM), EEPROM (Electrically Erasable PROM โ€” Flash memory used in USB drives, SSDs)

Key distinction: RAM = workspace (like a desk). ROM = instruction manual (like a book). Storage (HDD/SSD) = filing cabinet.

Exam tip: Flash memory (pen drives, SSDs) is a type of EEPROM โ€” non-volatile but can be rewritten electrically.
Practice (CCC/O-Level): Convert: 1 TB = ? MB. Also, what is a nibble?
Storage unit conversions:
1 Bit = 0 or 1 (smallest unit)
1 Nibble = 4 bits
1 Byte = 8 bits
1 KB (Kilobyte) = 1024 Bytes = 2^10 Bytes
1 MB (Megabyte) = 1024 KB = 2^20 Bytes
1 GB (Gigabyte) = 1024 MB = 2^30 Bytes
1 TB (Terabyte) = 1024 GB = 2^40 Bytes

Therefore: 1 TB = 1024 GB = 1024 ร— 1024 MB = 1,048,576 MB

A nibble = 4 bits (half a byte). Rarely used in practice but appears in exams.

Why 1024 and not 1000? Computers work in binary (powers of 2). 2^10 = 1024 โ‰ˆ 1000. So computer manufacturers use 1024-based units internally, while storage device makers sometimes advertise using 1000 (decimal) โ€” which is why a "1TB" hard drive shows as ~931 GB in Windows.

Mnemonic: Big Kings Might Give Tasty Pudding = Bit, KB, MB, GB, TB, PB