CSS Prepare

compulsory · CSS study notes

1. Computer (Hardware & Software Fundamentals)

📌

CSS GSA — Paper 7, Part-I, Section V, Sub-topic 1: Computer (Hardware and Software Fundamentals; I/O Processing and Data Storage; Networking and Internet Standards; Application/Business Software; Social Media; Information Systems; AI Fundamentals)


📊

Past-paper weightage: very high. ROM vs RAM, AI, the computer block diagram, buses and OSI layers are among the most repeated IT questions.

1. Hardware vs Software

FeatureHardwareSoftware
MeaningPhysical, touchable partsPrograms and instructions
ExamplesCPU, RAM, hard disk, keyboard, mouse, monitor, printerWindows (OS), MS Word, Chrome, Excel, antivirus
RoleThe machineTells the machine what to do
  • System software: operating systems (Windows, Linux, macOS) that manage hardware and resources
  • Application software: programs for user tasks (word processors, browsers)
  • CPU: the 'brain' that executes instructions

2. RAM vs ROM

FeatureRAMROM
Full nameRandom Access MemoryRead-Only Memory
Volatile?Volatile: data lost when power is offNon-volatile: keeps data without power
UseHolds running programs and dataStores firmware/boot instructions (BIOS)
Write accessRead and write, fastGenerally not user-writable

3. Basic Computer Block Diagram

  • Input unit (keyboard, mouse) → CPU → Output unit (monitor, printer)
  • CPU contains
    • Control Unit: directs operations and instruction flow
    • ALU: arithmetic and logic operations
    • Registers: tiny, fastest storage for data being processed
  • Memory: primary (RAM, ROM) and secondary/storage (HDD, SSD)

4. Three Basic Buses

BusCarries
Data busThe actual data between CPU, memory and devices
Address busThe memory address to read from or write to
Control busControl signals (read/write commands, timing)

5. Types of Computers

TypeFeatures and use
SupercomputerFastest; weather forecasting and scientific simulation
MainframeLarge, reliable; bulk data for banks and governments
MinicomputerMid-range (mostly replaced by servers)
Microcomputer/PCDesktops, laptops, tablets, smartphones
EmbeddedSingle-purpose, built into appliances and cars

6. Data Storage

  • Hard disk (HDD): stores data magnetically on spinning platters
    • Organized in concentric tracks, divided into sectors
    • A read/write head on an actuator arm magnetizes tiny regions (1s and 0s) or reads them
    • Non-volatile
  • SSD: stores data electronically in flash chips, no moving parts; faster and tougher
  • Storage hierarchy (fastest/smallest → slowest/largest): registers → cache → RAM → HDD/SSD
  • Memory units: bit → byte (8 bits) → KB → MB → GB → TB
  • Basic cycle: input → processing (CPU) → output

7. Networking and Internet Standards

  • LAN (small area) vs WAN (large area, e.g. the Internet)
Network typeCoverage
PANAround one person (Bluetooth)
LAN / WLANBuilding or office (WLAN = Wi-Fi)
MANA city
WANCountries and continents; the Internet is the largest
  • IP address: unique identifier of a device; TCP/IP is the Internet's core protocol suite
  • HTTP/HTTPS (web; S = secure), DNS (domain names → IP addresses), FTP (files), SMTP (send email), POP3/IMAP (receive email)

7.1 OSI model (7 layers, bottom → top)

#LayerJob
1PhysicalRaw bits over cables/signals
2Data LinkNode-to-node transfer, error detection, MAC addresses
3NetworkRouting and IP addressing
4TransportEnd-to-end reliable delivery (TCP/UDP)
5SessionStarts, manages and ends sessions
6PresentationFormats, translates, encrypts data
7ApplicationServices for user software (HTTP, FTP, email)
  • Mnemonic: 'Please Do Not Throw Sausage Pizza Away'

