wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Coding Units 5-10

Total questions: 46

Worksheet time: 46mins

Name
Class
Date
1.


A photographer stores digital photographs on her computer. In this case the photographs are considered the data. Each photograph also includes multiple pieces of metadata including:

  • Date: The date the photograph was taken

  • Time: The time the photograph was taken

  • Location: The location where the photograph was taken

  • Device: Which camera the photo was taken with

Which of the following could the photographer NOT do based on this metadata?

a)

Filter photos to those taken in the last week

b)

Filter photos to those taken in a particular country

c)

Filter photos to those taken of buildings

d)

Filter photos to those taken with her favorite camera

2.


This question refers to the same collection of photos and their metadata described in the previous question.

Due to a computer error, the Time metadata for all of the photographs is accidentally set to the same time of day. The other pieces of metadata and the data itself are not affected by the error. Which of the following is MOST likely to be the result of this problem?

a)

The photographer will not be able to view any of the images

b)

The photographer will not be able to sort images by the date they were taken

c)

The photographer will not be able to filter to photographs taken in the morning

d)

The photographer will not be able to find images taken on the same date

3.

The mayor of a city is interested in learning what goals are most important for residents of the city. Members of her staff visit one of the many neighborhoods in the city and ask 20 residents to fill out a survey. The mayor is concerned that the survey may be biased and not accurately reflect the overall interests in her town. Which of the following strategies is MOST likely to address concerns about the data being biased or inaccurate

a)

Finding the same people surveyed previously to ask more detailed questions.

b)

Visiting the same neighborhood to collect more survey responses

c)

Visiting multiple new neighborhoods to collect more survey responses

d)

Having her staff collect the data using an app rather than paper surveys

4.


In which of the following situations would parallel systems MOST likely be used to help analyze data?

a)

Data analysis involving two or more columns of data

b)

Data analysis involving both string and numeric data

c)

Data analysis involving large datasets

d)

Data analysis that could result in two or more different types of visualizations

5.


A bank is developing an algorithm that will help them decide who to make loans to. As input the algorithm will consider information about the person applying for the loan and the amount of money requested, and as output the algorithm will decide whether the bank should give that loan.

The bank intends to develop the algorithm using machine learning techniques. The algorithm will be trained using data from past loan decisions made by human bankers.

Which of the following best describes whether this algorithm will include bias?

a)

The algorithm will not be biased because using machine learning eliminates human biases

b)

While the algorithm may be biased, the eventual decision made by the algorithm will not be

c)

The algorithm will likely reflect the human biases in the data used to train it

d)

Machine learning algorithms cannot be developed using biased data so if there is bias in the data it will be impossible to develop the algorithm

6.


A restaurant is interested in learning about the food preferences of people living nearby to the restaurant and intends to use survey data to help decide which new items to add to the menu. Which of the following is LEAST likely to be part of the process used to analyze the data?

a)

Cleaning a data visualization to remove unwanted patterns

b)

Iteratively creating visualizations to ask and answer new questions

c)

Cleaning data to remove inconsistencies

d)

Filtering the data to look at the responses from only certain groups

7.

A researcher is interested in learning more about the different kinds of plants growing in different areas of the state she lives in. The researcher creates an app that allows residents of the town to photograph plants in their area using a smartphone and record date, time, and location of the photograph. Afterwards the researcher will analyze the data to try to determine where different kinds of plants grow in the state.

Which of the following does this situation best demonstrate?

a)

Citizen science

b)

Crowdfunding

c)

Open data

d)

Machine Learning

8.


A town decides to publicize data it has collected about electricity usage around the city. The data is freely available for all to use and analyze in the hopes that it is possible to identify more efficient energy usage strategies.

Which of the following does this situation best demonstrate?

a)

Citizen science

b)

Crowdfunding

c)

Open data

d)

Machine Learning

9.

A job placement agency helps match job seekers with potential employers. The agency would like to design a simulation in order to help predict the likely job placement outcomes for job seekers based on historical trends and patterns. Which of the following is most likely to be a benefit of the simulation?

a)

The computer simulation will be able to include more details and complexity than the real-world job placement process

b)

