wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Final Exam: Computer Science Principles

Total questions: 24

Worksheet time: 12mins

Name
Class
Date
1.

What is the time complexity of the binary search algorithm in the worst-case scenario?

a)

O(n)O(n)

b)

O(logn)O(\log n)

c)

O(n2)O(n^2)

d)

O(1)O(1)

2.

Which data structure is used to implement a LIFO (Last In, First Out) system?

a)

Queue

b)

Stack

c)

Linked List

d)

Tree

3.

In programming, what is the purpose of a loop?

a)

To execute a block of code once

b)

To execute a block of code multiple times

c)

To define a variable

d)

To terminate a program

4.

Which protocol is primarily used for sending emails?

a)

HTTP

b)

FTP

c)

SMTP

d)

TCP

5.

What is the main function of a firewall in cybersecurity?

a)

To encrypt data

b)

To block unauthorized access

c)

To store passwords

d)

To backup data

6.

Which of the following is a principle of data privacy?

a)

Data minimization

b)

Data duplication

c)

Data inflation

d)

Data obfuscation

7.

What is the impact of computing on employment?

a)

It only creates jobs

b)

It only eliminates jobs

c)

It both creates and eliminates jobs

d)

It has no impact on jobs

8.

Which of the following is an example of a high-level programming language?

a)

Assembly

b)

Machine Code

c)

Python

d)

Binary

9.

What is the primary purpose of the Domain Name System (DNS)?

a)

To translate IP addresses into domain names

b)

To translate domain names into IP addresses

c)

To store website data

d)

To secure internet connections

10.

Which of the following is a common method for protecting data privacy?

a)

Data sharing

b)

Data encryption

c)

Data deletion

d)

Data replication

11.

What is an algorithm?

a)

A programming language

b)

A step-by-step procedure for solving a problem

c)

A type of data structure

d)

A computer hardware component

12.

Which of the following is a characteristic of a secure password?

a)

It is short and simple

b)

It contains personal information

c)

It is long and complex

d)

It is the same for all accounts

13.

What is the role of an IP address in networking?

a)

To encrypt data

b)

To identify a device on a network

c)

To store data

d)

To create a user interface

14.

Which of the following is an ethical concern in computing?

a)

Data accuracy

b)

Data redundancy

c)

Data privacy

d)

Data compression

15.

What is the main advantage of using a recursive algorithm?

a)

It is always faster than iterative algorithms

b)

It simplifies code by reducing the need for loops

c)

It uses less memory

d)

It is easier to debug

16.

What is the primary function of a VPN in cybersecurity?

a)

To provide a secure connection over the internet

b)

To store data

c)

To increase internet speed

d)

To block ads

17.

Which of the following is a characteristic of a good algorithm?

a)

It is complex and hard to understand

b)

It is efficient and easy to implement

c)

It requires a lot of memory

d)

It is only applicable to one problem

18.

What is the main purpose of data encryption?

a)

To compress data

b)

To protect data from unauthorized access

c)

To duplicate data

d)

To delete data

19.

What is the function of an IP address in a network?

a)

To identify a device on a network

b)

To store data

c)

To create a user interface

d)

To encrypt data

20.

Which protocol is used to resolve domain names to IP addresses?

a)

HTTP

b)

DNS

c)

FTP

d)

SMTP

21.

What is the primary purpose of DNS caching?

a)

To secure DNS queries

b)

To increase the speed of domain name resolution

c)

To store website data permanently

d)

To translate IP addresses into domain names

22.

What is computing bias?

a)

A way to store data securely

b)

A type of computer virus

c)

A method to increase computing speed

d)

A tendency for algorithms to favor certain outcomes

23.

What is the digital divide?

a)

A programming language

b)

The gap between those who have access to digital technology and those who do not

c)

A type of computer network

d)

A method of data encryption

24.

Which of the following is a consequence of the digital divide?

a)

Limited access to technology for certain groups

b)

Equal job opportunities in tech fields

c)

Universal internet access

d)

Increased access to online education for all