Computer Science Fundamentals Quiz

Computer Science Fundamentals Quiz Questions

Click here for answers

1. What is the smallest unit of data in a computer?
(a) Byte
(b) Bit
(c) Kilobyte
(d) Megabyte

2. Which component is responsible for executing instructions in a computer?
(a) Motherboard
(b) RAM
(c) CPU
(d) Hard Drive

3. What is the binary equivalent of the decimal number 10?
(a) 1010
(b) 1101
(c) 1001
(d) 1110

4. What is the function of a compiler?
(a) Executes programs
(b) Converts high-level language to machine language
(c) Stores data
(d) Manages hardware

5. What is the purpose of an algorithm?
(a) To write code
(b) To solve a problem
(c) To create software
(d) To design hardware

6. Which of the following is a database management system (DBMS)?
(a) Microsoft Word
(b) Oracle
(c) Google Chrome
(d) Photoshop

7. What is the difference between a virus and a worm?
(a) Viruses replicate themselves, while worms do not.
(b) Worms replicate themselves, while viruses do not.
(c) Viruses require a host program to spread, while worms do not.
(d) Worms require a host program to spread, while viruses do not.

8. Which of the following is a cloud computing service?
(a) Software as a Service (SaaS)
(b) Platform as a Service (PaaS)
(c) Infrastructure as a Service (IaaS)
(d) All of the above

9. What is the purpose of a firewall?
(a) To protect a network from unauthorized access
(b) To speed up network traffic
(c) To store data
(d) To manage hardware

10. What is the role of a database administrator (DBA)?
(a) To design and manage databases
(b) To write code
(c) To provide technical support
(d) To create hardware

11. What is the difference between a compiler and an interpreter?
(a) Compilers translate the entire program at once, while interpreters translate one line at a time.
(b) Interpreters translate the entire program at once, while compilers translate one line at a time.
(c) Compilers execute the program directly, while interpreters translate it to machine code first.
(d) Interpreters execute the program directly, while compilers translate it to machine code first.

12. What is the purpose of a relational database?
(a) To store data in a hierarchical structure
(b) To store data in a network structure
(c) To store data in a tabular format
(d) To store data in a tree structure

13. What is the purpose of a query in a database?
(a) To create a database
(b) To retrieve data from a database
(c) To store data in a database
(d) To manage a database

14. Which of the following is a network protocol?
(a) HTTP
(b) TCP/IP
(c) DNS
(d) All of the above

15. What is the purpose of a web server?
(a) To store websites
(b) To deliver websites to clients
(c) To create websites
(d) To manage websites

16. Which type of software is used to create and edit documents?
(a) Operating System
(b) Word Processor
(c) Spreadsheet
(d) Database

17. Which programming language is often used for web development?
(a) C++
(b) Python
(c) Java
(d) Assembly

18. Which type of memory is volatile, meaning its contents are lost when the power is turned off?
(a) ROM
(b) RAM
(c) Hard Drive
(d) SSD

19. What is the correct order of the computer’s startup process?
(a) BIOS, Operating System, Bootloader, Hardware Initialization
(b) Hardware Initialization, BIOS, Bootloader, Operating System
(c) Bootloader, BIOS, Hardware Initialization, Operating System
(d) BIOS, Bootloader, Hardware Initialization, Operating System

20. Which network topology has a central device that all other devices connect to?
(a) Star
(b) Ring
(c) Bus
(d) Mesh

21. Which component is responsible for storing data permanently?
(a) CPU
(b) RAM
(c) Hard Drive
(d) Motherboard

22. Which type of software is used to create websites?
(a) Word Processor
(b) Spreadsheet
(c) Database
(d) Web Development Software

23. Which data structure is used to represent a hierarchical relationship between elements?
(a) Array
(b) Linked List
(c) Tree
(d) Stack

24. What is the process of converting analog signals into digital signals called?
(a) Sampling
(b) Quantization
(c) Encoding
(d) Analog-to-Digital Conversion (ADC)

25. Which type of database is best suited for handling large amounts of structured data?
(a) NoSQL
(b) Relational
(c) Object-Oriented
(d) Distributed

Computer Science Fundamentals Quiz Questions with Answers

1. What is the smallest unit of data in a computer?
(b) Bit

2. Which component is responsible for executing instructions in a computer?
(c) CPU

3. What is the binary equivalent of the decimal number 10?
(a) 1010

4. What is the function of a compiler?
(b) Converts high-level language to machine language

5. What is the purpose of an algorithm?
(b) To solve a problem

6. Which of the following is a database management system (DBMS)?
(b) Oracle

7. What is the difference between a virus and a worm?
(c) Viruses require a host program to spread, while worms do not.

8. Which of the following is a cloud computing service?
(d) All of the above

9. What is the purpose of a firewall?
(a) To protect a network from unauthorized access

10. What is the role of a database administrator (DBA)?
(a) To design and manage databases

11. What is the difference between a compiler and an interpreter?
(a) Compilers translate the entire program at once, while interpreters translate one line at a time.

12. What is the purpose of a relational database?
(c) To store data in a tabular format

13. What is the purpose of a query in a database?
(b) To retrieve data from a database

14. Which of the following is a network protocol?
(d) All of the above

15. What is the purpose of a web server?
(b) To deliver websites to clients

16. Which type of software is used to create and edit documents?
(b) Word Processor

17. Which programming language is often used for web development?
(b) Python

18. Which type of memory is volatile, meaning its contents are lost when the power is turned off?
(b) RAM

19. What is the correct order of the computer’s startup process?
(b) Hardware Initialization, BIOS, Bootloader, Operating System

20. Which network topology has a central device that all other devices connect to?
(a) Star

21. Which component is responsible for storing data permanently?
(c) Hard Drive

22. Which type of software is used to create websites?
(d) Web Development Software

23. Which data structure is used to represent a hierarchical relationship between elements?
(c) Tree

24. What is the process of converting analog signals into digital signals called?
(d) Analog-to-Digital Conversion (ADC)

25. Which type of database is best suited for handling large amounts of structured data?
(b) Relational