NEW
Font size
WorksheetsFinal Exam: Computer Science Principles
Total questions: 24
Worksheet time: 12mins
What is the time complexity of the binary search algorithm in the worst-case scenario?
O(n)
O(logn)
O(n2)
O(1)
Which data structure is used to implement a LIFO (Last In, First Out) system?
Queue
Stack
Linked List
Tree
In programming, what is the purpose of a loop?
To execute a block of code once
To execute a block of code multiple times
To define a variable
To terminate a program
Which protocol is primarily used for sending emails?
HTTP
FTP
SMTP
TCP
What is the main function of a firewall in cybersecurity?
To encrypt data
To block unauthorized access
To store passwords
To backup data
Which of the following is a principle of data privacy?
Data minimization
Data duplication
Data inflation
Data obfuscation
What is the impact of computing on employment?
It only creates jobs
It only eliminates jobs
It both creates and eliminates jobs
It has no impact on jobs
Which of the following is an example of a high-level programming language?
Assembly
Machine Code
Python
Binary
What is the primary purpose of the Domain Name System (DNS)?
To translate IP addresses into domain names
To translate domain names into IP addresses
To store website data
To secure internet connections
Which of the following is a common method for protecting data privacy?
Data sharing
Data encryption
Data deletion
Data replication
What is an algorithm?
A programming language
A step-by-step procedure for solving a problem
A type of data structure
A computer hardware component
Which of the following is a characteristic of a secure password?
It is short and simple
It contains personal information
It is long and complex
It is the same for all accounts
What is the role of an IP address in networking?
To encrypt data
To identify a device on a network
To store data
To create a user interface
Which of the following is an ethical concern in computing?
Data accuracy
Data redundancy
Data privacy
Data compression
What is the main advantage of using a recursive algorithm?
It is always faster than iterative algorithms
It simplifies code by reducing the need for loops
It uses less memory
It is easier to debug
What is the primary function of a VPN in cybersecurity?
To provide a secure connection over the internet
To store data
To increase internet speed
To block ads
Which of the following is a characteristic of a good algorithm?
It is complex and hard to understand
It is efficient and easy to implement
It requires a lot of memory
It is only applicable to one problem
What is the main purpose of data encryption?
To compress data
To protect data from unauthorized access
To duplicate data
To delete data
What is the function of an IP address in a network?
To identify a device on a network
To store data
To create a user interface
To encrypt data
Which protocol is used to resolve domain names to IP addresses?
HTTP
DNS
FTP
SMTP
What is the primary purpose of DNS caching?
To secure DNS queries
To increase the speed of domain name resolution
To store website data permanently
To translate IP addresses into domain names
What is computing bias?
A way to store data securely
A type of computer virus
A method to increase computing speed
A tendency for algorithms to favor certain outcomes
What is the digital divide?
A programming language
The gap between those who have access to digital technology and those who do not
A type of computer network
A method of data encryption
Which of the following is a consequence of the digital divide?
Limited access to technology for certain groups
Equal job opportunities in tech fields
Universal internet access
Increased access to online education for all
