wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Science Quiz

Total questions: 118

Worksheet time: 59mins

Name
Class
Date
1.

What is the primary advantage of using a "Hash Table" data structure?

a)

It allows access to elements in constant time

b)

It stores elements in a sorted order

c)

It supports fast insertion and deletion operations

d)

It requires less memory than an array

2.

In SQL, which clause is used to group records that have the same values in specified fields?

a)

ORDER BY

b)

GROUP BY

c)

HAVING

d)

SELECT

3.

Which type of error occurs when the syntax of the code is incorrect and prevents it from being compiled?

a)

Logic error

b)

Runtime error

c)

Compilation error

d)

Arithmetic error

4.

Which of the following is the correct definition of a "Microprocessor"?

a)

A small, low-speed processing unit

b)

A device used for input and output processing

c)

The central unit that performs calculations and processes instructions in a computer

d)

A type of memory storage device

5.

Which of the following protocols is used to send email?

a)

FTP

b)

SMTP

c)

HTTP

d)

SNMP

6.

Which of the following is a characteristic of "Web 1.0"?

a)

User-generated content

b)

Static web pages with limited interaction

c)

Dynamic content based on user behavior

d)

Real-time communication between users

7.

Which of the following is a valid reason to use a linked list over an array?

a)

To store elements in contiguous memory locations

b)

To allow efficient random access to elements

c)

To easily insert and delete elements without shifting others

d)

To store fixed-size collections of data

8.

Which of the following is true about a "Switch" in a computer network?

a)

It forwards data based on MAC addresses

b)

It amplifies network signals

c)

It connects devices across different networks

d)

It filters data based on IP addresses

9.

Which of the following programming languages is primarily used for statistical computing and data analysis?

a)

Python

b)

Java

c)

R

d)

C++

10.

In object-oriented programming, which concept refers to the ability of one class to assume the characteristics of another class?

a)

Polymorphism

b)

Encapsulation

c)

Inheritance

d)

Abstraction

11.

What is the primary purpose of a "Firewall" in computer networks?

a)

To connect multiple devices in a network

b)

To protect the network from unauthorized access

c)

To route traffic between different networks

d)

To store backup copies of data

12.

What is the role of the "Application Layer" in the OSI model?

a)

It ensures error-free transmission of data packets

b)

It routes data between different networks

c)

It provides network services to end-users, such as email and file transfer

d)

It manages physical hardware connections

13.

Which of the following is an example of a "non-impact" printer?

a)

Dot-matrix printer

b)

Laser printer

c)

Inkjet printer

d)

Daisy-wheel printer

14.

Which of the following is NOT a characteristic of a "B-tree"?

a)

It is a balanced tree data structure

b)

It is used for indexing in databases

c)

It allows fast searching, insertion, and deletion

d)

It requires elements to be stored in contiguous memory locations

15.

What is the purpose of a "Virtual Private Network" (VPN)?

a)

To connect two computers on a local network

b)

To allow users to securely access a network over the internet

c)

To encrypt all the data stored on a device

d)

To monitor and log all internet traffic

16.

What is the primary function of a "Router" in a network?

a)

To manage the flow of data within a local network

b)

To amplify network signals over long distances

c)

To route data packets between different networks

d)

To connect devices to a local area network

17.

Which of the following is an example of a software development methodology?

a)

Node.js

b)

Agile

c)

SQL

d)

HTML

18.

In the context of "Big Data," which of the following describes "Volume"?

a)

The speed at which data is generated and processed

b)

The variety of data types and sources

c)

The size or amount of data being generated

d)

The ability to analyze data in real-time

19.

In which of the following network topologies does data flow in one direction?

a)

Star

b)

Mesh

c)

Ring

d)

Bus

20.

Which of the following is used to represent a collection of data values in a structured way?

a)

Class

b)

Data structure

c)

Algorithm

d)

Method

21.

What type of error is typically encountered when performing a division by zero operation?

a)

Logic error

b)

Compilation error

c)

Arithmetic error

d)

Runtime error

22.

What is the purpose of "Normalization" in database design?

a)

To create relationships between tables

b)

To ensure that data is stored in a way that reduces redundancy

c)

To increase the speed of queries

d)

To allow indexing of fields

23.

What is the main advantage of using "Cloud Storage" for data storage?

a)

Data is stored on a local device

b)

Data can be accessed from any device with internet access

c)

Data is stored in a fixed physical location

d)

It reduces the need for internet connectivity

24.

Which of the following is true about the "Transport Layer" in the OSI model?

a)

It ensures reliable end-to-end communication between devices

