Quick summary
A computer is an electronic device that accepts data, processes it under the control of a program, stores it and gives output. This topic covers characteristics of computers, generations, classification, the block diagram (input, CPU, memory, output), types of memory, and hardware versus software.
Key points
- A computer works on the IPO cycle: Input → Process → Output, with Storage.
- Characteristics: speed, accuracy, diligence (no tiredness), versatility, huge storage. A computer has no IQ (cannot think on its own) and no feelings.
- Generations: 1st – vacuum tubes (ENIAC, UNIVAC); 2nd – transistors; 3rd – integrated circuits (ICs); 4th – microprocessors (VLSI); 5th – artificial intelligence, parallel processing.
- Classification by size/power: microcomputer (PC, laptop), minicomputer, mainframe, supercomputer. India's PARAM series of supercomputers was built by C-DAC, Pune.
- Classification by type of data: analog, digital and hybrid computers.
- Block diagram: Input unit, Central Processing Unit (CPU), Output unit and Memory/Storage unit.
- The CPU has three parts: ALU (arithmetic and logic operations), CU (control unit, directs all operations) and registers (very fast small storage).
- Primary memory: RAM (volatile, read/write) and ROM (non-volatile, read-only; PROM, EPROM, EEPROM).
- Cache memory is a very fast memory between the CPU and RAM.
- Secondary memory: hard disk, SSD, pen drive, CD/DVD, magnetic tape. It is non-volatile and large.
- Memory hierarchy (fast and costly → slow and cheap): registers → cache → RAM → secondary storage.
- Software types: system software (operating system, compilers, utilities) and application software (MS Word, Tally, browsers).
- Language translators: compiler (translates whole program at once), interpreter (line by line), assembler (assembly to machine language).
Important terms
- Hardware – physical parts of a computer you can touch.
- Software (सॉफ्टवेअर / प्रणाली) – set of programs that tell the hardware what to do.
- Bit – smallest unit of data, 0 or 1. Byte – 8 bits.
- Volatile memory – loses its data when power goes off (RAM).
- Firmware – software stored permanently in ROM, like BIOS.
- Peripheral – external device attached to the computer (printer, scanner).
Formulas
Memory units (binary):
| Unit | Size |
|---|---|
| 1 Nibble | 4 bits |
| 1 Byte | 8 bits |
| 1 KB | 1024 bytes |
| 1 MB | 1024 KB |
| 1 GB | 1024 MB |
| 1 TB | 1024 GB |
- Input devices: keyboard, mouse, scanner, microphone, webcam, barcode reader, OMR, MICR (used in bank cheques).
- Output devices: monitor, printer (impact: dot-matrix; non-impact: inkjet, laser), speaker, plotter, projector.
5 important questions
Q1. Differentiate between RAM and ROM.
RAM is volatile, read-write memory used to hold programs currently running. ROM is non-volatile, mostly read-only memory that stores permanent instructions like the BIOS. RAM is larger; ROM is small.
Q2. What is the difference between a compiler and an interpreter?
A compiler translates the whole program into machine code at once and shows all errors together; execution is fast. An interpreter translates and runs one line at a time and stops at the first error; it is slower. C uses a compiler; Python normally uses an interpreter.
Q3. Draw and explain the block diagram of a computer.
- Input unit: accepts data and converts it into machine form (keyboard, mouse).
- Memory unit: stores data and instructions (primary and secondary).
- CPU: ALU does calculations and comparisons; CU fetches, decodes and controls; registers hold data in use.
- Output unit: converts results into human-readable form (monitor, printer).
- Arrows show data flow from input to memory to CPU to output, and control signals from CU to all units.
Q4. Explain the generations of computers.
- First (about 1940s–1950s): vacuum tubes, machine language, very large, much heat.
- Second: transistors, assembly language, smaller and more reliable.
- Third: integrated circuits, keyboards and monitors, operating systems.
- Fourth: microprocessors (VLSI), personal computers, GUIs, networks.
- Fifth: AI, parallel processing, natural language, ULSI.
Q5. Explain the memory hierarchy.
- Registers: inside CPU, fastest, smallest.
- Cache: between CPU and RAM, stores frequently used data.
- Main memory (RAM): holds running programs.
- Secondary storage: HDD/SSD, large, permanent, slower.
- As we go down: speed and cost per bit decrease, capacity increases.
Exam tip
The block diagram question comes almost every year. Draw neat boxes with arrows and label ALU, CU and memory clearly.