๐ป 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.
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.
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
AnimationEvery computer operation โ from typing a letter to rendering a game โ goes through this same cycle.
Computer Concepts Explorer
Interactiveโข 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.
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