wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Unit 5 - Implementing Algorithms Review

Total questions: 86

Worksheet time: 1hrs 18mins

Name
Class
Date
1.
What is the main disadvantage of a binary search compared to a linear search?
a)
It requires the data to be in order
b)
It requires more memory
c)
It does not execute as quickly with larger data sets
d)
Not all CPUs are capable of executing the algorithm
2.
Consider this list of numbers L: 3 4 5 6 7 8 9. Which number would be checked first in a binary search?
a)
6
b)
3
c)
9
d)
4
3.

A problem solving approach (algorithm) to find a satisfactory solution where finding an optimal or exact solution is impractical or impossible.

a)

Heuristic

b)

Hexadecimal

c)

algorithm

d)

metadata

4.

Data that describes other data. For example, a digital image may include ________ that describe the size of the image, number of colors, or resolution.

a)

Heuristic

b)

Hexadecimal

c)

algorithm

d)

metadata

5.

A measure of how many steps are needed to complete an algorithm.

a)

Problem

b)

Algorithm

c)

Pseudocode

d)

Efficiency

6.

Any algorithm whose efficiency includes a n2, n3, n4n^2,\ n^3,\ n^4  … is called ___________.

a)

Problem

b)

Polynomial

c)

Pseudocode

d)

Efficiency

7.

Any algorithm whose efficiency includes an 2n, 3n, 4n2^n,\ 3^n,\ 4^n  

… is called ______________.

a)

Problem

b)

Polynomial

c)

Exponential

d)

Efficiency

8.

Algorithms with a polynomial efficiency or lower (constant, linear, square, cube, etc.) are said to run in a reasonable amount of time.

a)

Reasonable Time

b)

Unreasonable Time

9.

Algorithms with exponential or factorial efficiencies are examples of algorithms that run in an unreasonable amount of time.

a)

Reasonable Time

b)

Unreasonable Time

10.

Provides a "good enough" solution to a problem when an actual solution is impractical or impossible.

a)

Heuristic

b)

Undecidable Problem

c)

Unreasonable Time

d)

Reasonable Time

11.

A problem for which no algorithm can be constructed that is always capable of providing a correct yes-or-no answer.

a)

Heuristic

b)

Undecidable Problem

c)

Unreasonable Time

d)

Reasonable Time

12.

The time used to complete a task sequentially divided by the time to complete a task in parallel

a)

Sequential Computing

b)

Parallel Computing

c)

Distributed Computing

d)

Speedup

13.

Programs are broken into small pieces, some of which are run simultaneously.

a)

Sequential Computing

b)

Parallel Computing

c)

Distributed Computing

d)

Speedup

14.

Programs run in order, one command at a time.

a)

Sequential Computing

b)

Parallel Computing

c)

Distributed Computing

d)

Speedup

15.
 Identify the description of a linear search 
a)
Put the elements in order, check each item in turn 
b)
Put the elements in order, compare to the middle value, split the list in order and repeat 
c)
Elements do not need to be in order, check each item in turn 
d)
Elements do not need to be in order, compare to the middle value, split the list in order and repeat 
16.
 Identify the description of a binary search 
a)
Put the elements in order, check each item in turn 
b)
Put the elements in order, compare to the middle value, split the list in order and repeat 
c)
Elements do not need to be in order, check each item in turn 
d)
Elements do not need to be in order, compare to the middle value, split the list in order and repeat 
17.

Which comes first, the model or the simulation?

a)

The two are unrelated and can be created in any order.

b)

They are created at the same time because they are pretty much the same thing.

c)

The model is created first because a simulation needs models to run.

18.

Why do scientists use models?

a)

To test many possible ideas to find solutions to difficult questions.

b)

So that the object they are looking at can become real.

c)

So they can have a smaller object to look at.

19.

Why do we use simulations?

a)

To create virtual reality games.

b)

So people can learn something.

c)

To test an idea in a controlled environment.

d)

All of the above.

20.

What is a simulation and why are they used?

a)

A simulation is a giant model in motion for a test.

b)

A simulation uses one or more models to imitate how those models might function in a real life situation.

c)

A simulation tests a hypothesis with 100% accuracy.

21.
Which of the following is a limitation of using a model to study something?
a)
A model cannot represent a thing exactly.
b)
A model cannot help study things that are dangerous.
c)
A model cannot reproduce things that are too far away.
d)
a model cannot show things that are too small or too large.
22.
All of the statements below are correct except one. Mark the one that is incorrect.
a)
Models must be exactly like what is being modeled.
b)
Models communicate information.
c)
Models can be constructed.
d)
Models can be drawings with labels.
23.
True or False--A model can never be revised.
a)
true
b)
false
24.

Models can be helpful in scientific investigations because

a)

it may not be possible to work with the real thing.

b)

they can be smaller and more manageable than the real thing.

c)

they can be safer to work with than the real thing.

d)

all of the above

25.

If one site fails in distributed system then ___________

a)

a) the remaining sites can continue operating

b)

b) all the sites will stop working

c)

c) directly connected sites will stop working

d)

d) none of the mentioned

26.

In order to search through very large data sets, computer programs are created to analyze the data. These programs search for patterns in the data.

Which of the following is NOT a scenario in which you would need this type of computer program to search for patterns involving multiple variables?

a)

An online clothing store needs to analyze the products that customers are viewing and suggest other items they might be interested in.

b)

A video hosting site needs to analyze the views for all videos and create a list of the top ten most viewed videos.

c)

A credit card company needs to analyze data to ensure that they can identify fraudulent charges and freeze the credit card before more damage can be done.

d)

A grocery store needs to analyze the items purchased by customers and print out coupons for items they may also be interested in.

27.

What is data?

I. Computer readable information

II. Information collected about the physical world

III. Programs that process images

IV. Graphs and charts

a)

II and IV

b)

I and II

c)

I, II, and IV

d)

I, II, III, and IV

28.

Which of the following statements is NOT a benefit of using computers to process data?

a)

People can use computers to find patterns in data and make predictions

b)

Computers help people visualize data so that it is easy to extract useful information

c)

Websites can spy on people and gather large amounts of personal data without the user knowing

d)

Computers are able to easily process, manipulate, and display large amounts of data in a short amount of time

29.

Which of the following statements is true about data visualizations?

a)

Visualizing data has only been possible since computers have become widespread.

b)

Visualizations take many forms, from tables to charts to images.

c)

There is always one exact visualization that should be used to show a particular aspect of a dataset.

d)

The only way to extract information from data is by using a visualization.

30.

In which of the following would a chart BEST help to accomplish the accompanying task described?

a)

You want to track the number of times you say “hello” today

b)

Your school wants to track how many people attend the football games over time throughout the school year

c)

You are trying to figure out what happens when different colors are mixed

d)

You need instructions on how to bake a cake

31.

What is misleading about this visualization?

a)

The Y Axis is upside down, so larger values are at the bottom and smaller values are at the top

b)

The Y Axis is truncated and not labeled, making the larger bar appear 4 times as large as the smaller bar when it’s really only a 7% increase

c)

The chart is omitting data from 2010

d)

The chart makes it seem like more people working full time causes more people to be on welfare, when really the two might not be related.

32.

Which of the following statements are true about using visualizations to display a dataset?

I. Visualizations are visually appealing, but don’t help the viewer understand relationships that exist in the data

II. Visualizations like graphs, charts, or visualizations with pictures are useful for conveying information, while tables just filled with text are not useful.

III. Patterns that exist in the data can be found more easily by using a visualization

a)

I and II

b)

II and III

c)

III only

d)

I, II, and III

33.

Shown here is the google search trend data for the search term “flu vaccine”. What can we reasonably concluded from this visualization?

a)

Exactly 100 people had a flu vaccine in October 2009

b)

