Join WhatsApp ChannelDaily MCQs & Exam Updates

Computer Science MCQs

MCQs on Programming, Networking, Database and OS

306 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 / 306
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 306 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.
61
Medium fpsc nts Uploaded: 20 Jun 2026

Which sorting algorithm repeatedly selects the smallest element and places it in the correct position?

  • A Merge Sort
  • B Quick Sort
  • C Selection Sort
  • D Heap Sort
62
Medium nts Uploaded: 07 Aug 2026

Which of the following is an advantage of cloud storage?

  • A Access data from anywhere with internet connection
  • B Always more secure than local storage
  • C Cannot be shared with others
  • D Requires no internet connection
63
Medium fpsc Uploaded: 23 Aug 2026

Which logic gate gives output 1 only when both inputs are 1?

  • A XOR
  • B AND
  • C OR
  • D NOT
64
Medium css Uploaded: 13 Aug 2026

What does phishing typically try to steal?

  • A Software licenses
  • B Network bandwidth
  • C Sensitive personal information
  • D Hardware components
65
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
66
Medium css Uploaded: 09 Aug 2026

Which generation of computers used transistors?

  • A Third
  • B First
  • C Fourth
  • D Second
67
Medium fpsc Uploaded: 13 Aug 2026

Which of the following is a biometric authentication method?

  • A Password
  • B PIN
  • C Fingerprint scan
  • D Security question
68
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
69
Medium css Uploaded: 23 Aug 2026

What is polymorphism in OOP?

  • A A type of loop structure
  • B A database normalization technique
  • C A network security protocol
  • D Ability of objects to take multiple forms
70
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
71
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)
72
Medium css Uploaded: 07 Aug 2026

Which of these is a social media platform?

  • A Adobe Photoshop
  • B VLC Media Player
  • C MS Word
  • D Facebook
73
Medium nts Uploaded: 09 Aug 2026

What is the purpose of 'debugging' in programming?

  • A Store data
  • B Compile code
  • C Identify and fix errors in code
  • D Design interfaces
74
Medium css fpsc Uploaded: 20 Jun 2026

Which protocol is used to securely transfer files over SSH?

  • A FTP
  • B TFTP
  • C SFTP
  • D SMTP
75
Medium css Uploaded: 09 Aug 2026

Which of these is a type of computer virus?

  • A Firewall
  • B Trojan Horse
  • C Antivirus
  • D Router
76
Medium css Uploaded: 13 Aug 2026

What is ransomware?

  • A A backup tool
  • B Malware that locks data and demands payment
  • C An antivirus program
  • D Free software
77
Medium ppsc Uploaded: 07 Aug 2026

Which of the following best describes deadlock in operating systems?

  • A A state where processes wait indefinitely for resources held by each other
  • B A type of virus attack
  • C A process that runs continuously
  • D A memory overflow error
78
Medium fpsc Uploaded: 13 Aug 2026

What is a transaction in a database?

  • A A sequence of operations performed as a single logical unit
  • B A type of index
  • C A single query
  • D A backup process
79
Medium pms Uploaded: 13 Aug 2026

What is the default port number for HTTP?

  • A 443
  • B 21
  • C 80
  • D 25
80
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
Practiced MCQs0 / 306