The computer simulation could be used to test hypotheses about patterns in the job placement process that are costly or time consuming to observe in reality.

c)

The computer simulation will be able to precisely predict the real-world outcomes for each job seeker.

d)

The computer simulation will remove the bias that may arise in the real-world job placement process.

10.

var words = [“apple”, ”bug”, ”car”, ”dream”, ”ear”, “food”];

var filteredWords = [];

for (var i = 0; i < words.length; i++) {

var word = words[i]; if (word.length < 4) {

appendItem(filteredWords,word); } }

console.log(filteredWords);

If the program above is run, what will be displayed in the console?

a)

[apple, dream]

b)


[bug, car, ear]

c)


[bug, car, ear, food]

d)

[apple, dream, food]

11.

What will the following program display in the console?

for(var i = 0; i < 4; i++){

console.log(i);

}

a)

0 1 2 3

b)

0 1 2 3 4

c)

1 2 3

d)

1 2 3 4

12.

What will be displayed in the console when the following program runs?

var count = 0

while (count != 5){

console.log(count);

count = count + 2;

}

a)

0 2 4 6

b)

0 2 4

c)

2 4 6

d)


The program will result in an infinite loop

13.


What is one of the benefits of using a library in a program?

a)

simplifies creating a complex program

b)

increases development time

c)

removes all testing

d)

reduces abstractions in the program

14.
  • Includes a program as an integral part of its function. Can be physical (e.g. self-driving car), non-physical computing software (e.g. picture editing software), or non-physical computing concepts (e.g., e-commerce).

a)

computing innovation

b)
device
c)
application
d)
algorithm
15.

A technique that attempts to trick a user into providing personal information. That personal information can then be used to access sensitive online resources, such as bank accounts and emails.

a)
Malware
b)
Pharming
c)
Phishing
d)
Spoofing
16.
  • The use of a program to record every keystroke made by a computer user in order to gain fraudulent access to passwords and other confidential information.

a)

Keyrecording

b)

Keytracing

c)

Keyphishing

d)
Keylogging
17.
  • Software intended to damage a computing system or to take partial control over its operation.

a)
Spyware
b)
Malware
c)
Ransomware
d)
Firewall
18.
  • A wireless access point that gives unauthorized access to secure networks.

a)
Rogue access point
b)
Unauthorized gateway
c)
Intruder hotspot
d)
Illegitimate access point
19.
  • A process of encoding messages to keep them secret, so only "authorized" parties can read them.

a)
Encryption
b)
Deciphering
c)
Decryption
d)
Encoding
20.
  • A process that reverses encryption, taking a secret message and reproducing the original plain text.

a)
Decryption
b)
Obfuscation
c)
Unscrambling
d)
Encoding
21.
  • Involves one key for both encryption and decryption.

a)
Public Key Encryption
b)
Asymmetric Key Encryption
c)
Private Key Encryption
d)
Symmetric Key Encryption
22.
  • Pairs a public key for encryption and a private key for decryption. The sender does not need the receiver's private key to encrypt a message, but the receiver's private key is required to decrypt the message.

a)
Public key encryption
b)
Hashing algorithm
c)
Asymmetric key encryption
d)
Symmetric key encryption
23.

Protects a computing system against infection

a)
Firewall software
b)
Malware software
c)
Backup software
d)
Antivirus software
24.

A system that requires at least two steps to unlock protected information; each step adds a new layer of security that must be broken to gain unauthorized access

a)

Multi-factor authentication

b)
Two-step verification
c)
Multi-step verification
d)
Dual-factor authentication
25.

What method would be the best way to search for item in the list below?

a)

Linear search because a linear search can only be used to search a sorted list.

b)

Linear search because a linear search can be used to search any list.

c)

Binary search because a binary search can be used to search a sorted list.

d)

Binary search because a binary search can be used to search any list.

26.

Which of the following algorithmic efficiencies would be considered LEAST efficient?

a)

Linear

b)

  Constant

c)

Exponential

d)

  Polynomial  

27.

Which of the following best describes the existence of undecidable problems?

a)

Undecidable problems are problems for which more than one algorithm solves the problem and computer scientists have not yet chosen the algorithm they believe is best

 

 

b)

  Undecidable problems are problems for which an algorithm can be written that produces a correct output for all inputs but in an unreasonable time

c)

An undecidable problem is a problem for which no algorithm can be constructed that always produces a correct output

d)

Undecidable problems are problems for which an algorithm can be written that will produce the same output for at least two possible inputs

28.

A student wants to determine whether a certain problem is undecidable. Which of the following will demonstrate that the problem is undecidable?

a)

Show that for one instance of the problem, an algorithm can be written that is always capable of providing a correct yes-or-no answer.

b)

Show that for one instance of the problem, a heuristic is needed to write an algorithm that is capable of providing a correct yes-or-no answer.

c)

Show that for one instance of the problem, an algorithm that runs in unreasonable time can be written that is capable of providing a correct yes-or-no answer.

d)

Show that for one instance of the problem, no algorithm can be written that is capable of providing a correct yes-or-no answer.

29.
Putting commands in correct order so computers can read the commands is 
a)
algorithms
b)
selection
c)
sequencing
30.

Which phrase best defines an algorithm?

a)

exact list of clear steps

b)

random guessing until success

c)

picture of computer wires

d)

secret password saved offline

31.

Linear Search

a)

A search algorithm that checks each element of a list in order until the desired value is found or all elements have been checked.

b)

A search algorithm that divides the list into halves to find the desired value quickly.

c)

A search algorithm that uses a hash table to find the desired value in constant time.

d)

A search algorithm that sorts the list before searching for the desired value.

32.

Personally Identifiable Information (PPI)

a)

Information that is publicly available about an individual.

b)

Information about an individual that identifies, links, relates, or describes them.

c)

Information that is only available to government agencies.

d)

Information that is used for marketing purposes.

33.

List

a)

An ordered collection of elements.

b)

A random assortment of items.

c)

A collection of unique elements.

d)

A set of unordered items.

34.

Infinite Loop

a)

Occurs when the ending condition will never evaluate to true.

b)

Occurs when a loop runs for a fixed number of iterations.

c)

Occurs when a loop is terminated by a break statement.

d)

Occurs when a loop executes only once.

35.

Iteration

a)

A process that involves a single execution of an algorithm.

b)

A repetitive portion of an algorithm which repeats a specified number of times or until a given condition is met.

c)

A method of sorting data in a specific order.

d)

A technique used to optimize the performance of an algorithm.

36.

Library

a)

A collection of books and resources for reading.

b)

A group of functions (procedures) that may be used in creating new programs.

c)

A place where people go to borrow movies.

d)

A type of software used for managing databases.

37.

An individual item in a list that is assigned a unique index....

a)

Element

b)

Node

c)

Attribute

d)

Value

38.

The first item in a list has an index of .....

a)

-1

b)

1

c)

0

d)

2

39.

When the Boolean expression becomes false, the loop ______.

a)

Ends

b)

Continues

c)

Pauses

d)

Restarts

40.

A common method for referencing the elements in a list using numbers

a)

index

b)

pointer

c)

reference

d)

address

41.

WHILE loops are

a)

loops which run an unknown number of times

b)

loops which run for a specific number of times

c)

the same as if statements

d)

not part of programming

42.

What does the for loop allow us to do?

a)

Execute code an indefinite number of times

b)

Execute code based on user input

c)

Execute code a predetermined number of times

d)

Execute code only once

43.

Removes the element in the given list at the given index.

a)

removeItem(list, index)

b)

appendItem(list, item)

c)

insertItem(list, index, item)

d)

list.length-1

44.

Adds an element to the end of the list.

a)

removeItem(list, index)

b)

appendItem(list, item)

c)

insertItem(list, index, item)

d)

list.length-1

45.

Inserts an element into a list at the index given.

a)

removeItem(list, index)

b)

appendItem(list, item)

c)

insertItem(list, index, item)

d)

list.length-1

46.

wordList is a list of words that currently contains the values ["tree", "rock", "air"]

Which of the following lines will result in the list containing the values ["air", "rock", "air"]

a)

wordList[0] = wordList[2]

b)

wordList[2] = wordList[0]

c)

insertItem(wordList, 0, "air")

d)

removeItem(wordList,0)