8. Application and Business Software, Social Media, Information Systems

  • Application/business software: ERP (Enterprise Resource Planning), CRM (Customer Relationship Management), office suites
  • Social media types: social networking (Facebook, LinkedIn), microblogging (X/Twitter), media sharing (Instagram, YouTube), discussion forums (Reddit)
  • Information system: people + hardware + software + data that collect, process, store and distribute information for decisions

9. Artificial Intelligence (AI)

  • AI: machines simulating human intelligence (learning, reasoning, self-correction)
  • Machine Learning (ML): subset of AI that learns from data; Deep Learning: subset of ML using multi-layer neural networks
  • Branches: machine learning, natural language processing, computer vision, robotics, expert systems
FeatureTraditional programmingAI
RulesFixed, written by a humanLearned from data
BehaviourSame output for same input; changes only if code is rewrittenImproves with experience; handles new cases

🆕

Latest: Pakistan's cabinet approved the National AI Policy 2025 on 30 July 2025. Targets: train 1 million AI professionals by 2030, 1,000 local AI products and 50,000 AI-enabled civic projects in five years, 3,000 scholarships a year, an AI Innovation Fund and Venture Fund, and an AI Council to oversee it.

10. MCQ Traps

🚨

  • CPU is the 'brain'; RAM is volatile; ROM is non-volatile
  • ML is a subset of AI; deep learning is a subset of ML
  • OSI has exactly 7 layers in a fixed order

11. Self-Test Questions

  1. Write a short note on artificial intelligence.
  2. Differentiate between ROM and RAM.
  3. Explain the three basic buses employed in a computer and what each is used for.
  4. Draw a basic computer block diagram and briefly explain the function of each part.
  5. Describe various types of computers classified on the basis of size, memory, capacity, and speed.
  6. Write a note on how data is stored on a 'Hard disk'.
  7. What is Open System Interconnections (OSI), and describe its layers?
  8. What are Internet Protocols? Briefly discuss the most common types used.
  9. What is Social Media? Discuss its types.

12. Past-Paper MCQs (FPSC)

✅

Taken from the FPSC papers you shared (2015–2025). FPSC does not publish MCQ keys, so the answers are worked out by me; the two marked with a note need double-checking.

  1. (CSS 2025, Q1.10) All operating systems get their total memory initialized from: (A) BIOS (B) RAM (C) ROM (D) CPU
  2. (CSS 2025, Q1.15) Who is known as the inventor of Artificial Intelligence? (A) Charles Babbage (B) John McCarthy (C) Alan Turing (D) None of these
  3. (CSS 2025, Q1.16) Which of the following is the common language for Artificial Intelligence? (A) Java (B) Python (C) Lisp (D) None of these
  • ✅ Answer key
    1. (A) BIOS is the most likely key: it runs at start-up and initializes hardware and memory. Note: the BIOS itself is stored in ROM, so some keys give (C); check your solved MCQ book
    2. (B) John McCarthy (he coined 'artificial intelligence' in 1956)
    3. (B) Python is today's most common AI language; (C) Lisp is the classic one and may be the keyed answer. Note: no single official key is published

13. Past-Paper Long Questions with Answers (FPSC)

✅

