What is a binary search algorithm primarily used for?

Big Idea Part 3

Quiz
•
Computers
•
12th Grade
•
Hard
Amy Austin
FREE Resource
56 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To add elements to a list
To halve the number of elements that need to be searched after every comparison
To sort a list
To double the number of elements in a search
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a necessary condition for a list to be searched using a binary search?
The list must contain only positive numbers
The list must be in random order
The list must be sorted
The list must have an even number of elements
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens to the part of the list where the target value cannot lie in a binary search?
It is sorted again
It is doubled in size
It is eliminated
It is searched again
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the first step in a binary search to find the number 300?
Compare the first element of the list.
Compare the last element of the list.
Compare the middle element of the list.
Remove the right side of the list.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What do you do if the middle element is not equal to the target and the target cannot be on the left side of the list?
Remove the right side of the list.
Remove the left side of the list.
Compare the first element of the list.
End the search as the target is not present.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What should you do if the middle element is not equal to the target during a binary search?
Throw out the left side of the list.
Throw out the right side of the list.
Add more elements to the list.
Repeat the comparison with the same middle element.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is step 3 in the process?
Option A
Option B
Option C
Option D
Create a free account and access millions of resources
Similar Resources on Quizizz
55 questions
HTML Basics

Quiz
•
11th - 12th Grade
56 questions
J277/02 Computational thinking, algorithms and programming

Quiz
•
9th Grade - University
60 questions
Komputer Akuntansi_ XII

Quiz
•
12th Grade
54 questions
Visual Basic 1 Final Exam Study Guide

Quiz
•
9th - 12th Grade
55 questions
AutoCAD Certification Quizziz

Quiz
•
9th - 12th Grade
60 questions
ADVANCE COMPUTER FUNDAMENTALS AND PROGRAMMING

Quiz
•
12th Grade
54 questions
Programming Concepts

Quiz
•
9th - 12th Grade
57 questions
Excel Review #1

Quiz
•
9th - 12th 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