Join WhatsApp ChannelDaily MCQs & Exam Updates

CSS MCQs

Civil Superior Services β€” Complete MCQ Bank

899 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
841

Which programming paradigm focuses on functions and immutability?

  • AProcedural Programming
  • BObject-Oriented Programming
  • CFunctional Programming
  • DAssembly Programming
Permalink
Correct Answer: Option C β€” Functional Programming
Explanation: Functional programming emphasizes pure functions, immutability, and declarative problem solving.
Submitted by: PaperMCQs
842

What is the purpose of a foreign key?

  • AStore passwords
  • BIdentify duplicate records
  • CCreate relationships between tables
  • DEncrypt database contents
Permalink
Correct Answer: Option C β€” Create relationships between tables
Explanation: Foreign keys enforce relationships between tables and maintain referential integrity.
Submitted by: PaperMCQs
843

Which of the following is a NoSQL database?

  • AOracle
  • BMySQL
  • CMongoDB
  • DPostgreSQL
Permalink
Correct Answer: Option C β€” MongoDB
Explanation: MongoDB is a document-oriented NoSQL database designed for flexible and scalable data storage.
Submitted by: PaperMCQs
844

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
845

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
846

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
847

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
848

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
849

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
850

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