b)

It is responsible for routing data between different networks

c)

It provides physical data transmission over cables

d)

It establishes the interface between user applications and network services

25.

What is a primary characteristic of a "Hub" in networking?

a)

It forwards data only to specific devices based on their MAC addresses

b)

It broadcasts data to all connected devices

c)

It routes data based on IP addresses

d)

It amplifies signals to extend network reach

26.

What does the term "Latency" refer to in a computer network?

a)

The amount of data that can be transferred over a network in a given time

b)

The time it takes for data to travel from source to destination

c)

The reliability of a network connection

d)

The number of devices connected to a network

27.

What is the primary purpose of a "Checksum" in data transmission?

a)

To verify the integrity of the data during transmission

b)

To encrypt the data for secure transmission

c)

To increase the speed of the transmission

d)

To compress the data for efficient transmission

28.

Which of the following is a key feature of "Web 3.0"?

a)

Increased use of static web pages

b)

Centralized control of data

c)

Enhanced user interaction with dynamic content

d)

Use of Artificial Intelligence for personalized experiences

29.

Which of the following is an example of a "Social Engineering" attack?

a)

Phishing

b)

SQL Injection

c)

Denial of Service (DoS)

d)

Malware

30.

Which type of error occurs when the program crashes because of an invalid operation during execution?

a)

Syntax error

b)

Runtime error

c)

Compilation error

d)

Logic error

31.

In object-oriented programming, which concept refers to the combination of data and methods in a single unit called a "class"?

a)

Inheritance

b)

Encapsulation

c)

Polymorphism

d)

Abstraction

32.

What is the main benefit of using a "Linked List" over an "Array"?

a)

Faster access to elements by index

b)

Ability to store elements of different data types

c)

Efficient insertion and deletion of elements

d)

Less memory usage

33.

Which type of error occurs when there is an issue with a program's logic but it still compiles and runs?

a)

Logic error

b)

Syntax error

c)

Runtime error

d)

Compilation error

34.

In networking, what does "IP" stand for?

a)

Internet Process

b)

Internal Protocol

c)

Internet Protocol

d)

Integrated Path

35.

Which type of data structure is typically used for implementing a function call stack?

a)

Array

b)

Queue

c)

Stack

d)

Linked List

36.

Which of the following programming languages is used primarily for web development?

a)

Python

b)

JavaScript

c)

C

d)

Java

37.

Which of the following is an example of an "Impact Printer"?

a)

Inkjet printer

b)

Laser printer

c)

Dot matrix printer

d)

LED printer

38.

Which of the following is true about "Virtual Memory"?

a)

It increases the physical RAM in a computer

b)

It is a temporary storage area used to offload active data from RAM

c)

It stores files and applications permanently

d)

It is faster than physical memory

39.

Which type of error occurs when an attempt is made to divide a number by zero in a program?

a)

Runtime error

b)

Compilation error

c)

Logic error

d)

Arithmetic error

40.

What is a key difference between "Public" and "Private" IP addresses?

a)

Public IP addresses are used to identify devices on a private network, while private IP addresses identify devices on the internet

b)

Public IP addresses are used for external communications, while private IP addresses are used within local networks

c)

Private IP addresses are dynamically assigned, while public IP addresses are static

d)

Private IP addresses are used for web browsing, while public IP addresses are used for email communication

41.

Which of the following is NOT an example of a network protocol?

a)

TCP

b)

IP

c)

SSL

d)

RAM

42.

Which of the following types of memory stores data for quick access by the CPU but is volatile (data is lost when the power is turned off)?

a)

ROM

b)

Flash memory

c)

RAM

d)

Hard disk

43.

What is the purpose of a "Primary Key" in a relational database?

a)

To establish relationships between tables

b)

To ensure the uniqueness of each record in a table

c)

To create backup copies of data

d)

To define the structure of a table

44.

In which of the following data structures are elements inserted and removed from the same end?

a)

Stack

b)

Queue

c)

Array

d)

Linked List

45.

Which of the following is used to identify a specific item in a list or array in programming?

a)

Pointer

b)

Index

c)

Node

d)

Key

46.

Which type of network topology connects each device to a central node, which acts as a hub?

a)

Bus

b)

Star

c)

Ring

d)

Mesh

47.

What is the purpose of a "Bootstrap" in programming?

a)

To create graphical interfaces

b)

To generate random numbers

c)

To initialize the state of a program or application

d)

To store user data

48.

What type of loop will continue executing until a specified condition becomes false?

a)

For loop

b)

While loop

c)

Do-while loop

d)

Infinite loop

