Join WhatsApp ChannelDaily MCQs & Exam Updates

Computer Science MCQs

MCQs on Programming, Networking, Database and OS

129 Questions Subject Test
Subject Preparation Guide

Prepare Computer Science with confidence

Strengthen your knowledge of computer fundamentals, hardware, software, programming, networks, databases and information technology.

Computer BasicsProgrammingNetworksDatabases
Recommended for academic classes, IT tests and computer portions of competitive examinations.
Computer Science preparation illustration
Subject Test

Test your Computer Science preparation

Questions are tracked as practiced when you open Show Answer & Explanation. Tracking stays only in this browser tab and no subject-test result is saved.

Practiced MCQs
0 / 129
Use the MCQs you already prepared, or launch a random test from the full subject bank.
No login required Result is not saved Choose your own MCQ count & timer
Choose your test mode
Choose any number up to 129 available MCQs.
Enter 0 for no timer, or choose 1–300 minutes.
Tip: prepare some MCQs first, then start a quick self-check from My Practiced MCQs to test exactly what you studied.
21
Medium css pms fpsc ppsc nts Uploaded: 01 Jul 2026

Which search algorithm explores all nodes one level at a time before moving to the next level?

  • A A* Search
  • B Depth-First Search (DFS)
  • C Breadth-First Search (BFS)
  • D Greedy Search
22
Medium pms Uploaded: 23 Aug 2026

What is the function of the CPU's ALU?

  • A To manage memory addresses
  • B To connect peripherals
  • C To perform arithmetic and logical operations
  • D To store instructions
23
Easy pms Uploaded: 13 Aug 2026

Which device amplifies and regenerates signals over long distances?

  • A Switch
  • B Repeater
  • C Bridge
  • D Router
24
Easy pms Uploaded: 13 Aug 2026

Which device connects multiple networks together?

  • A Repeater
  • B Hub
  • C Router
  • D Switch
25
Medium pms Uploaded: 23 Aug 2026

Which of the following best describes an e-commerce website?

  • A A search engine
  • B A platform for buying and selling goods online
  • C An operating system
  • D A social networking site
26
Medium css pms fpsc ppsc nts Uploaded: 25 Jun 2026

Why are Headers and Footers added to a document in MS Word?

  • A To mark the beginning of a page
  • B To improve the document's appearance
  • C To display repeating information such as page numbers, dates, and titles on printed pages
  • D To make a document easier to read
27
Medium css pms Uploaded: 20 Jun 2026

What is the purpose of a foreign key?

  • A Store passwords
  • B Identify duplicate records
  • C Create relationships between tables
  • D Encrypt database contents
28
Medium pms Uploaded: 13 Aug 2026

What is the worst-case time complexity of bubble sort?

  • A O(n)
  • B O(n log n)
  • C O(n^2)
  • D O(log n)
29
Easy pms Uploaded: 13 Aug 2026

What is the purpose of an operating system's file manager?

  • A Manage CPU scheduling only
  • B Compile programs
  • C Manage network traffic
  • D Organize and manage files and folders
30
Hard pms Uploaded: 23 Aug 2026

What is the function of a kernel in an operating system?

  • A A database index
  • B A type of malware
  • C Core part that manages system resources
  • D A programming language
31
Medium pms Uploaded: 13 Aug 2026

What is the default port number for HTTP?

  • A 443
  • B 21
  • C 80
  • D 25
32
Medium pms Uploaded: 07 Aug 2026

What is the main function of a compiler?

  • A Display graphics
  • B Manage network connections
  • C Convert source code into machine code
  • D Store data permanently
33
Easy pms ppsc Uploaded: 09 Aug 2026

What does 'CSS' stand for in web development?

  • A Cascading Style Sheets
  • B Creative Style Sheets
  • C Computer Style Sheets
  • D Cascading Structure Sheets
34
Easy pms Uploaded: 07 Aug 2026

What is the purpose of the 'GROUP BY' clause in SQL?

  • A Create a new table
  • B Sort data alphabetically
  • C Delete duplicate rows
  • D Group rows sharing a property for aggregate functions
35
Medium css pms fpsc ppsc nts Uploaded: 25 Jun 2026

Which memory type is most commonly used to store firmware in embedded systems?

  • A RAM
  • B Virtual Memory
  • C Cache Memory
  • D ROM
36
Easy pms Uploaded: 09 Aug 2026

Which of the following is a high-level programming language?

  • A Assembly
  • B Python
  • C Machine Code
  • D Binary
37
Easy pms Uploaded: 23 Aug 2026

What is the function of an assembler?

  • A To interpret scripts
  • B To convert assembly language into machine code
  • C To compile high-level code
  • D To manage databases
38
Easy pms Uploaded: 09 Aug 2026

Which of the following is an example of an open-source operating system?

  • A macOS
  • B iOS
  • C Linux
  • D Windows
39
Hard css pms Uploaded: 20 Jun 2026

Which normal form eliminates transitive dependencies?

  • A First Normal Form
  • B Second Normal Form
  • C Third Normal Form
  • D Boyce-Codd Normal Form
40
Medium pms Uploaded: 07 Aug 2026

Which data structure uses FIFO order?

  • A Tree
  • B Graph
  • C Stack
  • D Queue
Practiced MCQs0 / 129