Sample Set of 10 Computer Science MCQs
1. Which programming language is often used for developing mobile applications?
a) Java
b) Python
c) C#
d) HTML
2. In object-oriented programming, the process of defining a new class based on an existing class is called:
a) Inheritance
b) Abstraction
c) Encapsulation
d) Polymorphism
3. What is the purpose of a VPN (Virtual Private Network)?
a) Secure online payments
b) Faster internet browsing
c) Remote file sharing
d) Secure data transmission over a public network
4. Which data structure uses the "Last In, First Out" (LIFO) principle?
a) Queue
b) Stack
c) Linked List
d) Hash Table
5. Which sorting algorithm has the worst-case time complexity of O(n^2)?
a) Quick Sort
b) Merge Sort
c) Insertion Sort
d) Heap Sort
6. What is the primary purpose of an operating system?
a) Running applications
b) Managing hardware resources
c) Browsing the internet
d) Creating documents
7. Which protocol is used for sending emails over the internet?
a) HTTP
b) FTP
c) SMTP
d) POP3
8. What does HTML stand for in web development?
a) Hyper Text Markup Language
b) High Tech Markup Language
c) Hyperlink and Text Markup Language
d) Hyper Transfer Markup Language
9. Which type of database is known for its schema-less design and horizontal scalability?
a) Relational Database
b) NoSQL Database
c) Object-Oriented Database
d) Hierarchical Database
10. Which programming language is often used for data analysis and scientific computing?
a) Java
b) C++
c) R
d) Ruby
Please note that the answers to the above questions are as follows:
1. a) Java
2. a) Inheritance
3. d) Secure data transmission over a public network
4. b) Stack
5. c) Insertion Sort
6. b) Managing hardware resources
7. c) SMTP
8. a) Hyper Text Markup Language
9. b) NoSQL Database
10. c) R
No comments:
Post a Comment