The highest interest in flu vaccines occurs in October each year, and will likely continue to occur in October in future years

c)

The highest number of flu infections happened in 2009

d)

Taking vitamin B-12 can help reduce your risk of catching the flu

34.

Which of the following are ways that data is collected about you:

I - Websites store data that tracks how you use the website

II - Websites store cookies in your browser so that the next time you visit the website things like your profile login and recent activity are saved

III - Some apps store geolocation information from your phone to track your location

IV - Transaction data is stored by credit card companies when you purchase things with a credit card

a)

I only

b)

II only

c)

I, II, III, and IV

d)

I, II, and IV

35.

News reporting agencies often want to find the public’s opinion on current events. One particular agency is considering two different strategies to collect this data by collecting responses to online surveys. The two strategies are outlined below.

Strategy One:

1. Uses a database to store all of the survey responses

2. Stores some data as text and some data as numbers

3. Will track extra information about the survey taker that won’t be publicly visible

Strategy Two

1. Uses a single spreadsheet to store all of the survey responses

2. Stores all data as numbers

3. Will not track any information other than the survey responses

Which of the following statements is the most accurate comparison of these strategies?

a)

Strategy One will make it easier to sort and filter the data, while Strategy Two will make it easier to graph the data

b)

Strategy One will cause problems because of the mixed data types, while Strategy Two will make it very easy to find specific data.

c)

Strategy One will allow the agency to conclude more about the public’s opinion because it tracks extra metadata, while Strategy Two will make it hard to find trends and access particular pieces of the data.

d)

Strategy One will require less cleaning and manipulation of the data, while Strategy Two will require a significant amount of extra computation to use the data.

36.

What type of graph shows change over time?

a)
b)
c)
d)
37.

raw data with no connections and/or relationships among data detected - usually requires large amounts of storage

a)

data collection

b)

structured data

c)

unstructured data

d)

cloud computing

38.

data that is organized in some fashion - uses relatively smaller storage

a)

big data

b)

structured data

c)

unstructured data

d)

cloud computing

39.

data that is capable of being used -- data that has been processed so that it can be analyzed or used in its current form

a)

curation of information

b)

big data

c)

usable data

d)

useful data

40.

someone can use the data to make predictions, describe some process or solve a problem

a)

machine learning

b)

big data

c)

usable data

d)

useful data

41.
Spreadsheets and databases are examples of software tools that allow us to process Big Data.
a)
True
b)
False
42.

What is metadata?

a)

loss in quality between copies of data (relates to analog data)

b)

data can be used to make predictions or solve a problem

c)

collection of data organized and retrieved in various ways between database tables

d)

descriptive data about an image, web page, or other complex object

43.

Selecting certain people to be interviewed is

a)

Bias through selection and omission

b)

Bias through placement

c)

Bias through source control

d)

Bias through crowd counts

44.

from the picture, what kind of programming is it?

a)

Traditional Programming

b)

Machine Learning

c)

Modern Programming

d)

Traditional Learning

45.

from the picture, what kind of programming is it?

a)

Traditional Programming

b)

Modern Programming

c)

Machine Learning

d)

Traditional Learning

46.

Which of the following is not type of learning?

a)

Semi-unsupervised Learning

b)

Unsupervised Learning

c)

Supervised Learning

d)

Reinforcement Learning

47.

What type of machine learning algorithm makes predictions when you have a set of input data and you know the possible responses?

a)

Unsupervised

b)

Reinforcement

c)

Supervised

d)

Deep Learning

48.

Bias is:

a)

Error that results from inaccurate assumptions in model training

b)

Error that occurs when the model is too sensitive to the training data

49.

A time stamp indicates the date and time that a measurement was taken. A data scientist has a list containing 1,000 time stamps, sorted in chronological order. Which of the following is closest to the maximum number of values that will need to be examined when performing a binary search for a value in the list?

a)

1

b)

10

c)

100

d)

1000

50.