Every question below appeared in the FPSC papers you shared; the year and question number are in each title. Answers are model outlines written by me, ready to expand.

  • CSS 2017 Q5(a): Differentiate between RAM and ROM. (5)
    • Use the comparison table in section 2
    • Add: types of ROM (PROM, EPROM, EEPROM/flash); types of RAM (DRAM, SRAM); RAM is the working memory, ROM holds the boot program
  • CSS 2017 Q5(b): Name three basic buses employed in a computer and explain what each is used for. (5)
    • Use the table in section 4 (data, address, control)
    • Definition: a bus is a set of wires/paths carrying signals between CPU, memory and devices
    • Example: to read memory, the CPU puts the address on the address bus, signals 'read' on the control bus, and gets the data on the data bus
  • CSS 2017 Q5(c): Draw a basic computer block diagram and briefly explain the function of each part. (5)
    • Draw: Input → [Control Unit + ALU + Registers = CPU] ↔ Memory (primary and secondary) → Output
    • Functions
      • Input unit: takes in data and instructions
      • CPU: control unit directs, ALU calculates, registers hold working data
      • Memory: RAM for active data, ROM for startup, storage for long-term data
      • Output unit: shows results
    • Flow: input → CPU (using memory) → output
  • CSS 2017 Q5(d): Describe various types of computers classified on the basis of size, memory, capacity and speed. (5)
    • Use the table in section 5 (supercomputer, mainframe, minicomputer, microcomputer, embedded)
    • Also by purpose: analog, digital, hybrid
  • CSS 2024 Q5(b): What is the difference between software and hardware? Give five examples of each. (5)
    • Use the table in section 1
    • Five hardware: CPU, RAM, hard disk, monitor, keyboard (mouse, printer)
    • Five software: Windows, Linux, MS Word, Chrome, antivirus (Excel)
  • CSS 2021 Q5(c): What is computer memory? Describe its units and discuss various types of memories. (5)
    • Memory: where a computer keeps data and instructions
    • Units: bit → byte (8 bits) → KB → MB → GB → TB (each about 1,000 or 1,024 times the last)
    • Types
      • Primary: RAM (volatile) and ROM (non-volatile), plus cache
      • Secondary: HDD, SSD, USB flash, optical discs; permanent storage
  • CSS 2018 Q5(a): Write a note on how data is stored on a hard disk. (5)
    • Use section 6: magnetic platters, tracks and sectors, read/write head, binary 1s and 0s, non-volatile
    • Compare with SSD (flash memory, no moving parts)
  • CSS 2020 Q5(c): What is Open System Interconnection (OSI) and describe its layers? (5)
    • OSI: a 7-layer reference model that standardizes how systems communicate on a network
    • Use the layer table in section 7.1
    • Benefits: modular design, standard protocols, easier troubleshooting
  • CSS 2019 Q5(b), 2023 Q5(d): Types of computer networks; network vs internet; application vs program vs software (5)
    • Network types: PAN, LAN/WLAN, MAN, WAN (table in section 7)
    • Network vs Internet
      • Network: two or more connected devices sharing resources within a limited scope (e.g. a LAN in one office)
      • Internet: the global 'network of networks' using TCP/IP
    • Program vs software vs application
      • Program: one set of coded instructions for one task
      • Software: the whole umbrella (system software + applications)
      • Application: user-facing software (Word, browser, mobile apps)
  • CSS 2016 Q3(a), 2018 Q5(d), 2022 Q5(d), 2025 Q5(c): Artificial intelligence: note; how it helps humanity; AI and robotics; AI vs traditional programming and branches (5)
    • AI: field of computer science building systems that perform tasks needing human intelligence (learning, reasoning, problem-solving, language, perception)
    • AI vs traditional programming: see the table in section 9
    • Branches: machine learning, NLP, computer vision, robotics, expert systems
    • Robotics: designing and building machines that act in the physical world; AI is the brain, robotics is the body (self-driving cars, industrial arms, drones)
    • How AI helps humanity
      • Healthcare: diagnosis, drug discovery
      • Industry: automation and safety
      • Daily life: assistants, maps, recommendations
      • Agriculture: crop prediction
      • Disaster response and science: fast data analysis
    • Concerns: job loss, bias, privacy, misuse
    • Pakistan: National AI Policy 2025 (see the box above)

14. CSS Exam Perspective

🎯

  • Most repeated areas: RAM vs ROM, buses, block diagram, types of computers, OSI layers, AI (asked in 2016, 2018, 2022, 2025)
  • Short-question style: 'Differentiate between…', 'Draw and explain…', 'Describe…'
  • Tip: draw a neat block diagram and OSI table; both score marks quickly