42. Algorithm - Binary Search Quiz
Passage
•
Computers
•
9th - 12th Grade
•
Medium
Andy Workman
Used 2+ times
FREE Resource
Enhance your content
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main advantage of binary search over linear search?
It is suitable for small number of items
It starts with the first item
It requires the data to be in order
It does not require any sorting
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In binary search, what happens if the item to be found is lower than the item at the midpoint?
Disregard all the items to the left of the midpoint
Disregard all the items to the right of the midpoint
Repeat the process on the left half of the data set
Repeat the process on the right half of the data set
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of the midpoint when the left pointer is 4 and the right pointer is 7?
7
5
6
3
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many checks would a linear search perform for a data set of 8 items?
3
8
5
7
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main disadvantage of binary search?
It does not require any sorting
It starts with the first item
It requires the data to be in order
It is not suitable for small number of items
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if the item to be found is greater than the item at the midpoint in binary search?
Repeat the process on the right half of the data set
Disregard all the items to the right of the midpoint
Repeat the process on the left half of the data set
Disregard all the items to the left of the midpoint
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main advantage of linear search over binary search?
It starts with the first item
It requires the data to be in order
It is suitable for small number of items
It does not require any sorting
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
14 questions
Linux: Users and Groups
Quiz
•
9th Grade - University
16 questions
Digital Icons
Quiz
•
12th Grade - University
10 questions
Empowerment Technologies Quiz 2
Quiz
•
11th Grade
10 questions
Review I-PM Ujikom Multimedia
Quiz
•
12th Grade
15 questions
Lesson 5 Looping Quiz
Quiz
•
10th - 12th Grade
10 questions
Powerpoint Quiz
Quiz
•
9th - 12th Grade
16 questions
Digital Citizen
Quiz
•
3rd Grade - University
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
18 questions
Artificial Intelligence and Machine Learning Quiz
Quiz
•
9th Grade
35 questions
Computer Terminology Exercise #1 ( Multiple Choice)
Quiz
•
9th Grade
20 questions
Computer Components Exercise #4 - CTEA
Quiz
•
9th - 12th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)
Quiz
•
9th Grade