NEW
Font size
WorksheetsCoding Units 5-10
Total questions: 46
Worksheet time: 46mins
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?
Filter photos to those taken in the last week
Filter photos to those taken in a particular country
Filter photos to those taken of buildings
Filter photos to those taken with her favorite camera
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?
The photographer will not be able to view any of the images
The photographer will not be able to sort images by the date they were taken
The photographer will not be able to filter to photographs taken in the morning
The photographer will not be able to find images taken on the same date
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
Finding the same people surveyed previously to ask more detailed questions.
Visiting the same neighborhood to collect more survey responses
Visiting multiple new neighborhoods to collect more survey responses
Having her staff collect the data using an app rather than paper surveys
In which of the following situations would parallel systems MOST likely be used to help analyze data?
Data analysis involving two or more columns of data
Data analysis involving both string and numeric data
Data analysis involving large datasets
Data analysis that could result in two or more different types of visualizations
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?
The algorithm will not be biased because using machine learning eliminates human biases
While the algorithm may be biased, the eventual decision made by the algorithm will not be
The algorithm will likely reflect the human biases in the data used to train it
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
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?
Cleaning a data visualization to remove unwanted patterns
Iteratively creating visualizations to ask and answer new questions
Cleaning data to remove inconsistencies
Filtering the data to look at the responses from only certain groups
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?
Citizen science
Crowdfunding
Open data
Machine Learning
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?
Citizen science
Crowdfunding
Open data
Machine Learning
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?
The computer simulation will be able to include more details and complexity than the real-world job placement process
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.
The computer simulation will be able to precisely predict the real-world outcomes for each job seeker.
The computer simulation will remove the bias that may arise in the real-world job placement process.
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?
[apple, dream]
[bug, car, ear]
[bug, car, ear, food]
[apple, dream, food]
What will the following program display in the console?
for(var i = 0; i < 4; i++){
console.log(i);
}
0 1 2 3
0 1 2 3 4
1 2 3
1 2 3 4
What will be displayed in the console when the following program runs?
var count = 0
while (count != 5){
console.log(count);
count = count + 2;
}
0 2 4 6
0 2 4
2 4 6
The program will result in an infinite loop
What is one of the benefits of using a library in a program?
simplifies creating a complex program
increases development time
removes all testing
reduces abstractions in the program
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).
computing innovation
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.
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.
Keyrecording
Keytracing
Keyphishing
Software intended to damage a computing system or to take partial control over its operation.
A wireless access point that gives unauthorized access to secure networks.
A process of encoding messages to keep them secret, so only "authorized" parties can read them.
A process that reverses encryption, taking a secret message and reproducing the original plain text.
Involves one key for both encryption and decryption.
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.
Protects a computing system against infection
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
Multi-factor authentication
What method would be the best way to search for item in the list below?
Linear search because a linear search can only be used to search a sorted list.
Linear search because a linear search can be used to search any list.
Binary search because a binary search can be used to search a sorted list.
Binary search because a binary search can be used to search any list.
Which of the following algorithmic efficiencies would be considered LEAST efficient?
Linear
Constant
Exponential
Polynomial
Which of the following best describes the existence of undecidable problems?
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
Undecidable problems are problems for which an algorithm can be written that produces a correct output for all inputs but in an unreasonable time
An undecidable problem is a problem for which no algorithm can be constructed that always produces a correct output
Undecidable problems are problems for which an algorithm can be written that will produce the same output for at least two possible inputs
A student wants to determine whether a certain problem is undecidable. Which of the following will demonstrate that the problem is undecidable?
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.
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.
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.
Show that for one instance of the problem, no algorithm can be written that is capable of providing a correct yes-or-no answer.
Which phrase best defines an algorithm?
exact list of clear steps
random guessing until success
picture of computer wires
secret password saved offline
Linear Search
A search algorithm that checks each element of a list in order until the desired value is found or all elements have been checked.
A search algorithm that divides the list into halves to find the desired value quickly.
A search algorithm that uses a hash table to find the desired value in constant time.
A search algorithm that sorts the list before searching for the desired value.
Personally Identifiable Information (PPI)
Information that is publicly available about an individual.
Information about an individual that identifies, links, relates, or describes them.
Information that is only available to government agencies.
Information that is used for marketing purposes.
List
An ordered collection of elements.
A random assortment of items.
A collection of unique elements.
A set of unordered items.
Infinite Loop
Occurs when the ending condition will never evaluate to true.
Occurs when a loop runs for a fixed number of iterations.
Occurs when a loop is terminated by a break statement.
Occurs when a loop executes only once.
Iteration
A process that involves a single execution of an algorithm.
A repetitive portion of an algorithm which repeats a specified number of times or until a given condition is met.
A method of sorting data in a specific order.
A technique used to optimize the performance of an algorithm.
Library
A collection of books and resources for reading.
A group of functions (procedures) that may be used in creating new programs.
A place where people go to borrow movies.
A type of software used for managing databases.
An individual item in a list that is assigned a unique index....
Element
Node
Attribute
Value
The first item in a list has an index of .....
-1
1
0
2
When the Boolean expression becomes false, the loop ______.
Ends
Continues
Pauses
Restarts
A common method for referencing the elements in a list using numbers
index
pointer
reference
address
WHILE loops are
loops which run an unknown number of times
loops which run for a specific number of times
the same as if statements
not part of programming
What does the for loop allow us to do?
Execute code an indefinite number of times
Execute code based on user input
Execute code a predetermined number of times
Execute code only once
Removes the element in the given list at the given index.
removeItem(list, index)
appendItem(list, item)
insertItem(list, index, item)
list.length-1
Adds an element to the end of the list.
removeItem(list, index)
appendItem(list, item)
insertItem(list, index, item)
list.length-1
Inserts an element into a list at the index given.
removeItem(list, index)
appendItem(list, item)
insertItem(list, index, item)
list.length-1
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"]
wordList[0] = wordList[2]
wordList[2] = wordList[0]
insertItem(wordList, 0, "air")
removeItem(wordList,0)
