What is a linear search?
Binary and linear search

Quiz
•
Computers
•
10th Grade
•
Easy

M Ellis
Used 2+ times
FREE Resource
33 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A method where each item in the list is checked in order from the start until the item is found.
A method where the list is split into two each time a comparison is made.
A method where items are sorted in descending order.
A method where only the last item is checked.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a binary search?
A method where each item is checked in order from the start.
A method where an ordered list is split into two each time a comparison is made.
A method where items are randomly checked.
A method where only the first item is checked.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a necessary condition for performing a binary search?
The list needs to be unordered.
The list needs to be in order.
The list needs to be in reverse order.
The list needs to be random.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What should you do if the middle value is the one you are looking for in a binary search?
Continue searching.
Celebrate, and stop.
Take the list to the left.
Take the list to the right.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a binary search, what action is taken if the middle value is larger than the one you are looking for?
Take the list to the right of the middle value.
Take the list to the left of the middle value.
Stop the search.
Reverse the list.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the next step if the middle value is smaller than the one you are looking for in a binary search?
Take the list to the left of the middle value.
Take the list to the right of the middle value.
Stop the search.
Reverse the list.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the middle value in the list when performing a binary search for the number 9?
9
12
16
18
Create a free account and access millions of resources
Similar Resources on Quizizz
34 questions
Computer Science I Midterm Review (AKHS)

Quiz
•
9th - 12th Grade
29 questions
JavaScript

Quiz
•
9th - 12th Grade
35 questions
Hash Tables & Other Data Structures

Quiz
•
10th - 12th Grade
30 questions
Searching Algorithm

Quiz
•
9th - 12th Grade
28 questions
AP CSP Code.org Unit 1 Vocab

Quiz
•
9th - 12th Grade
32 questions
CS 1: Big Idea #3 Practice

Quiz
•
9th Grade - University
35 questions
CS Basics

Quiz
•
4th Grade - University
31 questions
Computer Science Topic 2 Revision January 2023

Quiz
•
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
20 questions
Types of Credit

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

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