Computer Science

Mastering Computer Science is no longer an elective pursuit for aspirants targeting high-stakes competitive examinations in Pakistan; it has become the decisive differentiator. Whether you are appearing for the Sindh Public Service Commission (SPSC) exams, or preparing for the rigorous technical sections of MDCAT, ECAT, or HEC-affiliated assessments, a robust grasp of computational logic, architecture, and data structures is mandatory. In an era of digital governance and rapid technological integration, examiners are increasingly shifting focus from rote memorization to conceptual application, testing your ability to bridge theoretical knowledge with real-world problem-solving. This curated Computer Science quiz is engineered to mirror the complexity of current competitive standards. Rather than presenting isolated facts, we have structured these questions to challenge your understanding of core paradigms—ranging from networking protocols and database management systems to software engineering lifecycles and algorithmic efficiency. To excel, do not merely aim for the correct option; analyze the logic behind the distractors. A successful strategy requires you to categorize your errors: distinguish between conceptual gaps in logic and simple lapses in terminology. By engaging with these high-level queries, you are not just practicing for an exam; you are sharpening the analytical mindset required for professional success in the civil services and technical sectors. Approach this assessment with the precision of a software architect, and use the results to refine your roadmap for the upcoming SPSC-level challenges.

Practice questions

  1. In
    • binary search tree, the in-order traversal produces:
    • Descending sorted sequence
    • Ascending sorted sequence
    • Random sequence
  2. AVL tree maintains:
    • Every node balanced in height
    • Total nodes equal
    • All leaves at same depth
    • Random order
  3. In dynamic programming, overlapping subproblems mean:
    • Subproblems are independent
    • Subproblems repeat
    • Subproblems cannot be solved
    • Subproblems are optional
  4. Memoization is used to:
    • Store computed results for reuse
    • Encrypt data
    • Sort arrays
    • Allocate memory
  5. In
    • heap, the deletion of root element requires:
    • Rebuilding the heap
    • No change
    • Sorting array
  6. Semaphore can be:
    • Binary or counting
    • Integer only
    • Boolean only
    • String type
  7. First Fit and Best Fit algorithms are used in:
    • Process scheduling
    • Memory allocation
    • Disk management
    • I/O handling
  8. ACID property ‘Durability’ ensures:
    • Database remains consistent after crash
    • Transactions are isolated
    • Data is encrypted
    • Transaction speed
  9. In TCP/IP, ICMP is used for:
    • Reliable data transfer
    • Error reporting and diagnostics
    • Routing only
    • Connection-oriented communication
  10. OSI model layer responsible for routing is:
    • Network layer
    • Transport layer
    • Application layer
    • Data link layer
  11. In Python, list comprehension is used to:
    • Create lists efficiently
    • Encrypt data
    • Store files
    • Manage memory
  12. In AI, A* algorithm uses:
    • Only BFS
    • Only DFS
    • Heuristic + cost
    • Random search
  13. In supervised ML, accuracy is measured on:
    • Training data
    • Test data
    • Unlabeled data
    • Random data
  14. In NoSQL databases, documents are stored in:
    • Tables
    • Collections
    • Rows
    • Columns
  15. Cloud computing service IaaS provides:
    • Virtual machines and storage
    • Applications
    • Platform
    • Database only
  16. In cybersecurity, phishing attack targets:
    • System files
    • Sensitive user data
    • CPU only
    • Disk
  17. Deadlock occurs when:
    • Processes wait indefinitely for resources
    • CPU is idle
    • Disk is full
    • Memory is free
  18. TCP uses:
    • Connectionless service
    • Connection-oriented service
    • No transport
    • Random delivery
  19. UDP is suitable for:
    • File transfer
    • Streaming video/audio
    • Database transactions
    • Secure connections
  20. In software engineering, prototype model focuses on:
    • Early demonstration of system functionality
    • Linear sequential steps
    • Waterfall documentation
    • Pure testing only
MM Academy Preparing your learning space…