CSS Prepare

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)

AspectHardwareSoftware
NaturePhysical, tangibleLogical, intangible
ExamplesCPU, RAM, keyboard, printerOS, MS Word, a compiled game
DurabilityWears out physically over timeDoes not physically wear out; can degrade via corruption/bugs
Failure modeMechanical/electrical failureBugs, crashes, corruption
ReproducibilityCannot be copied — must be manufacturedCan be copied/reinstalled without loss
DependencyNeeds software to be usefulNeeds 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:

  1. Input Unit — accepts data/instructions from the outside world
  2. Central Processing Unit (CPU) — processes the data (see below)
  3. Memory Unit — stores data/instructions temporarily during processing
  4. 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)

DeviceFunction
KeyboardText and command entry
MousePointing, clicking, selecting on screen
ScannerConverts printed images/documents into digital form
MicrophoneCaptures audio input
WebcamCaptures video/image input
JoystickDirectional input, mainly gaming
TouchscreenCombined input/output — accepts touch as input
Barcode ReaderReads barcoded data (retail, inventory)
Digital CameraCaptures images/video for transfer to the computer

Output Devices (data flows OUT of the computer)

DeviceFunction
Monitor (VDU)Visual display of processed output
PrinterProduces a physical (hard copy) of output — impact (dot-matrix) vs non-impact (inkjet, laser)
SpeakerAudio output
PlotterHigh-precision output for large drawings/blueprints (used in engineering/CAD)
ProjectorDisplays 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:

  1. Input hardware — keyboard, mouse, scanner, etc.
  2. Output hardware — monitor, printer, speaker, etc.
  3. Processing hardware — CPU, motherboard chipset
  4. Storage hardware — HDD, SSD, RAM, ROM
  5. 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

TypeDescriptionExample use
SupercomputerFastest, most powerful class; massively parallel processingWeather forecasting, nuclear simulations, scientific research
Mainframe ComputerLarge, powerful, supports hundreds/thousands of simultaneous usersBanking systems, large-scale census/data processing
Minicomputer (Midrange)Mid-level power, smaller than mainframes, once common in businessesSmall business data processing (largely historical now)
Microcomputer (Personal Computer)The everyday desktop/laptop, single-user orientedHome, office, education
Embedded ComputerA computer built into another device to perform a dedicated functionMicrowave 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)

AspectVolatile MemoryNon-Volatile Memory
Data retentionLost when power is switched offRetained even without power
ExamplesRAM, CacheROM, HDD, SSD, Flash drives
SpeedVery fastGenerally slower than RAM (though SSD is fast)
RoleTemporary working memory during processingPermanent storage for programs/data/OS
Cost per GBHigherLower (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

  1. Name the two sub-units of the CPU and state what each does.
  2. List the three types of buses in a computer's communication system and what each carries.
  3. Differentiate a supercomputer from a mainframe computer.
  4. Give two examples each of volatile and non-volatile memory.
  5. Why is solid-state storage generally faster and more durable than magnetic storage?
  6. Classify the following as input, output, or both: touchscreen, plotter, scanner, modem.