NEW
Font size
WorksheetsDigital Information and Internet Quiz
Total questions: 40
Worksheet time: 20mins
Which of the following best describes a lossy compression algorithm?
It compresses data without losing any information.
It compresses data but some information is permanently removed.
It encrypts data for secure transmission.
It increases the size of data for error checking.
Which binary number represents the decimal number 13?
1100
1101
1011
1110
Which of the following is most likely to be stored using a lossless compression technique?
A photograph
A music file
A text document
A video clip
What is the advantage of using hexadecimal numbers in computing?
They are easier to type
They are slower to compute
They simplify long binary sequences
They reduce data loss
Which protocol ensures that packets are reliably transmitted across the internet?
IP
HTTP
TCP
DNS
What is the primary purpose of DNS?
To send packets
To secure web traffic
To convert IP addresses to URLs
To translate domain names into IP addresses
Which of these is the best explanation of how packets travel across the Internet?
They all follow the same fixed path
They are transmitted through a satellite directly to the destination
They are broken into pieces and may take different routes
They only travel on secure private networks
What role does an IP address play in internet communication?
It stores the contents of a website
It secures data through encryption
It identifies the physical device on a network
It formats text for web display
What is the output of the following code?
var x = 5;
x = x + 3;
console.log(x);
5
8
3
Error
Which of the following is a correct way to define a function in JavaScript?
function = myFunction()
def myFunction():
function myFunction() { ... }
myFunction -> function() {}
What does the if-else statement allow a program to do?
Repeat code
Make decisions based on conditions
Declare variables
Draw graphics
Consider the following code: var x = 2; var y = 3; console.log(x * y); What is the output?
5
6
23
x * y
Which of the following would NOT be a reason to use a loop?
Repeating an action multiple times
Reducing code duplication
Running code once
Improving efficiency
What is the purpose of parameters in a function?
They change how loops behave
They act as placeholders for inputs
They store global variables
They make debugging easier
Which of the following is an example of an abstraction in programming?
Writing detailed comments for every line
Using a function to encapsulate complex logic
Using a loop for a single task
Writing code without variables
Which of these best illustrates abstraction?
Using many specific instructions in your code
Creating a user interface without revealing code
Naming all variables as “x” or “y”
Avoiding the use of functions
What is the benefit of using functions in a program?
They prevent variables from working
They allow you to repeat logic without rewriting it
They slow down execution
They are required in all JavaScript programs
Which statement best describes how large datasets are used in decision-making?
They always produce correct results.
They replace the need for human input.
They reveal patterns and trends that inform choices.
They cannot be biased.
What is a possible drawback of algorithms trained on biased data?
They always run slowly.
They never reach a conclusion.
They produce biased or unfair results.
They require constant manual updating.
Which visualization would be most appropriate for showing the relationship between study time and test scores?
Line graph
Bar chart
Scatter plot
Pie chart
What does the term "digital divide" refer to?
The loss of data when compressing files
The gap between those with and without access to computing
The way encryption keys are shared
The limitations of cloud storage
Which of the following is an example of a phishing attack?
A virus that self-replicates
An email that tricks users into giving personal info
A firewall blocking unauthorized access
A website using HTTPS
What is a benefit of public key encryption?
Faster loading websites
It doesn't require passwords
Only one key is used for encryption and decryption
It allows secure communication over an open network
Which of the following is the most secure way to store passwords?
Plain text
Encrypted and hashed
On a sticky note
In a cookie
Which of the following actions is a cybersecurity best practice?
Using the same password for all accounts
Clicking on unknown email links
Updating software regularly
Disabling firewalls
In the development process, what is the purpose of testing and debugging?
To improve the UI
To reduce the number of features
To ensure the program behaves as expected
To remove user input
What is a key element of a computing innovation?
It must be a mobile app
It has a purpose that affects society or culture
It can only be used in business
It cannot involve hardware
Which of the following is NOT a step in the iterative development process?
Plan
Code
Ignore feedback
Test
In a team programming project, which of the following would help most with version control and collaboration?
Sending emails
Screen sharing
Using Git or another version control system
Having only one person do the coding
Which of the following best describes a simulation?
A program that analyzes biased data
A real-world event recreated using a computer model
A data table with random numbers
An exact copy of a physical system
Which best describes a Boolean condition in an if statement?
A loop structure
A mathematical equation
A condition that evaluates to true or false
A graphic element
What is the primary purpose of comments in code?
To slow down the program
To help the computer understand the code
To provide explanations for human readers
To encrypt code during execution
Which of the following is true about algorithm efficiency?
Slower algorithms are more accurate
Efficiency always increases with longer code
Efficient algorithms solve problems with fewer steps
More lines of code mean better performance
What is a Boolean expression?
A mathematical function
A statement that is either true or false
A type of string manipulation
A loop structure
What does a loop do in a program?
Repeats a section of code
Stops execution immediately
Adds variables together
Defines functions
What is the purpose of a variable in programming?
To make a program run faster
To create permanent storage
To store and update data values
To make graphics look better
Which concept allows a programmer to solve a large problem by breaking it into smaller, more manageable parts?
Loops
Selection
Abstraction
Debugging
What happens if you omit the break statement in a switch block in JavaScript?
Only the default case will execute
An error will occur
The program will crash
Execution will fall through to the next case
Which of the following best defines metadata?
Data about data
Data that is lost in transmission
Data sent through HTTPS
Binary data only
Which of the following statements about data bias is true?
Bias is only a problem in small datasets
Algorithms can reflect human biases
Bias is easily removed from all data
Bias has no impact on decision-making
