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

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Stem Resources
Used 70+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
True
False
Answer explanation
False.
Speedup is the time used to complete a task sequentially divided by the time to complete the task in parallel. Sequential Computing is when programs run in order, one command at a time.
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Sequential computing is a type of computation where many calculations are carried out simultaneously.
True
False
Answer explanation
False. Parallel computing is a type of computation where many calculations are carried out simultaneously.
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
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
B
C
D
Answer explanation
As the size of the list grows, the number of steps needed to sort the list grows at a linear rate, as the number of steps is equal to 10n
10n for a list of size n
n. This is an example of a polynomial efficiency and indicates that the algorithm runs in a reasonable amount of time.
The number of steps for this algorithm is equal to the length of the list squared, as the number of steps is equal to n
2
n2 for a list of size n
n. This is an example of a polynomial efficiency and indicates that the algorithm runs in a reasonable amount of time.
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is a type of diagram that shows the sequence of steps in an algorithm?
flow chart
pie chart
bar graph
line graph
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which algorithm will be most useful to guess the number that someone has in their head spanning from 1-100?
linear search
binary search
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
If one would like to read through a large list of names and read every name on the list, which big O notation would you use?
O(log n)
O(n)
O(nlog n)
O(n!)
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A sorted list of numbers contains 200 elements. Which of the following is closest to the maximum number of list elements that will need to be examined when performing a binary search for a particular value in the list?
5
8
100
200
Answer explanation
The binary search algorithm starts at the middle of the sorted list and repeatedly eliminates half the elements until the desired value is found or all the elements have been eliminated. For a list with 200 elements, the list will be cut in half a maximum of 7 times (with a total of 8 elements examined). The list starts with 200 elements, then is reduced to 100 elements, then to 50 elements, then to 25 elements, then to 12 elements, then to 6 elements, then to 3 elements, and then, finally, to 1 element.
Create a free account and access millions of resources
Similar Resources on Quizizz
9 questions
Merge sort | Starter Quiz | Oak National Academy

Quiz
•
9th Grade - University
10 questions
Python Lists

Quiz
•
8th - 9th Grade
10 questions
Study Guide - More Advanced Java

Quiz
•
11th - 12th Grade
10 questions
Xб_сор

Quiz
•
9th - 12th Grade
15 questions
GCSE - 2.3 Producing Robust Programs

Quiz
•
9th - 11th Grade
12 questions
GCSE Computing Flash Quiz

Quiz
•
10th - 11th Grade
7 questions
AP Comp (POP Quiz)

Quiz
•
9th - 12th Grade
11 questions
СОЧ-2, 10 класс Информатика 2 вариант

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade