Join WhatsApp ChannelDaily MCQs & Exam Updates

FPSC MCQs

Federal Public Service Commission — Complete MCQ Bank

1,753 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
1661

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
1662

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
1663

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
1664

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
1665

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
1666

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
1667

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
1668

Which protocol translates domain names into IP addresses?

  • AHTTP
  • BFTP
  • CDNS
  • DSSH
Permalink
Correct Answer: Option C — DNS
Explanation: The Domain Name System (DNS) converts human-readable domain names into numerical IP addresses. This translation allows users to access websites using easy-to-remember names instead of complex numeric addresses.
Submitted by: PaperMCQs
1669

What is the time complexity of Binary Search in the worst case?

  • AO(n)
  • BO(log n)
  • CO(n²)
  • DO(1)
Permalink
Correct Answer: Option B — O(log n)
Explanation: Binary Search repeatedly divides a sorted dataset into halves until the target value is found or determined absent. Because the search space is halved each step, the worst-case time complexity is logarithmic, O(log n).
Submitted by: PaperMCQs
1670

Which layer of the OSI model is responsible for routing packets?

  • ATransport Layer
  • BNetwork Layer
  • CSession Layer
  • DPresentation Layer
Permalink
Correct Answer: Option B — Network Layer
Explanation: The Network Layer is responsible for logical addressing and routing of packets between networks. Protocols such as IP operate at this layer, enabling data to travel across interconnected networks efficiently.
Submitted by: PaperMCQs