Join WhatsApp ChannelDaily MCQs & Exam Updates

FPSC MCQs

Federal Public Service Commission — Complete MCQ Bank

1,626 Questions
Exam Preparation Guide

How to prepare for FPSC

FPSC recruitment tests assess subject knowledge, general ability and job-related competence for federal government positions across Pakistan.

General KnowledgeCurrent AffairsEnglishJob-related Subjects
Read the official syllabus first, then combine subject-specific revision with timed mixed-question practice.
FPSC preparation illustration
1531

What is a deadlock in an operating system?

  • AA memory leak
  • BA security attack
  • CA situation where processes wait indefinitely for resources
  • DA file corruption error
Permalink
Correct Answer: Option C — A situation where processes wait indefinitely for resources
Explanation: Deadlock occurs when processes are permanently blocked waiting for resources held by one another.
Submitted by: PaperMCQs
1532

What is the purpose of an index in a database?

  • AReduce security
  • BImprove query performance
  • CStore backups
  • DEncrypt records
Permalink
Correct Answer: Option B — Improve query performance
Explanation: Indexes improve retrieval speed by allowing databases to locate records efficiently.
Submitted by: PaperMCQs
1533

Which memory is fastest among the following?

  • AHard Disk
  • BRAM
  • CCache Memory
  • DROM
Permalink
Correct Answer: Option C — Cache Memory
Explanation: Cache memory stores frequently used data close to the CPU and is significantly faster than RAM.
Submitted by: PaperMCQs
1534

Which SQL clause is used to filter rows before grouping?

  • AHAVING
  • BGROUP BY
  • CWHERE
  • DORDER BY
Permalink
Correct Answer: Option C — WHERE
Explanation: The WHERE clause filters rows before grouping and aggregation are applied.
Submitted by: PaperMCQs
1535

Which algorithm is commonly used to find the shortest path in a weighted graph?

  • ABubble Sort
  • BDijkstra's Algorithm
  • CBinary Search
  • DDepth First Search
Permalink
Correct Answer: Option B — Dijkstra's Algorithm
Explanation: Dijkstra's Algorithm finds shortest paths in weighted graphs with non-negative edge weights and is widely used in navigation systems.
Submitted by: PaperMCQs
1536

Which OSI layer is responsible for end-to-end communication?

  • ANetwork Layer
  • BData Link Layer
  • CTransport Layer
  • DSession Layer
Permalink
Correct Answer: Option C — Transport Layer
Explanation: The Transport Layer provides end-to-end communication, reliability, flow control, and error handling using protocols such as TCP and UDP.
Submitted by: PaperMCQs
1537

Which sorting algorithm repeatedly selects the smallest element and places it in the correct position?

  • AMerge Sort
  • BQuick Sort
  • CSelection Sort
  • DHeap Sort
Permalink
Correct Answer: Option C — Selection Sort
Explanation: Selection Sort repeatedly finds the minimum element from the unsorted portion and places it at the beginning. It is simple but inefficient for large datasets.
Submitted by: PaperMCQs
1538

What is the primary purpose of normalization in relational databases?

  • AIncrease redundancy
  • BReduce redundancy
  • CIncrease storage space
  • DImprove graphics rendering
Permalink
Correct Answer: Option B — Reduce redundancy
Explanation: Normalization organizes data into structured tables to minimize redundancy and dependency issues. It improves data integrity, reduces update anomalies, and makes databases easier to maintain and scale in real-world applications.
Submitted by: PaperMCQs
1539

Which scheduling algorithm gives each process a fixed time slice?

  • AFCFS
  • BRound Robin
  • CShortest Job First
  • DPriority Scheduling
Permalink
Correct Answer: Option B — Round Robin
Explanation: Round Robin scheduling assigns a fixed time quantum to each process. If a process does not complete within its allotted time, it is moved to the end of the queue. This approach improves fairness and responsiveness in time-sharing systems.
Submitted by: PaperMCQs
1540

What is the purpose of a firewall?

  • AIncrease processor speed
  • BProtect networks from unauthorized access
  • CStore files permanently
  • DCompress data
Permalink
Correct Answer: Option B — Protect networks from unauthorized access
Explanation: A firewall monitors and filters network traffic according to predefined security rules. It acts as a barrier between trusted and untrusted networks, helping prevent unauthorized access and cyberattacks.
Submitted by: PaperMCQs