Join WhatsApp ChannelDaily MCQs & Exam Updates

Computer Science MCQs

MCQs on Programming, Networking, Database and OS

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

What is a variable in programming?

  • A A named storage location for data
  • B A function name
  • C A fixed value
  • D A type of loop
42
Medium css fpsc Uploaded: 20 Jun 2026

What is the purpose of a compiler?

  • A Execute programs directly
  • B Translate source code into machine code
  • C Store data permanently
  • D Manage networks
43
Easy css Uploaded: 23 Aug 2026

What is the function of DNS in networking?

  • A Compresses files
  • B Translates domain names into IP addresses
  • C Manages hardware
  • D Encrypts data
44
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
45
Hard css Uploaded: 23 Aug 2026

What is the function of an antivirus signature database?

  • A To identify known malware patterns
  • B To manage network traffic
  • C To store user passwords
  • D To compress files
46
Easy css Uploaded: 09 Aug 2026

Which of the following file extensions is used for Python files?

  • A .py
  • B .exe
  • C .html
  • D .java
47
Easy css Uploaded: 07 Aug 2026

What is the purpose of a subnet mask in networking?

  • A Increase internet speed
  • B Store website content
  • C Divide an IP network into smaller sub-networks
  • D Encrypt data transmission
48
Medium css pms Uploaded: 20 Jun 2026

Which Excel reference remains fixed when copied?

  • A Relative Reference
  • B Mixed Reference
  • C Absolute Reference
  • D Dynamic Reference
49
Medium css Uploaded: 13 Aug 2026

What is the purpose of a CAPTCHA?

  • A Encrypt data
  • B Backup files
  • C Distinguish humans from bots
  • D Speed up browsing
50
Medium css fpsc Uploaded: 20 Jun 2026

Which cyberattack encrypts files and demands payment?

  • A Spyware
  • B Ransomware
  • C Adware
  • D Trojan
51
Hard css Uploaded: 07 Aug 2026

Which of the following is a common file compression format?

  • A DOC
  • B ZIP
  • C PDF
  • D EXE
52
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
53
Medium css Uploaded: 09 Aug 2026

What does 'VPN' stand for?

  • A Virtual Private Network
  • B Virtual Public Network
  • C Virtual Protocol Network
  • D Verified Private Network
54
Easy css Uploaded: 23 Aug 2026

What is the function of a scanner?

  • A To connect to networks
  • B To print documents
  • C To store data permanently
  • D To convert physical documents into digital form
55
Hard css Uploaded: 23 Aug 2026

Which topology connects each device to a central hub?

  • A Ring
  • B Mesh
  • C Star
  • D Bus
56
Medium css pms Uploaded: 20 Jun 2026

Which data structure follows the Last In First Out (LIFO) principle?

  • A Queue
  • B Array
  • C Stack
  • D Linked List
57
Medium css Uploaded: 13 Aug 2026

Which of the following is used to structure content on a webpage?

  • A JavaScript
  • B Python
  • C HTML
  • D CSS
58
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
59
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
60
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
Practiced MCQs0 / 145