optional · CSS study notes
🗄️ OLD — Computer Hardware & System Components (consolidated)
⚠️ SUPERSEDED: This page's content has been split into individual topic pages matching the exact textbook outline. See the main P-I.I. Introduction to Computing index for the current granular pages. Keeping this only for reference.
CSS Computer Science (Optional) — Paper-I, Section-A, Topic I (Introduction to Computing). Covers: Computer Hardware and Software, Computer System Components and Communication System, Components of a Computer System, Input & Output Devices and Their Types, Storage Media, Types of Hardware, Types of Computers (2016), Volatile vs Non-volatile Memory (2016).
Hardware vs Software — Definitions & Distinction
- Hardware: any physical device used in or with a computer — something that can be physically touched (e.g., hard drive, monitor, printer, keyboard, mouse). Hardware provides the physical means for computation but does nothing on its own.
- Software: a general term for a collection of computer programs, procedures, and documentation that perform a task on a computer system — an ordered sequence of instructions for changing the hardware's state. Software cannot be physically touched; it is stored on hardware and executed by it.
- Interdependency: neither is useful alone. Hardware without software has no instructions to follow; software without hardware has nothing to run on. Software tells hardware which tasks to perform, and hardware carries them out.
- Worked example: a monitor and mouse are hardware; the browser running on the machine is software. A video game uses hardware (CPU, RAM, hard drive, video card) but is itself software. An OS (Windows/macOS) is software that provides the interface through which a person controls the hardware and other software.
Comparison table (Hardware vs Software)
| Aspect | Hardware | Software |
|---|---|---|
| Nature | Physical, tangible | Logical, intangible |
| Examples | CPU, RAM, keyboard, printer | OS, MS Word, a compiled game |
| Durability | Wears out physically over time | Does not physically wear out; can degrade via corruption/bugs |
| Failure mode | Mechanical/electrical failure | Bugs, crashes, corruption |
| Reproducibility | Cannot be copied — must be manufactured | Can be copied/reinstalled without loss |
| Dependency | Needs software to be useful | Needs hardware to run |
Computer System Components and Communication System
A computer system is organized around four functional components that must communicate with one another to process data:
- Input Unit — accepts data/instructions from the outside world
- Central Processing Unit (CPU) — processes the data (see below)
- Memory Unit — stores data/instructions temporarily during processing
- Output Unit — delivers processed results back to the outside world
These components are linked by a communication system made of buses — sets of parallel wires that carry signals between the CPU, memory, and I/O devices:
- Data bus: carries the actual data being transferred (bidirectional)
- Address bus: carries the memory address specifying where data should be read/written (unidirectional, from CPU)
- Control bus: carries control signals (read/write, clock, interrupts) that coordinate the timing and nature of transfers
Components of a Computer System (Detailed)
- CPU (Central Processing Unit) — the "brain" of the computer, made of:
- Control Unit (CU): directs and coordinates all activities of the computer — fetches instructions, decodes them, and directs data flow between other units; does not itself perform calculations
- Arithmetic Logic Unit (ALU): performs all arithmetic (add, subtract, multiply, divide) and logical (AND, OR, NOT, comparisons) operations
- Registers: small, extremely fast storage locations inside the CPU used to hold data/instructions currently being processed (e.g., Accumulator, Program Counter, Instruction Register)
- Memory (Primary Storage):
- RAM (Random Access Memory): volatile, read-write, holds currently running programs/data; lost when power is off
- ROM (Read-Only Memory): non-volatile, holds firmware/boot instructions that don't change
- Cache Memory: very fast, small memory between CPU and RAM that stores frequently accessed data to speed up processing
- Secondary Storage: non-volatile, larger-capacity, slower than RAM, used for permanent storage of data/programs (HDD, SSD, optical disks, USB drives)
- Input/Output Devices: covered in detail below
Input & Output Devices and Their Types
Devices are classified by the direction of data flow relative to the computer:
Input Devices (data flows INTO the computer)
| Device | Function |
|---|---|
| Keyboard | Text and command entry |
| Mouse | Pointing, clicking, selecting on screen |
| Scanner | Converts printed images/documents into digital form |
| Microphone | Captures audio input |
| Webcam | Captures video/image input |
| Joystick | Directional input, mainly gaming |
| Touchscreen | Combined input/output — accepts touch as input |
| Barcode Reader | Reads barcoded data (retail, inventory) |
| Digital Camera | Captures images/video for transfer to the computer |
Output Devices (data flows OUT of the computer)
| Device | Function |
|---|---|
| Monitor (VDU) | Visual display of processed output |
| Printer | Produces a physical (hard copy) of output — impact (dot-matrix) vs non-impact (inkjet, laser) |
| Speaker | Audio output |
| Plotter | High-precision output for large drawings/blueprints (used in engineering/CAD) |
| Projector | Displays output onto a large external surface |
Note: some devices, like touchscreens and modems, are both input and output devices.
Storage Media and Their Types
Storage media differ in speed, capacity, durability, and cost per GB:
- Magnetic storage: data stored via magnetized regions on a surface
- Hard Disk Drive (HDD): spinning magnetic platters, high capacity, moderate speed, mechanical parts wear out over time
- Magnetic Tape: sequential access only, very cheap per GB, used mainly for long-term backup/archival
- Optical storage: data read/written using a laser
- CD (~700 MB), DVD (~4.7 GB), Blu-ray (25 GB+) — durable, portable, but slower than magnetic/solid-state and can be scratched
- Solid-state storage: no moving parts, data stored electronically in flash memory cells
- SSD (Solid State Drive): much faster and more durable than HDD, but historically higher cost per GB (gap narrowing)
- USB Flash Drive / Memory Cards (SD cards): small, portable, used for transferring/backing up data
- Cloud storage: data stored on remote servers accessed over the Internet (e.g., Google Drive, iCloud) — offloads physical storage concerns but depends on network connectivity
Trade-off to remember for exam comparisons: Magnetic = large capacity, cheap, but mechanically fragile and slower. Optical = portable and durable against magnetism, but limited capacity and speed. Solid-state = fastest and most durable (no moving parts), but historically pricier per GB.
Types of Hardware (Classification)
Hardware can be grouped functionally into:
- Input hardware — keyboard, mouse, scanner, etc.
- Output hardware — monitor, printer, speaker, etc.
- Processing hardware — CPU, motherboard chipset
- Storage hardware — HDD, SSD, RAM, ROM
- Communication hardware — modem, network interface card (NIC), router — enable data exchange between computers/networks
Types of Computers (2016 Past Paper)
By Working Principle
- Analog Computer: processes continuous physical quantities (e.g., voltage, temperature) — used in specialized scientific/engineering instruments; fast but limited precision
- Digital Computer: processes discrete data represented in binary (0s and 1s) — the type in everyday use (PCs, laptops, smartphones); highly precise
- Hybrid Computer: combines analog input capture with digital processing precision — used in specialized medical equipment (e.g., ICU monitoring systems) and industrial control
By Size and Processing Power
| Type | Description | Example use |
|---|---|---|
| Supercomputer | Fastest, most powerful class; massively parallel processing | Weather forecasting, nuclear simulations, scientific research |
| Mainframe Computer | Large, powerful, supports hundreds/thousands of simultaneous users | Banking systems, large-scale census/data processing |
| Minicomputer (Midrange) | Mid-level power, smaller than mainframes, once common in businesses | Small business data processing (largely historical now) |
| Microcomputer (Personal Computer) | The everyday desktop/laptop, single-user oriented | Home, office, education |
| Embedded Computer | A computer built into another device to perform a dedicated function | Microwave ovens, ATMs, car engine control units |
Exam angle: examiners like a direct "supercomputer vs mainframe" contrast — supercomputers are optimized for raw computational speed on a single complex task (e.g., simulation), while mainframes are optimized for reliably handling many simultaneous transactions/users (e.g., banking).
Difference Between Volatile and Non-Volatile Memory (2016 Past Paper)
| Aspect | Volatile Memory | Non-Volatile Memory |
|---|---|---|
| Data retention | Lost when power is switched off | Retained even without power |
| Examples | RAM, Cache | ROM, HDD, SSD, Flash drives |
| Speed | Very fast | Generally slower than RAM (though SSD is fast) |
| Role | Temporary working memory during processing | Permanent storage for programs/data/OS |
| Cost per GB | Higher | Lower (for HDD; SSD is higher but still non-volatile) |
Key exam line: "Volatile memory loses its contents when power is removed; non-volatile memory retains its contents indefinitely without power." This single sentence answers most short-answer variants of this question.
MCQ Traps
- Control Unit directs operations; it does not perform calculations — that's the ALU's job. Don't merge the two.
- RAM is volatile, ROM is non-volatile — a classic reversed-answer trap in MCQs.
- Supercomputer ≠ Mainframe: supercomputer = raw speed on one huge task; mainframe = many simultaneous users/transactions.
- SSD has no moving parts — HDD does (spinning platters, moving read/write head) — this is why SSDs are faster and more durable, not just "newer technology."
- A touchscreen is both an input and output device — don't classify it as only one.
Self-Test Questions
- Name the two sub-units of the CPU and state what each does.
- List the three types of buses in a computer's communication system and what each carries.
- Differentiate a supercomputer from a mainframe computer.
- Give two examples each of volatile and non-volatile memory.
- Why is solid-state storage generally faster and more durable than magnetic storage?
- Classify the following as input, output, or both: touchscreen, plotter, scanner, modem.