Join WhatsApp ChannelDaily MCQs & Exam Updates

Computer Science MCQs

MCQs on Programming, Networking, Database and OS

601 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 / 601
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 601 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.
241
Medium css Uploaded: 13 Aug 2026

What is the primary function of a firewall?

  • A Compress files
  • B Speed up internet
  • C Store data
  • D Block unauthorized access
242
Easy fpsc Uploaded: 07 Aug 2026

What is the purpose of an API?

  • A Allow different software applications to communicate
  • B Design graphical interfaces
  • C Store large amounts of data
  • D Increase processor speed
243
Easy ppsc Uploaded: 23 Aug 2026

What is the main advantage of SSD over HDD?

  • A Lower cost per gigabyte
  • B Larger storage capacity
  • C Faster data access speed
  • D Uses magnetic disks
244
Easy nts Uploaded: 20 Jun 2026

Which shortcut key saves the current document in MS Word?

  • A Ctrl + P
  • B Ctrl + C
  • C Ctrl + S
  • D Ctrl + D
245
Hard css Uploaded: 23 Aug 2026

What is the function of a computer's heat sink?

  • A To store data
  • B To connect peripherals
  • C To dissipate heat away from components like the CPU
  • D To process graphics
246
Medium nts Uploaded: 13 Aug 2026

Which of the following best describes a 'zero-day' vulnerability?

  • A A well-known, patched flaw
  • B A flaw unknown to the software vendor and unpatched
  • C A type of firewall
  • D A hardware defect
247
Medium nts Uploaded: 07 Aug 2026

Which of the following is an example of a compiled programming language?

  • A JavaScript
  • B Python
  • C C++
  • D PHP
248
Medium nts Uploaded: 09 Aug 2026

What is the primary purpose of a 'sitemap' in web development?

  • A Compress images
  • B Store user data
  • C Design page layouts
  • D Help search engines index website pages
249
Medium nts Uploaded: 13 Aug 2026

Which testing checks individual units of source code?

  • A Integration Testing
  • B Acceptance Testing
  • C Unit Testing
  • D System Testing
250
Medium css pms fpsc ppsc nts Uploaded: 01 Jul 2026

In Machine Learning, what is a hyperparameter?

  • A A configuration set before training
  • B A learned weight
  • C An output label
  • D A type of dataset
251
Medium pms Uploaded: 23 Aug 2026

Which of the following describes a MAN?

  • A A network covering a city or large campus
  • B A network within a single room
  • C A personal network
  • D A global network
252
Easy nts Uploaded: 20 Jun 2026

Which file format is commonly used for presentations?

  • A .xlsx
  • B .pptx
  • C .accdb
  • D .csv
253
Medium ppsc Uploaded: 09 Aug 2026

Which of the following data structures uses FIFO principle?

  • A Graph
  • B Tree
  • C Stack
  • D Queue
254
Medium fpsc Uploaded: 13 Aug 2026

What is the function of an IP address?

  • A Uniquely identify a device on a network
  • B Manage database tables
  • C Store data permanently
  • D Compile source code
255
Medium pms Uploaded: 07 Aug 2026

Which technique is used to handle collisions in a hash table?

  • A Sorting
  • B Chaining
  • C Indexing
  • D Compression
256
Medium css Uploaded: 23 Aug 2026

Which company developed ChatGPT?

  • A Meta
  • B OpenAI
  • C Microsoft
  • D Google
257
Medium css pms Uploaded: 20 Jun 2026

What is polymorphism in object-oriented programming?

  • A Data hiding
  • B Ability of an object to take multiple forms
  • C Memory allocation
  • D Database indexing
258
Medium ppsc Uploaded: 13 Aug 2026

What is the purpose of a search engine?

  • A Help users find information on the internet
  • B Store files locally
  • C Design websites
  • D Manage databases only
259
Hard pms Uploaded: 23 Aug 2026

What is the purpose of defragmentation?

  • A To encrypt data
  • B To delete files permanently
  • C To reorganize fragmented data for faster access
  • D To compress files
260
Medium fpsc Uploaded: 13 Aug 2026

Which data type stores true/false values?

  • A Integer
  • B Boolean
  • C Char
  • D Float
Practiced MCQs0 / 601