A time stamp indicates the date and time that a measurement was taken. A data scientist has a list containing 500 time stamps, sorted in chronological order. Which of the following is closest to the maximum number of values that will need to be examined when performing a binary search for a value in the list?

a)

2

b)

5

c)

9

d)

10

51.

Location data, time and the date, is captured from a tracker on ships, which one could NOT be answered with this Data?

a)

How many miles were traveled in a week?

b)

Does the ship sail to the same places other ships do?

c)

What ports does the ship go to normally?

d)

Does the ship change course to avoid the weather?

52.

If you have similar data from many different sources, what might be the most likely challenge in combining data?

a)

Computers can't combine different data

b)

There's just too much data to handle

c)

Data from different sources isn't formatted the same way

d)

Not enough processing power

53.

What problem might you have if you quiz someone on US states and want to autograde it accurately?

a)

Typos/abbreviations

b)

They might do it too slowly

c)

They might use a fake state

d)

They might not type anything at all

54.

Which of the following would NOT be considered cleaning data.

a)

Categorizing typed answers

b)

Fixing typos / capitalization

c)

Manipulating data so covid numbers look better

d)

Removing invalid data

e)

Removing outlier data

55.

A school conducted a survey about how student get to school. Data shown in table.


Which column is data will likely be most difficult to visualize or analyze?

a)

How Travel

b)

How Long

c)

Time Arrive

d)

Biggest Challenges

56.

By giving a computer lots of images of cancer cells and non cancer cells, so it can create an algorithm to detect cancer. This is an example of.

a)

Crowdsourcing

b)

Machine Learning

c)

Data Cleaning

d)

Metadata

57.

a collection of data organized and retrieved in various ways between database tables

a)

relational database

b)

array

c)

unstructured data

d)

data collection

58.

data that is capable of being used -- data that has been processed so that it can be analyzed or used in its current form

a)

curation of information

b)

big data

c)

usable data

d)

useful data

59.

someone can use the data to make predictions, describe some process or solve a problem

a)

machine learning

b)

big data

c)

usable data

d)

useful data

60.

DATA or Metadata?

Example: a financial record of donations to a charity.


check all that would be probable metadata in the record.

a)

dollar amount of the contribution

b)

method of contribution (check, cash, credit card)

c)

name of person making donation

d)

date of donation

e)

how many donuts the charity orders each year.

61.

DATA or Metadata?

Example: a list of popular websites


check all that would be probable metadata in the list.

a)

url of the website

b)

when the website first appeared

c)

how many total visitors the website has had

d)

how many visits the website has had in the last week

e)

whether MR. Schlamann likes the website or not

62.

DATA or Metadata?

Example: a log of phone calls on your phone


check all that would be probable metadata in the log.

a)

phone number that was dialed

b)

when the phone call was made

c)

duration of the call

d)

what was said during the call

e)

whether the call was an incoming or outgoing call

63.

DATA or Metadata?

Example: an image file


the geo Tag that stores where the picture was taken

a)

data

b)

metadata

64.

Which of the following is true of algorithms?

a)

Algorithms may have an infinite set of instructions

b)

Algorithms must be expressed using a programming language

c)

Every algorithm can be constructed using combinations of sequencing, selection, and iteration

d)

Every problem can be solved with an algorithm

65.

This graph shows the efficiencies of two different algorithms that solve the same problem. Which of the following is most efficient?

a)

These algorithms are equally efficient

b)

Algorithm A is more efficient than algorithm B

c)

Algorithm B is more efficient than algorithm A

d)

The algorithms have different efficiencies depending on the input size

66.

A school is creating class schedules for its students. The students submit their requested courses and then a program will be designed to find the optimal schedule for all students.

The school has determined that finding the absolute best schedule cannot be solved in a reasonable time. Instead they have decided to use a simpler algorithm that produces a good but non-optimal schedule in a more reasonable amount of time.

Which principle does this decision best demonstrate?

a)

Unreasonable algorithms may sometimes also be undecidable

b)

