What is the main advantage of binary search over linear search?
42. Algorithm - Binary Search Quiz

Passage
•
Computers
•
9th - 12th Grade
•
Medium
Andy Workman
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
14 questions
Y10D/Computer Science GCSE - Algorithms - Linear & Binary

Quiz
•
10th Grade
12 questions
Search Algorithms

Quiz
•
9th - 11th Grade
10 questions
Sorting and searching algorithms

Quiz
•
12th Grade
10 questions
CS Edexcel 1.2c - Linear and Binary Search

Quiz
•
9th - 10th Grade
10 questions
Search and Sorting Algorithms

Quiz
•
12th Grade
15 questions
AQA Computer Science GCSE - 3.1 Fundamentals of algorithms

Quiz
•
10th - 12th Grade
10 questions
Search Algorithms

Quiz
•
9th - 12th Grade
16 questions
Searching and Sorting Algorithms

Quiz
•
9th - 10th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University