49.

In SQL, which clause is used to filter groups of records after grouping them with "GROUP BY"?

a)

WHERE

b)

HAVING

c)

ORDER BY

d)

SELECT

50.

Which of the following is a characteristic of "Static RAM" (SRAM)?

a)

Slower than Dynamic RAM

b)

Requires periodic refreshing

c)

Faster than Dynamic RAM and does not need refreshing

d)

Used for long-term storage

51.

Which of the following is used to store key-value pairs and provides quick data retrieval?

a)

Stack

b)

Queue

c)

Hash table

d)

Linked List

52.

What does the acronym "HTTP" stand for?

a)

Hypertext Transaction Protocol

b)

Hyper Transfer Text Protocol

c)

HyperText Transport Protocol

d)

HyperText Transfer Protocol

53.

In object-oriented programming, which of the following is used to hide the internal implementation details and only show the necessary parts?

a)

Polymorphism

b)

Abstraction

c)

Encapsulation

d)

Inheritance

54.

What is the purpose of the "Index" in SQL databases?

a)

To create relationships between tables

b)

To speed up data retrieval from a table

c)

To prevent data duplication

d)

To ensure data integrity

55.

Which of the following is a valid statement in SQL to remove all records from a table but keep the table structure intact?

a)

DROP TABLE

b)

DELETE FROM

c)

TRUNCATE TABLE

d)

REMOVE TABLE

56.

What is the main advantage of using a "Linked List" over an "Array"?

a)

It allows random access to elements

b)

It provides fixed-size data storage

c)

It allows dynamic memory allocation and efficient insertion/deletion

d)

It stores elements contiguously in memory

57.

Which type of database management system (DBMS) is most commonly used for large-scale, relational databases?

a)

NoSQL

b)

Relational DBMS (RDBMS)

c)

Object-oriented DBMS

d)

Hierarchical DBMS

58.

Which of the following network topologies is most suitable for large networks where redundancy is critical?

a)

Bus topology

b)

Star topology

c)

Mesh topology

d)

Ring topology

59.

Which type of error occurs when an operation causes the program to break due to an invalid operation, such as dividing by zero?

a)

Logic error

b)

Runtime error

c)

Syntax error

d)

Compilation error

60.

What does "IP" stand for in networking?

a)

Internal Protocol

b)

Internet Process

c)

Internet Protocol

d)

Integrated Path

61.

What is the purpose of a "Primary Key" in a database?

a)

To enforce uniqueness and ensure that each record can be uniquely identified

b)

To store foreign data

c)

To link tables together

d)

To speed up queries

62.

Which of the following is used to create dynamic, interactive web pages?

a)

HTML

b)

CSS

c)

JavaScript

d)

SQL

63.

Which layer of the OSI model is responsible for end-to-end communication and error correction?

a)

Physical Layer

b)

Transport Layer

c)

Network Layer

d)

Application Layer

64.

What type of memory is "volatile" and loses its content when power is turned off?

a)

ROM

b)

Flash memory

c)

SRAM

d)

DRAM

65.

Which of the following is an example of "Non-Impact Printers"?

a)

Dot-matrix printer

b)

Laser printer

c)

Daisy-wheel printer

d)

Line printer

66.

Which of the following is true about a "Binary Search Algorithm"?

a)

It only works on unsorted data

b)

It searches the entire list sequentially

c)

It divides the list into halves and checks the middle element

d)

It is slower than linear search

67.

Which of the following is the most common type of error that occurs due to a typo in a program's syntax?

a)

Logic error

b)

Runtime error

c)

Compilation error

d)

Arithmetic error

68.

Which type of programming language is often used for web development and client-side interactivity?

a)

Python

b)

JavaScript

c)

Java

d)

C#

69.

In the context of object-oriented programming, which of the following is a principle of "Inheritance"?

a)

A class can inherit methods and properties from another class

b)

A class can store data only for itself

c)

A method can change its behavior based on the object type

d)

An object can contain only one property

70.

What type of error occurs when an invalid operation is attempted, such as dividing by zero?

a)

Syntax error

b)

Logic error

c)

Arithmetic error

d)

Runtime error

71.

What is the primary function of the "Control Unit" (CU) in the CPU?

a)

To perform mathematical calculations

b)

To manage data transfer between memory and I/O devices

c)

To direct the operation of the processor

d)

To execute program instructions

72.

What is the main function of the "Data Link Layer" in the OSI model?

a)

To route data between networks

b)

To provide reliable transmission of data over the physical layer

c)

To ensure the data reaches the destination on time

d)

To allow the end devices to communicate directly

