Computer science
1. What does HTML stand for?
A) Hyper Text Makeup Language
B) Hyper Text Markup Language
C) Hyperlinks and Text Mark Language
D) Home Tool Markup Language
2. Which of the following is NOT a programming language?
A) Java
B) C++
C) XML
D) Python
3. What does DNS stand for?
A) Domain Name System
B) Data Network System
C) Direct Network System
D) Digital Number System
4. Which of these is used to style web pages?
A) HTML
B) CSS
C) PHP
D) SQL
5. Which sorting algorithm works by repeatedly swapping adjacent
elements that are in the wrong order?
A) Merge Sort
B) Quick Sort
C) Bubble Sort
D) Heap Sort
6. What does API stand for?
A) Application Programming Interface
B) Application Public Interface
C) Automated Programming Interface
D) Accessible Programming Interface
7. Which of the following is a database management system?
A) HTTP
B) FTP
C) SQL
D) MySQL
8. What is the function of the ALU (Arithmetic Logic Unit)?
A) To perform arithmetic and logical operations
B) To store data temporarily
C) To control the flow of data
D) To manage input and output operations
9. Which of the following is NOT a type of cyber attack?
A) Phishing
B) DoS
C) Ransomware
D) Firewall
10. Which of these languages is used for machine learning?
A) Python
B) PHP
C) CSS
D) HTML
11. Which of the following represents a relationship between two entities
in a database?
A) Primary Key
B) Foreign Key
C) Index
D) Trigger
12. Which of the following is a NoSQL database?
A) MySQL
B) MongoDB
C) PostgreSQL
D) Oracle
13. What is the primary function of the DNS server?
A) To resolve domain names to IP addresses
B) To monitor traffic between networks
C) To encrypt data before transmission
D) To filter out malicious content
14. What is the purpose of a firewall in computer networks?
A) To block viruses
B) To prevent unauthorized access
C) To accelerate network speed
D) To store data
15. Which of the following is an operating system developed by Microsoft?
A) Ubuntu
B) macOS
C) Android
D) Windows
16. Which of these is a cloud storage service?
A) Dropbox
B) GitHub
C) Apache
D) MySQL
17. Which of the following is a type of software testing?
A) Black-box Testing
B) White-box Testing
C) Unit Testing
D) All of the above
18. Which layer of the OSI model is responsible for data encryption?
A) Application Layer
B) Session Layer
C) Presentation Layer
D) Network Layer
19. What is the main purpose of cookies in web browsing?
A) To track user activity
B) To store user preferences
C) To save passwords
D) All of the above
20. Which of these protocols is used to send email?
A) HTTP
B) SMTP
C) FTP
D) SNMP
21. Which programming language is primarily used for developing Android
apps?
A) Python
B) Swift
C) Java
D) C++
22. What is the purpose of a compiler?
A) To execute programs
B) To translate code from high-level language to machine code
C) To optimize program performance
D) To debug errors in the code
23. Which of these is a client-side scripting language?
A) PHP
B) JavaScript
C) Python
D) SQL
24. Which of the following data structures is used to implement recursion?
A) Queue
B) Stack
C) Linked List
D) Heap
25. What does HTTP stand for?
A) Hyper Text Transfer Protocol
B) High Transfer Text Protocol
C) Hyper Text Transmission Protocol
D) Hyperlinks Text Transfer Protocol
26. Which layer of the OSI model is responsible for routing?
A) Transport Layer
B) Network Layer
C) Data Link Layer
D) Physical Layer
27. What is the main function of an operating system?
A) To manage system hardware and software resources
B) To compile code
C) To execute user applications
D) To protect the computer from viruses
28. Which of these data structures is used for breadth-first search (BFS) in
graphs?
A) Stack
B) Queue
C) Heap
D) Array
29. Which programming language is known for its simplicity and
readability?
A) C++
B) Java
C) Python
D) Assembly
30. What does SQL stand for?
A) Structured Query Language
B) Standard Query Language
C) Secure Query Language
D) Simple Query Language