Docsity

“Computer Science MCQs with Answers”, Exams of Computer Science

Toggle sidebar
bg1
Here’s a set of important Computer Science MCQs covering multiple topics:
Data Structures & Algorithms: 1. Which data structure uses FIFO (First In First Out)?
a) Stack b) Queue c) Tree d) Graph
2. What is the time complexity of binary search in a sorted array?
a) O(n)
b) O(log n)
c) O(n log n)
d) O(1)
3. Which of the following is a self-balancing binary search tree?
a) BST
b) AVL Tree
c) Heap
d) Linked List
Object-Oriented Programming (OOP): 4. Which of the following is NOT an OOP
concept? a) Encapsulation b) Inheritance c) Polymorphism d) Compilation
5. What is the process of creating a new object from an existing class called?
a) Inheritance
b) Instantiation
c) Overloading
d) Encapsulation
Computer Networks: 6. Which protocol is used to send emails? a) HTTP b) FTP c)
SMTP d) SNMP
7. What does IP stand for in networking?
a) Internet Protocol
b) Internal Process
c) Integrated Program
d) Interface Port
Databases (DBMS): 8. SQL is used for: a) Creating databases b) Managing data c)
Querying data d) All of the above
9. What does ACID stand for in databases?
a) Atomicity, Consistency, Isolation, Durability
b) Accuracy, Consistency, Integrity, Durability
c) Atomicity, Consistency, Integrity, Distribution
d) Access, Control, Integrity, Durability
Operating Systems: 10. Which of the following is a non-preemptive scheduling
algorithm? a) Round Robin b) Shortest Job Next (SJN) c) Priority Scheduling d)
Multilevel Queue
pf2

Partial preview of the text

Download “Computer Science MCQs with Answers” and more Exams Computer Science in PDF only on Docsity!

Here’s a set of important Computer Science MCQs covering multiple topics: Data Structures & Algorithms: 1. Which data structure uses FIFO (First In First Out)? a) Stack b) Queue c) Tree d) Graph

  1. What is the time complexity of binary search in a sorted array? a) O(n) b) O(log n) c) O(n log n) d) O(1)
  2. Which of the following is a self-balancing binary search tree? a) BST b) AVL Tree c) Heap d) Linked List Object-Oriented Programming (OOP): 4. Which of the following is NOT an OOP concept? a) Encapsulation b) Inheritance c) Polymorphism d) Compilation
  3. What is the process of creating a new object from an existing class called? a) Inheritance b) Instantiation c) Overloading d) Encapsulation Computer Networks: 6. Which protocol is used to send emails? a) HTTP b) FTP c) SMTP d) SNMP
  4. What does IP stand for in networking? a) Internet Protocol b) Internal Process c) Integrated Program d) Interface Port Databases (DBMS): 8. SQL is used for: a) Creating databases b) Managing data c) Querying data d) All of the above
  5. What does ACID stand for in databases? a) Atomicity, Consistency, Isolation, Durability b) Accuracy, Consistency, Integrity, Durability c) Atomicity, Consistency, Integrity, Distribution d) Access, Control, Integrity, Durability Operating Systems: 10. Which of the following is a non-preemptive scheduling algorithm? a) Round Robin b) Shortest Job Next (SJN) c) Priority Scheduling d) Multilevel Queue
  1. Virtual memory is used to: a) Increase RAM size b) Increase CPU speed c) Increase storage capacity d) Manage processes efficiently Programming / Web Development: 12. Which of the following is a client-side scripting language? a) PHP b) JavaScript c) Python d) SQL
  2. In HTML, which tag is used to create a hyperlink? a) b) c) d)
  3. Which data type is used to store true or false values in most programming languages? a) int b) char c) boolean d) float