73.

Which of the following programming languages is designed to interact with databases and manipulate data?

a)

HTML

b)

SQL

c)

Java

d)

Python

74.

What is the primary function of a "Cache Memory" in computing?

a)

To store data that is not frequently used

b)

To temporarily hold data that the CPU needs quickly

c)

To store long-term data

d)

To hold backup copies of important files

75.

Which of the following is a feature of a "Queue" data structure?

a)

Elements are added and removed from the same end

b)

Elements are added at the front and removed from the back

c)

Elements are added at the back and removed from the front

d)

It operates using the Last-In, First-Out (LIFO) principle

76.

In a database, what does the term "Normalization" refer to?

a)

Reorganizing data to reduce redundancy and improve integrity

b)

Converting data into a standard format for storage

c)

Encrypting sensitive data for security

d)

Grouping data into tables for easier access

77.

Which of the following is true about "Stacks" in programming?

a)

It uses the FIFO (First-In, First-Out) method

b)

It uses the LIFO (Last-In, First-Out) method

c)

It allows access to elements from anywhere in the collection

d)

It only allows adding and removing elements from the middle

78.

What is the key advantage of using "Cloud Storage"?

a)

Reduced access to data

b)

Local storage is required for all devices

c)

Data can be accessed from any location with internet access

d)

It is only suitable for large businesses

79.

Which of the following is used to retrieve a specific record from a database table?

a)

SELECT statement

b)

INSERT statement

c)

DELETE statement

d)

UPDATE statement

80.

What does the acronym "SQL" stand for?

a)

Structured Query Language

b)

Simple Query Language

c)

Standard Query Language

d)

Secure Query Language

81.

What does "DNS" stand for in networking?

a)

Domain Network System

b)

Data Network Service

c)

Domain Name System

d)

Direct Network Service

82.

What does "DNS" stand for in networking?

a)

Domain Network System

b)

Data Network Service

c)

Domain Name System

d)

Direct Network Service

83.

Which of the following is a major benefit of using "Object-Oriented Programming" (OOP)?

a)

Reduced memory usage

b)

Increased code reuse through inheritance

c)

Faster program execution

d)

Simpler program logic

84.

In a tree data structure, what is the node with no children called?

a)

Parent

b)

Root

c)

Leaf

d)

Branch

85.

What is the main feature of the "Ring" topology in networking?

a)

Each device is connected to a central hub

b)

Devices are connected in a circular fashion

c)

Each device is connected to every other device

d)

Data flows in multiple directions

86.

Which of the following is used to manage network devices in a Simple Network Management Protocol (SNMP)?

a)

Router

b)

Switch

c)

Network management software

d)

Client-server

87.

In the context of web development, what does CSS stand for?

a)

Cascading Style Sheets

b)

Centralized Style Syntax

c)

Client-side Scripting

d)

Cascading Scripting Sheets

88.

Which of the following is an example of a "Non-Volatile" memory?

a)

RAM

b)

Cache

c)

ROM

d)

Registers

89.

Which of the following is the correct description of "Polymorphism" in programming?

a)

The ability to define multiple methods with the same name but different parameters

b)

The ability to hide the internal implementation of an object

c)

The ability of a class to inherit from multiple other classes

d)

The ability of an object to hold multiple types of data

90.

What does the term "Virtual Machine" (VM) refer to?

a)

A physical machine that is virtualized to run multiple OS

b)

A software-based emulation of a computer system

c)

A machine that can create other virtual machines

d)

A hardware component of the CPU

91.

Which of the following is NOT a feature of "Blockchain" technology?

a)

It is decentralized

b)

It ensures data integrity

c)

It requires a centralized authority for verification

d)

It uses cryptographic techniques for securing data

92.

In the context of computer architecture, what does "ALU" stand for?

a)

Arithmetic Logic Unit

b)

Automatic Logic Unit

c)

Advanced Logic Unit

d)

Additional Logic Unit

93.

Which of the following devices is used to extend the coverage of a wireless network?

a)

Repeater

b)

Modem

c)

Router

d)

Switch

94.

Which of the following is true about a "Data Warehouse"?

a)

It stores operational data

b)

It only stores data in real-time

c)

It stores large amounts of historical and aggregated data for analysis

d)

It is used to directly run transactional queries

95.

Which of the following programming languages is commonly used for data science and machine learning?

a)

HTML

b)

C++

c)

Python

d)

JavaScript

96.

What is the primary function of a "Router" in a network?

a)

To amplify signals

b)

To route data packets between different networks

c)

To connect devices within the same network

d)

