Join WhatsApp ChannelDaily MCQs & Exam Updates

Computer Science MCQs

MCQs on Programming, Networking, Database and OS

72 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 / 72
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 72 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 nts Uploaded: 07 Aug 2026

Which of the following is a characteristic of open-source software?

  • A Source code is always kept secret
  • B It cannot be distributed freely
  • C It requires a paid license always
  • D Source code is publicly available for modification
22
Medium nts Uploaded: 09 Aug 2026

Which of the following best describes 'phishing'?

  • A A hardware component
  • B A method of fraudulently obtaining sensitive information
  • C A type of programming language
  • D A network protocol
23
Medium nts Uploaded: 23 Aug 2026

Which of the following is a non-linear data structure?

  • A Tree
  • B Array
  • C Stack
  • D Queue
24
Medium nts Uploaded: 13 Aug 2026

What is two-factor authentication?

  • A A backup method
  • B Using two passwords only
  • C A type of firewall
  • D A security process requiring two forms of verification
25
Medium nts Uploaded: 13 Aug 2026

Which of the following describes 'many-to-many' relationship in a database?

  • A One record relates to one record only
  • B One record relates to many records only
  • C Multiple records in one table relate to multiple in another
  • D No relationship exists
26
Medium nts Uploaded: 23 Aug 2026

Which generation of computers introduced microprocessors?

  • A First
  • B Third
  • C Fourth
  • D Second
27
Medium css pms fpsc ppsc nts Uploaded: 25 Jun 2026

Which protocol is commonly used to create a secure and encrypted communication channel over the Internet?

  • A HTTPS (SSL/TLS)
  • B FTP
  • C DHCP
  • D Telnet
28
Medium fpsc nts Uploaded: 20 Jun 2026

Which network topology uses a single communication backbone?

  • A Star
  • B Mesh
  • C Bus
  • D Ring
29
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
30
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
31
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
32
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
33
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
34
Medium nts Uploaded: 23 Aug 2026

Which company developed the Java programming language?

  • A IBM
  • B Microsoft
  • C Apple
  • D Sun Microsystems
35
Medium nts Uploaded: 23 Aug 2026

What is the purpose of indexing in a database?

  • A To delete duplicate records
  • B To speed up data retrieval operations
  • C To back up the database
  • D To encrypt sensitive data
36
Medium nts Uploaded: 07 Aug 2026

In database normalization, which normal form eliminates transitive dependency?

  • A Second Normal Form (2NF)
  • B Third Normal Form (3NF)
  • C First Normal Form (1NF)
  • D Fourth Normal Form (4NF)
37
Medium nts Uploaded: 07 Aug 2026

Which of the following best defines 'artificial intelligence'?

  • A A network protocol
  • B A file storage format
  • C A type of computer hardware
  • D Simulation of human intelligence by machines
38
Medium nts Uploaded: 23 Aug 2026

What is the function of the CPU's control unit?

  • A To display graphics
  • B To direct the operations of the processor
  • C To connect to networks
  • D To store data permanently
39
Medium css pms fpsc ppsc nts Uploaded: 25 Jun 2026

Who is widely regarded as the father of Computer Science?

  • A John von Neumann
  • B Alan Turing
  • C Charles Babbage
  • D Bill Gates
40
Medium fpsc nts Uploaded: 20 Jun 2026

Which SQL command modifies existing records?

  • A INSERT
  • B DELETE
  • C UPDATE
  • D SELECT
Practiced MCQs0 / 72