wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Digital Information and Internet Quiz

Total questions: 40

Worksheet time: 20mins

Name
Class
Date
1.

Which of the following best describes a lossy compression algorithm?

a)

It compresses data without losing any information.

b)

It compresses data but some information is permanently removed.

c)

It encrypts data for secure transmission.

d)

It increases the size of data for error checking.

2.

Which binary number represents the decimal number 13?

a)

1100

b)

1101

c)

1011

d)

1110

3.

Which of the following is most likely to be stored using a lossless compression technique?

a)

A photograph

b)

A music file

c)

A text document

d)

A video clip

4.

What is the advantage of using hexadecimal numbers in computing?

a)

They are easier to type

b)

They are slower to compute

c)

They simplify long binary sequences

d)

They reduce data loss

5.

Which protocol ensures that packets are reliably transmitted across the internet?

a)

IP

b)

HTTP

c)

TCP

d)

DNS

6.

What is the primary purpose of DNS?

a)

To send packets

b)

To secure web traffic

c)

To convert IP addresses to URLs

d)

To translate domain names into IP addresses

7.

Which of these is the best explanation of how packets travel across the Internet?

a)

They all follow the same fixed path

b)

They are transmitted through a satellite directly to the destination

c)

They are broken into pieces and may take different routes

d)

They only travel on secure private networks

8.

What role does an IP address play in internet communication?

a)

It stores the contents of a website

b)

It secures data through encryption

c)

It identifies the physical device on a network

d)

It formats text for web display

9.

What is the output of the following code?

var x = 5;

x = x + 3;

console.log(x);

a)

5

b)

8

c)

3

d)

Error

10.

Which of the following is a correct way to define a function in JavaScript?

a)

function = myFunction()

b)

def myFunction():

c)

function myFunction() { ... }

d)

myFunction -> function() {}

11.

What does the if-else statement allow a program to do?

a)

Repeat code

b)

Make decisions based on conditions

c)

Declare variables

d)

Draw graphics

12.

Consider the following code: var x = 2; var y = 3; console.log(x * y); What is the output?

a)

5

b)

6

c)

23

d)

x * y

13.

Which of the following would NOT be a reason to use a loop?

a)

Repeating an action multiple times

b)

Reducing code duplication

c)

Running code once

d)

Improving efficiency

14.

What is the purpose of parameters in a function?

a)

They change how loops behave

b)

They act as placeholders for inputs

c)

They store global variables

d)

They make debugging easier

15.

Which of the following is an example of an abstraction in programming?

a)

Writing detailed comments for every line

b)

Using a function to encapsulate complex logic

c)

Using a loop for a single task

d)

Writing code without variables

16.

Which of these best illustrates abstraction?

a)

Using many specific instructions in your code

b)

Creating a user interface without revealing code

c)

Naming all variables as “x” or “y”

d)

Avoiding the use of functions

17.

What is the benefit of using functions in a program?

a)

They prevent variables from working

b)

They allow you to repeat logic without rewriting it

c)

They slow down execution

d)

They are required in all JavaScript programs

18.

Which statement best describes how large datasets are used in decision-making?

a)

They always produce correct results.

b)

They replace the need for human input.

c)

They reveal patterns and trends that inform choices.

d)

They cannot be biased.

19.

What is a possible drawback of algorithms trained on biased data?

a)

They always run slowly.

b)

They never reach a conclusion.

c)

They produce biased or unfair results.

d)

They require constant manual updating.

20.

Which visualization would be most appropriate for showing the relationship between study time and test scores?

a)

Line graph

b)

Bar chart

c)

Scatter plot

d)

Pie chart

21.

What does the term "digital divide" refer to?

a)

The loss of data when compressing files

b)

The gap between those with and without access to computing

c)

The way encryption keys are shared

d)

The limitations of cloud storage

22.

Which of the following is an example of a phishing attack?

a)

A virus that self-replicates

b)

An email that tricks users into giving personal info

c)

A firewall blocking unauthorized access

d)

A website using HTTPS

23.

What is a benefit of public key encryption?

a)

Faster loading websites

b)

It doesn't require passwords

c)

Only one key is used for encryption and decryption

d)

It allows secure communication over an open network

24.

Which of the following is the most secure way to store passwords?

a)

Plain text

b)

Encrypted and hashed

c)

On a sticky note

d)

In a cookie

25.

Which of the following actions is a cybersecurity best practice?

a)

Using the same password for all accounts

b)

Clicking on unknown email links

c)

Updating software regularly

d)

Disabling firewalls

26.

In the development process, what is the purpose of testing and debugging?

a)

To improve the UI

b)

To reduce the number of features

c)

To ensure the program behaves as expected

d)

To remove user input

27.

What is a key element of a computing innovation?

a)

It must be a mobile app

b)

It has a purpose that affects society or culture

c)

It can only be used in business

d)

It cannot involve hardware

28.

Which of the following is NOT a step in the iterative development process?

a)

Plan

b)

Code

c)

Ignore feedback

d)

Test

29.

In a team programming project, which of the following would help most with version control and collaboration?

a)

Sending emails

b)

Screen sharing

c)

Using Git or another version control system

d)

Having only one person do the coding

30.

Which of the following best describes a simulation?

a)

A program that analyzes biased data

b)

A real-world event recreated using a computer model

c)

A data table with random numbers

d)

An exact copy of a physical system

31.

Which best describes a Boolean condition in an if statement?

a)

A loop structure

b)

A mathematical equation

c)

A condition that evaluates to true or false

d)

A graphic element

32.

What is the primary purpose of comments in code?

a)

To slow down the program

b)

To help the computer understand the code

c)

To provide explanations for human readers

d)

To encrypt code during execution

33.

Which of the following is true about algorithm efficiency?

a)

Slower algorithms are more accurate

b)

Efficiency always increases with longer code

c)

Efficient algorithms solve problems with fewer steps

d)

More lines of code mean better performance

34.

What is a Boolean expression?

a)

A mathematical function

b)

A statement that is either true or false

c)

A type of string manipulation

d)

A loop structure

35.

What does a loop do in a program?

a)

Repeats a section of code

b)

Stops execution immediately

c)

Adds variables together

d)

Defines functions

36.

What is the purpose of a variable in programming?

a)

To make a program run faster

b)

To create permanent storage

c)

To store and update data values

d)

To make graphics look better

37.

Which concept allows a programmer to solve a large problem by breaking it into smaller, more manageable parts?

a)

Loops

b)

Selection

c)

Abstraction

d)

Debugging

38.

What happens if you omit the break statement in a switch block in JavaScript?

a)

Only the default case will execute

b)

An error will occur

c)

The program will crash

d)

Execution will fall through to the next case

39.

Which of the following best defines metadata?

a)

Data about data

b)

Data that is lost in transmission

c)

Data sent through HTTPS

d)

Binary data only

40.

Which of the following statements about data bias is true?

a)

Bias is only a problem in small datasets

b)

Algorithms can reflect human biases

c)

Bias is easily removed from all data

d)

Bias has no impact on decision-making