To store data permanently

97.

What does the acronym "IP" in networking stand for?

a)

Internet Protocol

b)

Internet Process

c)

Internal Protocol

d)

Internet Pathway

98.

What is the main function of a "Switch" in networking?

a)

To route traffic between different networks

b)

To manage data transmission rates

c)

To forward data to devices based on MAC addresses

d)

To amplify data signals

99.

What is the primary purpose of a "Firewall" in network security?

a)

To prevent unauthorized access to a network

b)

To filter network traffic based on IP addresses

c)

To store sensitive data securely

d)

To manage network performance

100.

What type of error is encountered when the program is syntactically incorrect?

a)

Runtime error

b)

Logic error

c)

Compilation error

d)

Arithmetic error

101.

In the context of databases, what does "ACID" stand for?

a)

Automatic Consistency, Isolation, and Durability

b)

Atomicity, Consistency, Isolation, and Durability

c)

Authentication, Connection, Insertion, and Deletion

d)

Access Control, Integrity, and Data

102.

Which of the following types of memory does NOT require a power source to retain data?

a)

RAM

b)

SRAM

c)

Flash memory

d)

DRAM

103.

What does the "Do-While" loop do in programming?

a)

Executes the loop body only when the condition is true

b)

Executes the loop body at least once before checking the condition

c)

Repeats indefinitely

d)

Stops execution if the condition is true

104.

What is the purpose of an "Object" in Object-Oriented Programming?

a)

It represents data and behaviors of a class

b)

It defines the methods in a program

c)

It stores static variables only

d)

It is used for handling user input

105.

Which of the following is a key feature of "Agile" methodology in software development?

a)

It focuses on rigid planning and documentation

b)

It emphasizes flexibility, collaboration, and customer feedback

c)

It avoids testing and debugging phases

d)

It uses a waterfall approach to project management

106.

What is the function of a "Primary Key" in a relational database?

a)

To create relationships between tables

b)

To uniquely identify records in a table

c)

To enforce data integrity

d)

To sort records based on a field

107.

What does the term "Firewall" refer to in network security?

a)

A protocol used for encryption

b)

A device or system that monitors and controls network traffic

c)

A method for preventing unauthorized software installation

d)

A tool used for data storage management

108.

In the context of machine learning, what is the purpose of a "Training Set"?

a)

To test the accuracy of the model

b)

To validate the performance of the algorithm

c)

To train the machine learning model to recognize patterns

d)

To deploy the model in a production environment

109.

What is the advantage of using a "Hash Map" over an array?

a)

Faster access times for non-contiguous data

b)

More efficient storage of large datasets

c)

More flexible for ordered data

d)

Uses less memory

110.

Which of the following is true about "Cloud Computing"?

a)

It requires users to own hardware

b)

It allows users to access resources from anywhere with an internet connection

c)

It does not allow resource sharing

d)

It stores all data locally on a user's computer

111.

Which of the following is an example of a "Non-Volatile" memory?

a)

RAM

b)

Cache

c)

ROM

d)

Registers

112.

What is the main difference between "Stack" and "Queue" data structures?

a)

Stack follows FIFO, Queue follows LIFO

b)

Stack follows LIFO, Queue follows FIFO

c)

Stack stores data in a random order, Queue stores data sequentially

d)

There is no difference between them

113.

What is the primary purpose of the "Network Layer" in the OSI model?

a)

It handles end-to-end communication between devices

b)

It provides physical transmission of data

c)

It routes data packets between devices on different networks

d)

It ensures error-free transmission of data

114.

Which of the following protocols is used to establish a secure communication channel over the internet?

a)

FTP

b)

HTTP

c)

SSL/TLS

d)

IMAP

115.

Which of the following is a characteristic of "Agile" software development methodology?

a)

It follows a strict plan and avoids changes during development

b)

It emphasizes continuous collaboration and iterative progress

c)

It focuses solely on large-scale project management

d)

It requires complete documentation upfront

116.

Which of the following is an advantage of using a relational database management system (RDBMS)?

a)

It does not require schema definition

b)

It stores data as unstructured files

c)

It allows for efficient querying and data relationships

d)

It requires no indexing for faster access

117.

What does the term "cloud storage" refer to?

a)

Storing data locally on a physical disk

b)

Storing data on remote servers accessed via the internet

c)

Storing data on paper for offline use

d)

Using a hard drive for secure backup storage

118.

What is the primary function of an "API" (Application Programming Interface)?

a)

To process web pages

b)

To enable software applications to communicate with each other

c)

To store large datasets

d)

To compile software code into executable programs