Elective Computer and IT Applications

Computer and IT ApplicationsUnit 29 min read

Computer Hardware: Components, Functions & Classifications

Unit 2 of Computer and IT Applications explores the physical components of computers—from input/output devices to processing units—how they interact, their real-world applications in Nepali businesses (e.g., Ncell’s servers, eSewa’s payment terminals), and key distinctions like volatile vs. non-volatile memory. Include

Core Components of a Computer System

Every computer, from a smartphone to a supercomputer, is built from five fundamental hardware units that work together. These are defined by the von Neumann architecture, which separates memory and processing but connects them via a data bus.

Accepts dataProcesses dataStores dataDelivers resultsRetains data long-termComputerSystemInputUnitProcessingUnitMemoryUnitOutputUnitStorageUnit
Von Neumann architecture: 5 core components and their roles

1. Input Unit: How Data Enters the System

Definition: Devices that convert human-readable data (text, voice, images) into machine-readable binary (0s and 1s) for processing. Key Devices:

  • Keyboard/Mouse: Convert keystrokes and movements into electrical signals.
  • Scanner: Optical devices that digitize physical documents (used in Ncell’s SIM registration kiosks).
  • Microphone: Captures sound waves and converts them to digital audio (e.g., WhatsApp voice messages).
  • Biometric Sensors: Fingerprint scanners (used in eSewa login) or facial recognition (used in airport security).

Worked Example: How much RAM does a Daraz server need to handle 10,000 simultaneous users?

  • Assumption: Each user generates ~5MB of active data (e.g., product pages, cart).
  • Calculation: .
  • Recommendation: A server with 64GB–128GB RAM (since RAM is volatile and temporary; storage is separate).

In the Real World

  • Ncell’s Network: Uses routers (hardware) to direct calls/data across cell towers. The CPU in these routers processes routing tables (like a GPS for data packets) to ensure calls connect efficiently. Example: When you call from Kathmandu to Pokhara, the router’s processing unit checks the shortest path via fiber optics (storage: SDRAM cache for speed).
  • eSewa Payments: Relies on payment terminals (input: card swipe/mobile PIN; output: receipt printer). The terminal’s secure element chip (a type of ROM) stores encryption keys to protect transactions.
  • NTC’s Traffic Management: Uses sensors and cameras (input units) to monitor Kathmandu’s traffic. Data is sent to a central server (CPU: processes congestion patterns; RAM: temporary storage for live feeds; HDD: logs historical data for analysis).

2. Processing Unit: The Brain of the Computer

Definition: Executes instructions by performing arithmetic/logic operations. The CPU (Central Processing Unit) is the primary processor, while GPUs handle graphics (e.g., video rendering in YouTube).

Key Components of a CPU

Control UnitALURegistersCacheClockInstruction flow
CPU internal components and their interaction hierarchy

How a CPU Works (Fetch-Decode-Execute Cycle):

  1. Fetch: Control Unit retrieves an instruction from RAM via the address bus.
  2. Decode: Interprets the instruction (e.g., "Add numbers from Register A and B").
  3. Execute: ALU performs the operation; result stored in a register (ultra-fast temporary memory).
  4. Store: Writes the result back to RAM or an output device.

Worked Example: Trace how a CPU processes 5 + 3 in binary.

  1. Binary: 5 = 0101, 3 = 0011.
  2. Fetch: Instruction ADD R1, R2 (add registers 1 and 2) is loaded.
  3. Decode: ALU prepares to add.
  4. Execute: ALU adds 0101 + 0011 = 1000 (8 in decimal).
  5. Store: Result 1000 saved to R3.

CPU vs. GPU: Key Differences

Feature CPU GPU
Core Count Few (2–64) Many (1000s)
Speed High (3–5 GHz) Lower per core (1–2 GHz)
Task General-purpose (text, math) Parallel tasks (graphics)
Example Intel Core i7 NVIDIA RTX 3060
Use Case Running OS, apps Rendering 3D games, AI
High single-thread performanceFewer cores (2-16)Small, fast cache (L1-L3)CPU
CPU architecture vs. GPU's many-core parallel design

Real-World Tie-In:

  • YouTube’s Video Processing: Uses GPUs in servers to encode videos (parallel processing for faster rendering).
  • Nepal Stock Exchange (NEPSE): Relies on CPUs for real-time trading calculations (sequential, precise operations).

3. Memory Unit: Temporary vs. Permanent Storage

Memory is classified by volatility (temporary vs. permanent) and speed.

Volatile Memory (Temporary)

  • RAM (Random Access Memory):
    • Type: DRAM (Dynamic RAM) or SRAM (Static RAM).
    • Function: Holds data/instructions while the CPU is active (cleared when power off).
    • Example: A laptop with 8GB RAM can run multiple apps simultaneously.
  • Cache Memory:
    • Levels: L1 (fastest, smallest), L2, L3.
    • Function: Reduces CPU wait time by storing frequently used data.

