Computer Operations Notes
Computer Operations Notes
I’ve based this on standard CS/IT syllabi for Pakistani government exams (e.g.,
FPSC/PPSC/PTS/CTSP patterns for BS-17 IT roles), focusing on operational aspects relevant to
WAPDA (system management, troubleshooting, infrastructure). Each topic includes:
• Exam Tips: How to score high (aim for 90% by mastering these).
• Sample MCQ: With explanation (practice similar ones from Dogar’s or online).
Definition & Evolution: A computer is a machine you can program (give instructions) to
process data – that means take in raw facts, do something with them, and give useful results. It
started simple and got smarter over time.
Early days (Mechanical era): Began with tools like the abacus (ancient counting beads
on wires – imagine sliding beads to add numbers). Then, in 1837, Charles Babbage made
the Analytical Engine, a machine with punch cards for instructions – like the first idea of
a programmable computer.
Electronic era: In 1936, Alan Turing created the Turing Machine concept, a simple
model that could solve any math problem step by step – this is the foundation of all
modern computers. Computers evolved through generations:
o 1st Generation (1940s-1950s): Used vacuum tubes (big glass bulbs for switching),
huge machines like ENIAC – hot, slow, and broke often.
o 2nd Generation (1950s-1960s): Switched to transistors (tiny switches) – smaller,
faster, used in business.
o 3rd Generation (1960s-1970s): Integrated Circuits (ICs – many transistors on one
chip) – even smaller, cheaper, led to minicomputers.
o 4th Generation (1970s-now): Microprocessors (whole CPU on one chip) –
personal computers like IBM PC.
o 5th Generation (now-future): AI and super smart systems, like voice assistants.
Remember: Evolution made computers smaller, faster, cheaper – from room-sized
to pocket-sized.
Characteristics in Depth: Computers have superpowers that make them useful, but they're just
machines.
Speed: Super fast – measured in MIPS (Millions of Instructions Per Second) or GHz
(Gigahertz, like clock ticks per second). Example: A modern computer does billions of
calculations in a second, like adding a million numbers while you blink.
Accuracy: Always correct if instructions are right – no mistakes from tiredness. But
remember GIGO (Garbage In, Garbage Out) – bad input means bad output.
Diligence: Works non-stop without getting bored or slow – consistent every time. Useful
for long jobs like monitoring power grids in WAPDA.
Versatility: Can do many tasks – play games, calculate bills, control machines. It
multitasks by switching quickly between jobs.
Reliability: Rarely fails if maintained – measured by MTBF (Mean Time Between
Failures), like how long hardware lasts before breaking.
Automation: Runs tasks on its own once set up, like batch processing (running a list of
jobs automatically) or scripting (simple programs for repeat work). Easy way to
remember: SAD-VRA (Speed, Accuracy, Diligence, Versatility, Reliability,
Automation).
No intelligence: Can't think or decide like humans – follows rules only. If program is
wrong, output is wrong (again, GIGO).
Dependency on power: Needs electricity – stops if power goes out. In WAPDA
operations, this means backup power is key.
High initial cost: Buying and setting up is expensive, though running is cheap.
Security vulnerabilities: Can be hacked or get viruses – needs firewalls and updates.
Remember: Computers are dumb helpers – powerful but need smart users.
Key Concepts:
Data vs Information: Data is raw facts (like numbers 25, 30) – useless alone.
Information is processed data (like average temperature is 27.5) – useful for decisions.
Hardware-Software Interdependence: Hardware is physical parts (like body), software
is instructions (like brain). They need each other – no software, hardware is useless; no
hardware, software can't run.
Hardware is the touchable parts of a computer. Think of it as the body's organs working together.
Keyboard: Main input – QWERTY layout (standard key arrangement for easy typing).
Has function keys (F1-F12 for shortcuts, like F5 refresh).
Mouse: Points and clicks – optical (uses light sensor, no ball) vs mechanical (old ball
type, gets dirty).
Scanner: Copies paper to digital – OCR (Optical Character Recognition) reads text like a
smart camera.
Joystick: For games or CAD (Computer-Aided Design) – moves in directions, like
controlling a crane in operations.
Microphone: Voice input – for speech-to-text in software, useful in control rooms.
Others: Touchscreen (finger input), Light Pen (draw on screen).
Output Devices: These show results.
Monitor: Screen – types: CRT (old, bulky tube), LCD (flat, energy-saving liquid
crystals), LED (brighter, longer life). Resolution: pixels (dots), like 1920x1080 for clear
pictures.
Printer: Makes hard copies – Impact (Dot Matrix: pins hit ribbon, noisy for receipts);
Non-Impact (Laser: toner powder, fast; Inkjet: sprays ink, colorful).
Speakers: Sound output – for alerts or voice feedback in systems.
Plotter: Draws lines – for big maps or engineering drawings in WAPDA (vector
graphics: math-based lines, not pixels). Others: Headphones (private sound), Projector
(big screen display).
CPU Architecture: CPU (Central Processing Unit) is the brain. Based on Von Neumann model:
programs stored in memory, not wired in.
ALU (Arithmetic Logic Unit): Does math (add, subtract, multiply, divide) and logic
(AND: both true; OR: one true; NOT: flip true/false).
CU (Control Unit): Boss – fetches instructions from memory, decodes (understands),
executes (does it).
Clock Speed: Ticks per second (Hz) – higher means faster, like 3GHz = 3 billion ticks.
Bus System: Roads inside – Data Bus (carries info), Address Bus (says where to go),
Control Bus (signals like read/write). Remember: CPU cycle: Fetch-Decode-Execute-
Store. Registers: tiny fast memory inside CPU for quick work.
Storage Hierarchy: Where data lives – from fast/expensive to slow/cheap. Draw a pyramid: top
small/fast, bottom big/slow.
Modems: Change digital to analog (modulation) and back (demodulation) for internet
over phone lines.
UPS: Battery backup – keeps computer running during power cuts, critical for WAPDA
to avoid data loss. Others: Webcam (video input), External HDD (extra storage).
Subtopic 1.3: Number Systems & Data Representation
Bases:
Conversions:
Binary to Decimal: Multiply by powers of 2 (right to left). Example: 101 = (14) + (02) +
(1*1) = 5.
Decimal to Binary: Divide by 2, read remainders bottom-up. Example: 5 /2 =2 rem1;
2/2=1 rem0; 1/2=0 rem1 → 101.
Hex to Binary: Each hex = 4 bits. Example: A (10) = 1010. Practice: Do 10 examples
daily – key for MCQs.
1’s Complement: Flip bits (0→1, 1→0). Example: 101 (5) → 010 (but for negatives).
2’s Complement: 1’s +1. Example: 101 → 010 +1 = 011 (-5 in signed). Used most in
computers for easy math.
ASCII (American Standard Code for Information Interchange): 7-bit (128 codes) –
e.g., A=65.
Extended ASCII: 8-bit (256 codes) – adds symbols.
Unicode: 16/32-bit – for all languages, like emojis or Urdu.
BCD (Binary Coded Decimal): 4 bits per digit – e.g., 5=0101, for calculators to avoid
rounding errors.
Exam Tips
Pitfalls: Don't mix volatile (RAM – loses data) with non-volatile (ROM/SSD – keeps
data). Practice conversions under 30 seconds. Confuse generations? 3rd used ICs for
smaller size.
Revision: Draw mind maps – pyramid for storage, timeline for evolution. Link to job: In
WAPDA, know how hardware uptime prevents power operation failures.
Sample MCQ: Which generation used ICs? (A) Third (Correct) – ICs made computers
smaller, cheaper, faster than transistors. Another: What is GIGO? Garbage In Garbage
Out – bad input leads to bad output. Aim for 90%? Read notes twice daily, quiz yourself
on each point. Next topic when ready!
Users at a Tasks at a
Type Example Key Point
time time
Only one user, one program
Single-user 1 1 MS-DOS
at a time
Unix, Linux, Windows Many users logged in
Multi-user Many Many
Server together
Windows 10/11, One user can run many
Multitasking 1 Many
modern Linux programs together
Modern Windows, Uses more than one
Multiprocessing — Many CPUs
Linux processor
Real-time — Time- VxWorks, RT-Linux Must respond within strict
Users at a Tasks at a
Type Example Key Point
time time
critical time limit
Multiprocessing types
Symmetric Multiprocessing (SMP) → All CPUs are equal, any CPU can run any task
Asymmetric Multiprocessing (AMP) → One master CPU gives work to slave CPUs
Kernel
Description Example Advantages Disadvantages
Type
Everything (drivers, file Traditional Large, crash in one
Monolithic system, etc.) in one big Unix, older Very fast part → whole OS
program in kernel space Linux crash
Only very basic functions Slower (more
More stable,
Microkernel in kernel, rest in user Minix, QNX messages between
modular
space parts)
Mix of both – important Modern Balance of
Hybrid services in kernel, others Windows, speed & Complex to design
outside modern Linux stability
text
New → Ready → Running ↔ Blocked → Terminated
↑ ↓
└──────────┘ (Context Switch)
New: Just created
Ready: Waiting for CPU
Running: Currently using CPU
Blocked / Waiting: Waiting for I/O (disk, printer, network, keyboard)
Terminated: Finished or killed
Process ID (PID)
Process state
Program Counter (next instruction)
CPU registers
Memory information
Open files list
Accounting info (CPU used, time started)
Thread
Lightweight process
Threads of same process share code, data, files
Each thread has its own: stack, registers, program counter
Multithreading Models
Race Condition: When multiple threads change shared data → wrong result
Critical Section: Part of code where shared resource is accessed
Solutions
Mutex (Mutual Exclusion): Only one thread can enter critical section at a time
Semaphore:
o Binary Semaphore → like mutex (0 or 1)
o Counting Semaphore → allows multiple threads (value = number allowed)
Other tools: Monitors, Condition Variables (advanced)
Belady’s
Algorithm Description Suffers from
Anomaly?
FIFO First In First Out Belady’s Yes
LRU Least Recently Used — No
Replace page that will not be used for longest Ideal (not
Optimal No
time practical)
Thrashing When system spends more time swapping pages than doing useful work. Cause: Too
few frames → too many page faults
Prevention
Increase RAM
Use Working Set Model (keep only recently used pages in memory)
Name
Type (exe, txt, pdf, mp3…)
Size
Location (starting block on disk)
Date created / modified
Protection (permissions): Read (r), Write (w), Execute (x)
Directory Structures
Device Drivers
Access Control
Common OS Utilities
Read this topic 3–4 times. Make short flashcards for lists (PCB contents, page replacement, disk
scheduling, kernel types).
MS Word is for writing and formatting documents. Advanced features help make professional
reports, like in WAPDA for official letters or manuals.
Document Formatting:
Styles: Pre-set formats for text. Use Heading 1-9 for titles (e.g., Heading 1 for main title
– big and bold). Apply by selecting text and clicking Styles pane. Helps in quick changes
– change one style, all matching text updates.
Themes: Sets colors, fonts, and effects for the whole document. Go to Design tab >
Themes. Example: Choose "Office" theme for blue colors and Calibri font – makes
document look consistent.
Sections: Divide document into parts with different settings. Insert section breaks
(Layout tab > Breaks > Next Page). Example: First section with portrait page, second
with landscape for tables; different headers/footers per section (e.g., page numbers start
from 1 in section 2). Remember: Styles save time, themes for looks, sections for layout
control.
Collaboration:
Comments: Add notes without changing text. Right-click text > New Comment. Others
can reply – useful for team reviews.
Track Changes: Records edits. Turn on in Review tab > Track Changes. Shows
additions (underline), deletions (strikethrough). Accept/Reject changes one by one or all.
Simple Markup hides details, All Markup shows everything.
Protect Document: Limits what others can do. Review tab > Protect Document >
Restrict Editing (e.g., allow only comments, no text changes; set password). Example: In
WAPDA, share a policy document – track changes for approvals, protect to avoid
accidental edits.
Automation:
Mail Merge: Send same letter to many people with personal details. Steps: Mailings tab
> Start Mail Merge > Letters > Select Recipients (use Excel list) > Insert Merge Field
(e.g., <<Name>>) > Finish & Merge. Data source: Excel with columns like Name,
Address.
Macros: Automate repeat tasks with VBA (Visual Basic for Applications) code. Record:
Developer tab > Record Macro > do actions (e.g., format text) > Stop Recording. Run
anytime. Example: Macro to add WAPDA header to every new document. Tip: Enable
Developer tab in File > Options > Customize Ribbon.
References:
Table of Contents (TOC): Auto-list headings. References tab > Table of Contents >
Insert. Updates automatically if headings change (right-click > Update Field).
Footnotes/Endnotes: Add explanations. References tab > Insert Footnote (bottom of
page) or Endnote (end of document). Numbered automatically.
Bibliography: For citations. References tab > Insert Citation > Add New Source (book,
website). Then insert Bibliography – lists all sources in styles like APA or MLA.
Remember: These make documents look professional and easy to navigate.
Excel is for numbers, calculations, and data reports. Great for WAPDA tasks like tracking
electricity bills or usage stats.
Formulas & Functions: Formulas start with =, like =A1+B1. Functions are built-in tools.
Data Tools:
PivotTables: Summarize big data. Insert tab > PivotTable > select data > drag fields
(e.g., group by month, sum sales). Refresh to update.
Data Validation: Control input. Data tab > Data Validation > e.g., List for dropdown
(from cells), Whole Number for limits. Prevents errors.
Conditional Formatting: Color cells based on rules. Home tab > Conditional
Formatting > e.g., Color Scales (green high, red low); Data Bars (bar length by value).
Example: In WAPDA, use PivotTable to sum power usage by region.
Advanced:
Power Query: Import and clean data. Data tab > Get Data > from file/web > transform
(e.g., remove duplicates, split columns). Loads to sheet or model.
Power Pivot: For big data models. Add to Data Model > create relationships between
tables > use DAX formulas (like advanced functions). Remember: These handle large
WAPDA datasets efficiently.
Master Slides: Control overall look. View tab > Slide Master > edit placeholders (title,
footer). Changes apply to all slides – e.g., add logo everywhere.
Animations: Make objects move. Animations tab > Add Animation > Entrance (appear),
Exit (disappear), Emphasis (grow/shrink), Motion Paths (custom move). Order with
Animation Pane.
Transitions: Slide changes. Transitions tab > e.g., Fade (smooth), Morph (seamless
object move between slides). Set duration/timing. Tip: Don't overdo – keep simple for
clarity.
MS Access DBMS: Database tool for storing/querying data, like employee records in WAPDA.
Relationships: Link tables. Database Tools tab > Relationships > drag fields (e.g.,
EmployeeID in Employees to Projects). Enforce Referential Integrity: Can't delete parent
if child exists (prevents orphans). Types: One-to-One, One-to-Many, Many-to-Many.
Queries: Pull specific data. Create tab > Query Design > add tables > select fields >
criteria (e.g., Salary > 50000). Parameterized: Prompt for input (e.g., [Enter City]).
Forms: User-friendly input. Create tab > Form > Bound (linked to table, saves data);
Unbound (not linked, for custom). Add controls like buttons.
Reports: Print/view summaries. Create tab > Report > group by field (e.g., by
Department), sort (ascending/descending). Add headers/footers. Remember: Access is
relational – tables like spreadsheets, but linked.
Exam Tips
Pitfalls: Wrong function syntax (e.g., forget comma in IF); always check parentheses.
Mix VLOOKUP (vertical) with HLOOKUP (horizontal). Practice actual shortcuts like
Ctrl+Shift+: for time.
Revision: List 20 Excel functions with one example each (e.g., SUM, AVERAGE,
COUNTIF). Open MS Office and recreate scenarios: Mail Merge a letter, Pivot a sales
table. For WAPDA: Use Excel for monthly reports – formulas for totals, charts for
visuals.
Sample MCQ: Which Excel function searches vertically? (A) VLOOKUP (Correct).
Explanation: Looks in first column of range, returns value from specified column.
Another: What enforces data links in Access? (A) Referential Integrity – prevents invalid
data.
Topic 4: Computer Networking
Networking is one of the highest weightage topics (around 20%) in your BS-17 Computer
Operation exam. Questions usually come from basic concepts, devices, IP addressing (especially
subnetting), protocols, and security aspects important for operations and monitoring work in
WAPDA.
We will cover every single point in very simple language with examples and memory tricks so
you can answer almost any MCQ from this topic.
Memory trick for OSI layers (bottom to top): Physical → Data Link → Network → Transport
→ Session → Presentation → Application Please Do Not Throw Sausage Pizza Away
Important Protocols in Depth
Application Layer
o DNS (Domain Name System): Converts [Link] → [Link] (IP
address)
o DHCP (Dynamic Host Configuration Protocol): Automatically gives IP, subnet
mask, gateway, DNS to new devices
o Others: HTTP/HTTPS (web), SMTP (send email), POP3/IMAP (receive email)
Transport Layer
o TCP (Transmission Control Protocol): Reliable, connection-oriented → Does 3-
way handshake before sending data:
1. Client → Server: SYN (I want to connect)
2. Server → Client: SYN-ACK (OK, I also want to connect)
3. Client → Server: ACK (Great, let’s start)
o UDP (User Datagram Protocol): Fast, no connection, no guarantee (used in video
streaming, DNS queries)
Important Network Devices (know what each does + which OSI layer)
Bus: All devices on one cable – old, failure in cable stops everything
Star: All connected to central switch/hub – most common today
Ring: Each device connected to next – token passing (old)
Mesh: Every device connected to every other – very reliable but expensive
Hybrid: Combination of two or more (most real networks are hybrid)
Wireless (WLAN):
o Infrastructure mode: Devices connect through Access Point (most common)
o Ad-hoc mode: Devices connect directly to each other (no AP)
Subtopic 4.3: IP & Addressing
IP Addressing Basics
CIDR Subnet Mask Number of Subnets (from /24) Usable Hosts per Subnet
/24 [Link] 1 254
/25 [Link] 2 126
/26 [Link] 4 62
/27 [Link] 8 30
/28 [Link] 16 14
/29 [Link] 32 6
/30 [Link] 64 2
Example Question Type: You have [Link]/24. You need 4 subnets. Answer: Use /26 →
4 subnets, 62 hosts each First subnet: [Link] – [Link] Second: [Link] –
[Link], etc.
Routing Protocols
Static Routing: Manually entered routes – simple, no overhead, used in small networks
Dynamic Routing: Routers talk to each other and learn routes automatically
o RIP (Routing Information Protocol): Distance-vector, uses hop count (max 15
hops)
o OSPF (Open Shortest Path First): Link-state, very fast convergence, used in large
networks
Bluetooth
Most common confusion — memorize devices per layer: Physical → Hub, Repeater
Data Link → Switch, Bridge Network → Router
Subnetting — practice at least 20 questions (calculate subnets, hosts, range)
Know 3-way handshake steps exactly
Memorize private IP ranges
For WAPDA context: Think about SCADA networks, remote monitoring stations, secure
communication between grid stations
Transmission modes
OSI vs TCP/IP table
Device → Layer table
Subnetting table
Wi-Fi standards
We will cover every point from the syllabus in very simple, easy-to-remember language.
What is DBMS? Software that allows users to create, read, update, and delete data in an
organized way. Examples: Microsoft Access, MySQL, Oracle, SQL Server, PostgreSQL.
Relational model is based on E.F. Codd’s 12 Rules (you only need to remember that it is the
foundation of modern databases — rarely asked in detail).
1. Client Tier (Presentation layer) → User interface (web browser, desktop app)
2. Application Server / Middle Tier (Logic layer) → Business rules, calculations,
validation
3. Database Server (Data layer) → Actual storage of data (DBMS like SQL Server)
Normal
What it removes / ensures Key Rule / Condition
Form
No repeating groups, atomic
1NF Each cell has single value
values
2NF No partial dependency Non-key attributes depend on whole PK
Non-key attributes depend only on PK (not on
3NF No transitive dependency
other non-keys)
Every determinant is a Stronger than 3NF — no anomalies from functional
BCNF
candidate key dependencies
4NF No multi-valued dependencies Removes independent multi-valued facts
Common Constraints
NOT NULL
UNIQUE
PRIMARY KEY
FOREIGN KEY
CHECK
DEFAULT
SQL
SELECT column1, column2
FROM table_name
WHERE condition
GROUP BY column
HAVING condition_on_group
ORDER BY column ASC/DESC;
Important clauses
Example:
SQL
SELECT Dept, COUNT(*) AS TotalEmployees, AVG(Salary) AS AvgSalary
FROM Employees
GROUP BY Dept
HAVING COUNT(*) > 5
ORDER BY AvgSalary DESC;
SQL
SELECT [Link], [Link]
FROM Employees e
INNER JOIN Departments d ON [Link] = [Link];
Indexing
Log-based Recovery → Transaction log records every change → Used in redo (re-apply
committed changes) and undo (rollback uncommitted changes) after crash
Practice writing 10–15 different SQL queries every day (SELECT with joins, GROUP BY,
UPDATE with WHERE, etc.).
Use very simple language and focus on understanding + remembering key points for MCQs.
Main Languages
Paradigm Main Idea Key Features / Principles Best For
(examples)
Small to medium
Step-by-step Functions/procedures,
Procedural C, Pascal, FORTRAN programs, system
instructions sequence, selection, iteration
programming
Object- Everything is an Encapsulation, Inheritance, Java, C++, C#, Large systems, real-
Oriented object Polymorphism, Abstraction Python world modeling
(partial)
1. Encapsulation → Bundling data (variables) and methods (functions) together inside a class →
Hiding internal details (using private/protected) → Like a capsule – protects data
2. Inheritance → Child class gets properties and methods from parent class → Reusability (write
once, use many times) → Example: Animal (parent) → Dog, Cat (children)
3. Polymorphism → Same method name behaves differently in different classes → Two types:
o Compile-time (method overloading – same name, different parameters)
o Run-time (method overriding – child class redefines parent method)
4. Abstraction → Showing only necessary details, hiding complexity → Achieved by abstract
classes and interfaces
pseudocode
grade = "A"
grade = "B"
} else {
grade = "C"
switch-case → Good when checking one variable against many fixed values → Faster than many
else-if in some cases
pseudocode
switch (day) {
default: print("Invalid");
Before each
for No Known number of times (counter-based)
iteration
Loop Executes at least
When checked Best used when
Type once?
Before each
while No Condition-based, unknown count
iteration
Examples (pseudocode)
pseudocode
// for loop
print(i)
// while loop
withdraw()
// do-while
do {
} while (choice != 0)
Functions
Parameter Passing
Pass by Value → copy of value is sent (original not changed) → Used in C, Java (for primitives)
Pass by Reference → address is sent (original can be changed) → Used in C++ (&), Python
(objects/lists)
Example: Factorial
pseudocode
factorial(n):
if n == 0 or n == 1:
else:
return n * factorial(n-1)
Array Index (O(1)) Slow (O(n)) Fixed size List of meter readings
Linked
Sequential (O(n)) Fast (O(1) at head) Dynamic size Undo/redo list
List
FIFO (First In First enqueue / dequeue Waiting line, print Customer service
Queue
Out) (O(1)) queue queue
Algorithms
Sorting
Merge Sort O(n log n) Yes Large data, stable sort needed
Searching
Binary Search Must be sorted O(log n) Large sorted data (very fast)
O(n log n) Linearithmic Good for large data Merge sort, Quick sort
O(n²) Quadratic Slow for large data Bubble sort, nested loops
Paradigms + features
Control structures comparison
Data structures + operations
Big O notations with examples
We will cover every point in clear, simple language with memory-friendly tables and key
differences.
Linear / Requirements are Simple, well- No going back One phase finishes
Waterfall
Sequential very clear & fixed documented easily, late testing → next starts
4 quadrants: Plan
Risk-driven, High-risk, large, Early risk Complex, needs risk
Spiral → Risk analysis →
iterative expensive projects identification expert
Build → Evaluate
1. Requirements
o Gathering needs from users/stakeholders
o Elicitation techniques: interviews, surveys, workshops
o Output: SRS (Software Requirements Specification) document
2. Design
oHigh-level (architecture) & low-level (detailed)
oUML Diagrams (frequently asked):
Use Case Diagram → shows actors & functionalities
Class Diagram → shows classes, attributes, relationships
Sequence Diagram → shows interaction over time
3. Implementation (Coding)
o Writing actual code using chosen language/tools
4. Testing
o Finding defects before release
o Alpha testing → inside company
o Beta testing → selected real users
5. Deployment
o Putting software into live environment
o Can be big bang, phased, parallel
6. Maintenance
o Fixing bugs, adding features, performance improvement
o Often takes 60–80% of total cost
Integration
Interaction between modules Developer / Tester Interface issues
Testing
Independent test
System Testing Complete integrated system End-to-end functionality
team
Knowledge of
Technique Based on Examples / Goal
code
Knowledge of
Technique Based on Examples / Goal
code
Requirements /
Black Box No Equivalence partitioning, Boundary value
specifications
Memory tip: Black Box = outside view (no code knowledge) White Box = inside view (code
knowledge)
User Management
o Create/delete/disable accounts
o Active Directory (Windows) – central user & permission control in domain
o Password policy, group policy
Patch Management
o Regularly apply security updates & bug fixes
o Windows Update, WSUS (Windows Server Update Services), third-party tools
Performance Monitoring
o Watch CPU usage, RAM usage, Disk I/O, Network traffic
o Tools: Task Manager, Resource Monitor, Performance Monitor (Windows), top/htop
(Linux)
Control
Model Full Name What you manage Example Services
Level
SaaS Software as a Service Only data Office 365, Gmail, Salesforce Low
Virtualization
RTO – Recovery Time Objective → Maximum acceptable time to restore system after disaster →
Example: 4 hours
RPO – Recovery Point Objective → Maximum acceptable data loss (time between last backup &
disaster) → Example: 15 minutes
3 copies of data
2 different types of media
1 copy off-site / in cloud
Type What it does How it spreads / works Real example / impact Memory tip
Attaches to
Usually via infected Corrupts files, slows Needs a “host”
Virus files/programs, self-
files, email attachments system file
replicates
Self-replicates &
Exploits network WannaCry (2017) Like a worm
Worm spreads without human
vulnerabilities spread very fast crawling alone
action
Looks innocent
Disguises as useful User downloads and Fake antivirus that
Trojan (Trojan Horse
software runs it steals data
story)
Encrypts files, demands Phishing emails, Locks hospital/pipeline Holds your data
Ransomware
payment to decrypt malicious downloads systems for ransom
Fake emails/websites
Tricks user into giving Fishing for your
Phishing pretending to be Fake bank login page
sensitive info credentials
trusted
Quick memory list of top 5 attacks for MCQs Virus – Worm – Trojan – Ransomware –
Phishing – DDoS
Key Exchange
Type Key usage Main Algorithms Best used for
Problem?
SHA-256, SHA-3
One-way function Password storage, file
Hashing (modern), MD5 (old & —
(cannot reverse) integrity check
broken)
Endpoint Signature-based +
Antivirus Detects & removes malware
(PC/server) heuristic/behavior
Password Policy
o Minimum 12 characters
o Mix of uppercase, lowercase, numbers, symbols
o No reuse of old passwords
o Change every 90 days (or use password manager + long passphrases)
Two-Factor Authentication (2FA / MFA)
o Something you know (password) + something you have (phone/app/token)
o Greatly reduces risk even if password is stolen
Access Control – RBAC (Role-Based Access Control)
o Give permissions based on job role, not individual
o Example: “Meter Reader” role can only view data, “Admin” can change settings
Labeled data (input + Predict house price, classify Linear Regression, Decision Tree,
Supervised
correct output) spam email SVM, Neural Networks
Customer segmentation,
Unsupervised No labels K-Means Clustering, PCA
anomaly detection
Big Data
Tools
Top 6 attacks: Virus, Worm, Trojan, Ransomware, Phishing, DDoS Top 3 vulnerabilities:
Buffer Overflow, SQL Injection, XSS 3 types of cryptography: Symmetric, Asymmetric,
Hashing 3Vs of Big Data: Volume, Velocity, Variety 2 main ML types: Supervised,
Unsupervised
Power grid (SCADA) is critical infrastructure → high risk of ransomware & DDoS
Smart meters = IoT → need strong device authentication
Predictive maintenance using ML → reduce downtime
Strong access control & 2FA for control room systems
1. Which encryption uses the same key for encryption & decryption? → Symmetric
2. Which attack encrypts files and asks for money? → Ransomware
3. Which vulnerability uses ' OR 1=1 in login field? → SQL Injection
4. Which system actively blocks attacks? → IPS
5. Which uses public & private keys? → Asymmetric encryption
6. Which Big Data characteristic refers to speed of data generation? → Velocity
You have now covered all major computer topics (≈90% of the computer portion) in depth.
1. Quick revision of all 8 topics — read the notes once more in 2–3 days
2. Make short flashcards (threats & countermeasures, SDLC models, SQL commands, etc.)
3. Practice 50–100 MCQs from past papers / similar CTS-style tests
4. Focus on weak areas (subnetting, SQL joins, page replacement, normal forms, cryptography
types)
5. Want me to create a mixed 50-question MCQ set covering all 8 topics?
6. Want focused drill sets for any specific sub-topic (e.g. 20 subnetting questions, 20 SQL
questions)?
7. Need help with non-computer parts (English, GK, Current Affairs, Pak Studies, Islamiat)?
Just tell me what you want next — I’m here to help you reach that 90%+ score.
Topic 1: Introduction to Computers
Subtopic 1.1: Introduction to Computers
Cor
# Question A B C D Explanation
rect
Mechani Programmable Programmable
Basic definition of a Tool only for Storage
1 cal machine that B machine for data
computer? entertainment device
device processes data processing
Analytic
Earliest mechanical Abacus – ancient
2 al Abacus Turing Machine ENIAC B
computer aid? counting tool
Engine
Who designed the
Alan John von Ada
3 Analytical Engine Charles Babbage B Charles Babbage
Turing Neumann Lovelace
(1837)?
1936 –
Turing Machine concept
4 1837 1936 1940 1950 B foundational
introduced in?
model
Generation that used 1st Generation
5 First Second Third Fourth A
vacuum tubes? (1940s–1950s)
Second generation Transistors –
6 replaced vacuum tubes ICs Transistors Microprocessors AI chips B smaller & more
with? reliable
Generation that 3rd Generation –
7 introduced Integrated First Second Third Fourth C enabled
Circuits (ICs)? minicomputers
Main feature of fourth Vacuum AI Single-chip
8 Transistors Microprocessors C
generation? tubes integration microprocessor
Generation focused on
5th Generation –
9 AI and natural Third Fourth Fifth Second C
current/future
language?
Millions
of
Mean Instructions Memory Input Machine Speed
10 MIPS stands for? Instructi A
Per System Per Second Instructions measurement unit
ons Per
Second
Characteristic: performs Consistent
11 Speed Accuracy Diligence Versatility C
without getting tired? performance
Processor clock
12 GHz measures? Storage Clock speed Accuracy Power B
frequency
Allows computers to Reliabili Multi-tasking
13 Versatility Automation Accuracy B
handle multiple tasks? ty capability
Mean
Memory Time
Time Maximum Time Mean Time Hardware
14 MTBF stands for? Between A
Between Before Failure Before Fix reliability metric
Functions
Failures
Manual
Automation in Scripting & batch Power Running tasks
15 operatio Intelligence B
computers refers to? processing dependency automatically
n
Cor
# Question A B C D Explanation
rect
Key limitation of High No intelligence Garbage In →
16 Versatility Reliability B
computers? speed (GIGO) Garbage Out
Good
Input Garbage In General Input Great Input Bad input → bad
17 GIGO stands for? B
Good Garbage Out General Output Great Output output
Output
No
Limitation involving Dependency on Stops without
18 intellige Low cost Speed B
need for electricity? power power
nce
Common security High Vulnerabilities to Hacking &
19 Diligence Automation B
limitation? accuracy hacks viruses
Data is Data is raw;
Difference between data Information Raw facts vs
20 processe information is Both same B
and information? is hardware meaningful result
d processed
Hardwar
Hardware & Only
Hardware-software e works Software runs
21 software need hardware B Interdependence
relationship? without without hardware
each other matters
software
Minicomputers enabled
22 First Second Third Fourth C Due to ICs
in which generation?
ENIAC is example of Vacuum tube
23 1st 2nd 3rd 4th A
which generation? computer
Stored program concept Von Neumann
24 Abacus Von Neumann Babbage Turing B
introduced by? architecture
Manual Power Repeat task
25 Scripting is part of? Automation Hardware repair B
typing supply automation
Characteristic: error-free Correct
26 if programmed Speed Accuracy Diligence Versatility B programming →
correctly? correct output
Running jobs Grouped
Batch processing Real- Power
27 automatically in Manual execution B automatic
means? time management
groups execution
Characte
28 High initial cost is a? Limitation Milestone Key concept B Setup cost
ristic
Transist AI & super Artificial
29 5th generation focus? Vacuum tubes ICs B
ors systems intelligence
Which is NOT a Computers lack
30 Speed Intelligence Reliability Automation B
computer characteristic? true intelligence
Speed, Accuracy,
SAD-VRA mnemonic Generati
31 Characteristics Limitations Hardware B Diligence,
helps remember? ons
Versatility, etc.
In WAPDA operations, Reliability for Ignore System uptime in
32 No link Only speed B
important characteristic? uptime limitations power grids
Mechanical era Early counting
33 ENIAC Abacus IBM PC AI assistants B
milestone? device
Electronic era began 1940s – vacuum
34 Abacus Vacuum tubes Punch cards AI B
with? tubes
Cor
# Question A B C D Explanation
rect
Meaningful
35 Processed data is called? Data Information Hardware Software B
output
Cor
# Question A B C D Explanation
rect
Input device with QWERTY Standard typing
36 Monitor Keyboard Printer Speaker B
layout? layout
Mouse type that uses light Modern mouse
37 Mechanical Optical Joystick Scanner B
sensor? type
Optical Output Optical Output Text
38 OCR in scanners stands for? Character Character Code Control A recognition
Recognition Reading Reader Recognition from images
Precise
Input device used for CAD
39 Keyboard Mouse Joystick Microphone C directional
operations?
control
40 Voice input device? Scanner Microphone Plotter Printer B Speech-to-text
Screen
Output device that uses pixels
41 Printer Monitor Speaker Joystick B resolution (e.g.
for resolution?
1920×1080)
42 Example of impact printer? Laser Inkjet Dot Matrix Plotter C Pins hit ribbon
Output device for audio
43 Monitor Printer Speakers Scanner C Sound output
feedback?
Vector
Text Engineering
44 Plotter is used to produce? graphics / Audio Scans B
documents drawings
drawings
Stored program
45 CPU architecture is based on? Turing Von Neumann Babbage Lovelace B
concept
CPU part that performs Arithmetic
46 CU ALU Registers Bus B
arithmetic & logic? Logic Unit
Fetch/decode/
Instruction
47 CU (Control Unit) does? Calculations execute Store data Output B
control
instructions
Hz (clock Clock
48 CPU speed is measured in? Bytes Pixels Sectors B
speed) frequency
Bus that carries memory Control Location
49 Data Bus Address Bus Power Bus B
addresses? Bus addressing
Loses data
50 Volatile primary memory? ROM RAM HDD SSD B
without power
Static RAM –
51 Fast RAM used for cache? DRAM SRAM PROM EEPROM B no refresh
needed
Erasable
52 ROM erased with UV light? PROM EPROM EEPROM DRAM B Programmable
ROM
Cor
# Question A B C D Explanation
rect
Magnetic hard
53 Storage with tracks and sectors? RAM HDD SSD ROM B
disk structure
Solid-state, no
54 Storage that uses NAND flash? HDD CD SSD Tape C
moving parts
Tracks/sector Optical – laser
55 CDs use what for data storage? Pits and lands NAND Vacuum B
s reads pits
Digital ↔
Power Modulation/de
56 Modem performs? Printing Scanning B analog
backup modulation
conversion
Uninterruptibl
Output Power backup
57 UPS stands for? Input device e Power Storage B
device during outages
Supply
Keeps data
58 Non-volatile primary memory? RAM ROM Cache Registers B
without power
Top of storage hierarchy Primary Registers →
59 Secondary Tertiary Offline B
pyramid? (fast/small) Cache → RAM
Toner-based,
Daisy
60 Non-impact printer example? Dot Matrix Laser Chain B no physical
Wheel
impact
Cathode Ray
Old tube
61 CRT in monitors means? Flat panel Tube (old LED Plasma B
technology
bulky type)
Prevents data
Critical peripheral for WAPDA
62 Joystick UPS Plotter Microphone B loss during
operations?
power cuts
F1–F12 for Arrow Alphabet Special
63 Function keys on keyboard are? Number keys A
shortcuts keys keys command keys
Output device for large Vector-based
64 Monitor Printer Plotter Speaker C
engineering drawings? large format
Fetch-
Decode- Store- Power-On- Instruction
65 Basic CPU cycle? Input-Output A
Execute- Retrieve Off execution loop
Store
Correc
# Question A B C D Explanation
t
Single-
Multiple users
3 Multi-user OS example? DOS Unix Windows 10 tasking B
simultaneously
OS
Virtual
5 Multiprocessing uses? One CPU Multiple CPUs No CPUs B Parallel processing
CPUs
Power-
Power-On Pre-Operating Hardware check on
12 POST stands for? Post-OS Test Off Self- A
Self-Test System Test startup
Test
Single
20 Multi-user OS supports? One login Many logins No networking B Shared resources
task
UEFI is modern
22 GRUB BIOS POST Kernel B Faster boot firmware
replacement for?
Speed & No
24 Hybrid kernel balances? Only speed Only stability A Combines benefits
stability balance
No
25 Boot ends with? Power on User login screen Hardware failure initializati B OS ready for use
on
Program in
26 Process is? Static program Thread Memory block B Running instance
execution
Process state:
27 Ready New Running Blocked B New state
Just created?
Process state:
28 New Ready Blocked Terminated B Ready queue
Waiting for CPU?
Process state:
30 Running Blocked Ready Terminated B I/O wait
Waiting for I/O?
# Question A B C D Correct Explanation
Process state:
31 Blocked Terminated Ready New B Exit state
Finished?
Context
Saving/restoring Creating Memory
32 switching Deleting process B PCB save/load
process state thread allocation
involves?
Personal
Program Counter Process Stores PID,
33 PCB stands for? Process Control Block Computer A
Block Creation Block registers, etc.
Block
Threads share
Separate
35 what in same Nothing Code, data, files Only registers B Shared resources
memory
process?
Multiple threads
Race condition Synchronization Leads to wrong
39 change shared Single thread No issue B
is? success results
data
Where shared
Critical section Shared code access
40 Non-shared area Full program OS kernel A resources are
is? area
accessed
Binary
42 semaphore is Counting semaphore Mutex No limit Thread B 0 or 1 value
like?
# Question A B C D Correct Explanation
Counting
Multiple (up to
43 semaphore One only Unlimited No access B Limited resources
count)
allows?
Private per-thread
45 Thread has own? Full memory Stack, registers, PC Shared stack No resources B
items
Fixed
External Internal No Wasted space
46 partitioning Thrashing B
fragmentation fragmentation fragmentation inside partitions
causes?
Variable
Internal External Holes between
47 partitioning No holes Paging B
fragmentation fragmentation partitions
causes?
More than
Virtual memory Less than Uses disk as
51 physical RAM No swapping Only RAM B
allows? physical RAM extension
usage
Replaces not
Optimal Replaces least
56 used longest in FIFO LRU B Ideal, not practical
replacement? used
future
More frames →
Belady’s
57 LRU FIFO Optimal All B more faults
anomaly in?
sometimes
Excessive
Thrashing Too many page
58 High memory paging/low No paging Swapping B
caused by? faults
memory
Working set
Keeps recently
59 model Thrashing Paging Swapping Fragmentation A
used pages
prevents?
Virtual memory
Slower than
62 technique: Demand paging Swapping Paging Segmentation B
paging
entire process?
set
Wait, this is
DBMS;
skip/adjust:
Wait, wrong
BCNF in Question for
65 Not relevant topic; but for
normalization? memory:
memory, no
Frame in
paging?
Fixed size
File attribute:
67 Name Type Location Protection B File type
exe/text?
directory?
69 Tree directory is? Flat Hierarchical Single-level Acyclic B Folders inside folders
Acyclic Graph
70 No sharing Shared folders/links Cycles Flat only B Links without cycles
directory allows?
SSTF disk Shortest Seek Time Scans one Circular Lowest seek but
72 First come B
scheduling? First way scan starvation
Character device
76 HDD Keyboard SSD USB B Stream of chars
example?
Two-level
78 Flat User directories Tree Graph B Basic hierarchy
directory?
Disk scheduling
79 SSTF FCFS SCAN C-SCAN B Long waits
with convoy effect?
Block device
83 Keyboard HDD Mouse Printer B Fixed blocks
example?
Correc
# Question A B C D Explanation
t
User
ACL stands Access Control Authentication Authorization Access Code
88 A permissions per
for? List Control List List List
file
Utility to
Disk CPU/memory
89 monitor Task Manager Backup tool Event Viewer B
Defragmenter usage
processes?
Disk
Organizes scattered Improves
90 Defragmenter Removes files Backs up Cleans temp B
files access speed
does?
Backup tool
91 Task Manager System Restore Defragmenter Firewall B Data recovery
example?
Biometrics Fingerprint/fac
94 Authorization Authentication Access control Backup B
for? e
Role-Based Permissions by
95 RBAC is? Rule-Based Random No control A
Access Control role
Utility for
96 temporary file Disk Cleanup Task Manager Defragmenter Backup A Frees space
removal?
System
Performance
97 Monitor Logs CPU/RAM usage Backups Defrag B
metrics
shows?
Two-Factor
2FA stands Password +
98 Authenticatio Two-File Access Two-Folder Two-Firewall A
for? device
n
Utility for
10 Defragmente
process Event Viewer Task Manager Disk Cleanup B End tasks
0 r
killing?
Topic 3: MS Office
Subtopic 3.1: MS Word Advanced (MCQs 1-35)
90 Query in Access? Store data Pull specific data Forms Reports B SELECT-like
93 Unbound form? Linked to table Not linked (custom) Saves data No controls B For special use
Reports in Summaries/prints
94 Data entry Queries Relationships B Output views
Access? (grouped/sorted)
One-to-Many One record Many to Common e.g., Dept-
95 Many to one only One to one A
relationship? links many many Employees
Many-to-Many
96 Direct link Junction table No link One table B Intermediate table
needs?
Query Design Add
97 Create Forms Reports B Build queries
tab? tables/fields/criteria
Animation Pane Order
98 Yes Transitions Master A Timing/sequence
for? animations
In WAPDA, Employee/billing
99 Spreadsheets Slides Letters B Data management
Access for? databases
Slide Master
100 One slide All slides No apply Only text B Global consistency
edits apply to?