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
| Feature | Hardware | Software |
|---|---|---|
| Meaning | Physical, touchable parts | Programs and instructions |
| Examples | CPU, RAM, hard disk, keyboard, mouse, monitor, printer | Windows (OS), MS Word, Chrome, Excel, antivirus |
| Role | The machine | Tells 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
| Feature | RAM | ROM |
|---|---|---|
| Full name | Random Access Memory | Read-Only Memory |
| Volatile? | Volatile: data lost when power is off | Non-volatile: keeps data without power |
| Use | Holds running programs and data | Stores firmware/boot instructions (BIOS) |
| Write access | Read and write, fast | Generally 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
| Bus | Carries |
|---|---|
| Data bus | The actual data between CPU, memory and devices |
| Address bus | The memory address to read from or write to |
| Control bus | Control signals (read/write commands, timing) |
5. Types of Computers
| Type | Features and use |
|---|---|
| Supercomputer | Fastest; weather forecasting and scientific simulation |
| Mainframe | Large, reliable; bulk data for banks and governments |
| Minicomputer | Mid-range (mostly replaced by servers) |
| Microcomputer/PC | Desktops, laptops, tablets, smartphones |
| Embedded | Single-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 type | Coverage |
|---|---|
| PAN | Around one person (Bluetooth) |
| LAN / WLAN | Building or office (WLAN = Wi-Fi) |
| MAN | A city |
| WAN | Countries 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)
| # | Layer | Job |
|---|---|---|
| 1 | Physical | Raw bits over cables/signals |
| 2 | Data Link | Node-to-node transfer, error detection, MAC addresses |
| 3 | Network | Routing and IP addressing |
| 4 | Transport | End-to-end reliable delivery (TCP/UDP) |
| 5 | Session | Starts, manages and ends sessions |
| 6 | Presentation | Formats, translates, encrypts data |
| 7 | Application | Services 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
| Feature | Traditional programming | AI |
|---|---|---|
| Rules | Fixed, written by a human | Learned from data |
| Behaviour | Same output for same input; changes only if code is rewritten | Improves 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
- Write a short note on artificial intelligence.
- Differentiate between ROM and RAM.
- Explain the three basic buses employed in a computer and what each is used for.
- Draw a basic computer block diagram and briefly explain the function of each part.
- Describe various types of computers classified on the basis of size, memory, capacity, and speed.
- Write a note on how data is stored on a 'Hard disk'.
- What is Open System Interconnections (OSI), and describe its layers?
- What are Internet Protocols? Briefly discuss the most common types used.
- 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.
- (CSS 2025, Q1.10) All operating systems get their total memory initialized from: (A) BIOS (B) RAM (C) ROM (D) CPU
- (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
- (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
- (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
- (B) John McCarthy (he coined 'artificial intelligence' in 1956)
- (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