Non-Volatile Memory (Permanent)

  • ROM (Read-Only Memory):
    • Types: BIOS/UEFI (stores startup instructions), Firmware.
    • Example: Your phone’s bootloader (ROM) loads Android before RAM takes over.
  • Secondary Storage:
    • HDD (Hard Disk Drive): Mechanical (slower, cheaper; used in older PCs).
    • SSD (Solid State Drive): No moving parts (faster, expensive; used in modern laptops).
    • USB/Cloud Storage: Portable or remote storage.

Worked Example: Why does a Daraz server use SSDs instead of HDDs?

  • Latency: SSDs access data in 0.1ms vs. HDDs’ 10ms (100x faster).
  • Reliability: No moving parts → less failure risk for 24/7 operations.
  • Cost: Higher upfront cost but lower long-term downtime costs.

4. Output Unit: Delivering Results to Users

Converts processed data into human-readable formats. Key Devices:

  • Monitor: Displays text/graphics (e.g., eSewa dashboard).
  • Printer: Physical output (e.g., bank receipts).
  • Speaker: Audio output (e.g., WhatsApp calls).
  • Projector: Large-scale displays (used in boardrooms).

Worked Example: How does a bank ATM (output unit) dispense cash?

  1. Input: User inserts card + PIN (input unit).
  2. Processing: CPU verifies PIN against database (memory).
  3. Output: Dispenses cash via stepper motor (mechanical output) + prints receipt (printer).

5. Storage Unit: Long-Term Data Retention

Stores data permanently, even when powered off. Comparison Table:

Storage Type Speed Capacity Cost (per GB) Durability Use Case
HDD Slow (50–120 MB/s) High (1TB–16TB) Low ($0.02–$0.05) Medium (3–5 years) Bulk data (backups)
SSD Fast (300–3500 MB/s) Medium (120GB–4TB) High ($0.10–$0.50) High (5–10 years) OS/apps (laptops, servers)
USB Flash Drive Medium (10–400 MB/s) Low (8GB–1TB) Medium ($0.20–$1.00) Medium (5–10 years) Portable files
Cloud Storage Depends on ISP Scalable (unlimited) Variable ($0.02–$0.20/month) High (encrypted) Remote backups (Google Drive)

Real-World Example:

  • NTC’s Data Centers: Use RAID arrays (multiple HDDs/SSDs in sync) for redundancy. If one drive fails, data is still accessible from others.
  • Pathao’s Ride Data: Stores trip logs in SSDs for fast retrieval during disputes (e.g., "Was the fare correct?").

6. System Bus: The Nervous System of Hardware

Connects all components via three types of buses:

  1. Data Bus: Transfers data between CPU, RAM, and I/O devices (width = bits transferred at once, e.g., 32-bit or 64-bit).
  2. Address Bus: Specifies memory locations (e.g., "Load data from address 0x1234").
  3. Control Bus: Sends control signals (e.g., "Read," "Write," "Interrupt").

Visual:

Data Bus (64-bit)Address BusControl BusData BusData BusCPURAMGPUMonitor
System bus architecture showing 3 bus types (32/64-bit example)

Worked Example: How does a CPU access data from RAM?

  1. CPU sends address (e.g., 0x0042) via address bus.
  2. RAM locates the address and sends data back via data bus.
  3. CPU reads the data (e.g., a pixel color for a YouTube video frame).

Exam Tip

  1. Diagrams > Text: Always draw block diagrams (e.g., CPU components, system bus) in exams. Label every part.
  2. Volatile vs. Non-Volatile: Memorize the RAM (volatile) vs. ROM/HDD (non-volatile) distinction. Exam trick: RAM = "Random Access Memory" (temporary); ROM = "Read-Only Memory" (permanent).
  3. Worked Examples: Expect calculation questions (e.g., "A server needs X RAM for Y users"). Use the formula: .
  4. Real-World Links: Connect hardware to Nepali companies:
    • Ncell: Routers (CPU, RAM, fiber optics).
    • eSewa: Payment terminals (input/output, secure chips).
    • NTC: Traffic sensors (input devices + central processing).
  5. Shortcuts for Full Marks:
    • CPU: Fetch-Decode-Execute cycle (3 steps).
    • Memory: Volatile (RAM) vs. Non-volatile (ROM/HDD/SSD).
    • Buses: Data, Address, Control (3 types).
  6. Avoid Common Mistakes:
    • ❌ Saying "CPU stores data long-term" (it doesn’t; that’s storage).
    • ❌ Confusing GPU (graphics) with CPU (general tasks).

Based on the PU BBA (PU) syllabus for Computer and IT Applications, unit 2.

Discussion

Loading…