Join WhatsApp ChannelDaily MCQs & Exam Updates

CSS MCQs

Civil Superior Services β€” Complete MCQ Bank

53 Questions
Exam Preparation Guide

How to prepare for CSS

CSS is Pakistan’s premier federal competitive examination. Strong preparation requires conceptual clarity, broad general knowledge and consistent practice across compulsory and optional areas.

Pakistan AffairsCurrent AffairsEnglishEveryday Science
Combine daily MCQ practice with analytical reading, vocabulary building and regular revision of national and international affairs.
CSS preparation illustration
41

Which topology provides the highest fault tolerance?

  • ABus
  • BStar
  • CRing
  • DMesh
Permalink
Correct Answer: Option D β€” Mesh
Explanation: Mesh topology offers multiple communication paths between nodes, providing excellent redundancy and fault tolerance.
Submitted by: PaperMCQs
42

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
43

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
44

What is polymorphism in object-oriented programming?

  • AData hiding
  • BAbility of an object to take multiple forms
  • CMemory allocation
  • DDatabase indexing
Permalink
Correct Answer: Option B β€” Ability of an object to take multiple forms
Explanation: Polymorphism allows objects to be treated through a common interface while exhibiting different behaviors depending on their actual type.
Submitted by: PaperMCQs
45

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
46

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
47

Which data structure is most suitable for implementing recursion?

  • AQueue
  • BArray
  • CStack
  • DHeap
Permalink
Correct Answer: Option C β€” Stack
Explanation: Recursion relies on the call stack to store function calls, local variables, and return addresses. Every recursive call creates a new stack frame, which is removed when the function returns. This makes the stack the fundamental data structure behind recursion.
Submitted by: PaperMCQs
48

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
49

What is encapsulation in object-oriented programming?

  • ACombining data and methods into a single unit
  • BCreating multiple classes
  • CExecuting parallel processes
  • DAllocating memory dynamically
Permalink
Correct Answer: Option A β€” Combining data and methods into a single unit
Explanation: Encapsulation is the process of bundling data and methods within a class while restricting direct access to internal details. It improves modularity, maintainability, and security by controlling how data is accessed and modified.
Submitted by: PaperMCQs
50

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