Heuristics can be used to solve some problems for which no reasonable algorithm exists

c)

Two algorithms that solve the same problem must also have the same efficiency

d)

Approximate solutions are often identical to optimal solutions

67.

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

a)

Linear

b)

Constant

c)

Polynomial

d)

Exponential

68.

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 will produce the same output for at least two possible inputs

c)

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

d)

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

69.

Speedup is when programs run in order, one command at a time.

a)

True

b)

False

70.

Sequential computing is a type of computation where many calculations are carried out simultaneously.

a)

True

b)

False

71.

A computer scientist is analyzing four different algorithms used to sort a list. The table below shows the number of steps each algorithm took to sort lists of different sizes.


Based on the values in the table, which of the algorithms appear to run in reasonable time?

a)

A

b)

B

c)

C

d)

D

72.

For which of the following situations would it be best to use a heuristic in order to find a solution that runs in a reasonable amount of time?

a)

Appending a value to a list of n

elements, which requires no list elements be examined.

b)

Finding the fastest route that visits every location among n

locations, which requires n!

possible routes be examined.

c)

Performing a binary search for a score in a sorted list of n

scores, which requires that fewer than n

scores be examined.

d)

Performing a linear search for a name in an unsorted database of n

people, which requires that up to n

entries be examined.

73.

Which of the following companies uses algorithms in their software?

a)
b)
c)
d)
e)

All of These

74.

Which of the following is the correct formula for speedup?

a)

speedup = sequential run time parallel run timespeedup\ =\ \frac{sequential\ run\ time\ }{parallel\ run\ time}

b)

speedup = parallel  run  timesequential  run  timespeedup\ =\ \frac{parallel\ \ run\ \ time}{sequential\ \ run\ \ time}

c)

speedup = sequetntial  run  time ×parallel  run  timespeedup\ =\ sequetntial\ \ run\ \ time\ \times parallel\ \ run\ \ time

d)

speedup = parallel  run  time + sequential  run  timespeedup\ =\ parallel\ \ run\ \ time\ +\ sequential\ \ run\ \ time

75.

True or False?

Parallel computing uses multiple computers, each containing multiple processors.

a)

True

b)

False

76.

Which type of computing system will take as long as the sum of all the individual steps?

a)

Distributed Computing

b)

Parallel Computing

c)

Multiple Computing

d)

Sequential Computing

77.

Parallel computing can consist of which types of components? (Select 2 answers)

a)

Parallel components

b)

Distributed components

c)

Calcuolatory components

d)

Sequential components

78.

True or False?

In a parallel computing system, the process will take as long as the longest task.

a)

True

b)

False

79.

Complex problems that take up a large amount of computer storage would best be solved by...?

a)

Central processing units (CPU)

b)

Distributed computing

c)

Graphics processing units (GPU)

d)

Parallel computing

80.

A parallel computing system has two processors. What is the minimum amount of time to run the processes listed above?

a)

30 seconds

b)

40 seconds

c)

60 seconds

d)

70 seconds

81.

Which types of computing can process more than 1 task at a time?

a)

Distributed computing

b)

Sequential computing

c)

Parallel computing

82.

Fill in the blank.

Most modern computers have _________.

a)

No processors

b)

A single processor

c)

Multiple processors

83.

A computer has a single CPU. How long does it take to execute the tasks listed above?

a)

40 seconds

b)

80 seconds

c)

60 seconds

d)

90 seconds

84.

How long does a parallel computing solution take?

a)

As long as all of the sequential tasks

b)

The time of all the sequential tasks, plus the longest parallel task

c)

The time of all the parallel tasks

d)

The time of all the parallel tasks, plus the longest sequential task

85.

A program running in series takes 20 seconds to scan 10 files for viruses. The same program running in parallel takes 2 seconds to scan 10 files. What is the speedup for the parallel program?

(a)  

86.

True or false?

The efficiency of parallel computing will always be limited by the sequential portion of the task.

a)

True

b)

False