Binary Search

Binary Search

11th Grade

12 Qs

quiz-placeholder

Similar activities

Python Lists

Python Lists

9th - 12th Grade

15 Qs

Code.org List Quiz Questions

Code.org List Quiz Questions

9th - 12th Grade

10 Qs

Arrays

Arrays

KG - University

10 Qs

Code.org Unit 6 Principles Review

Code.org Unit 6 Principles Review

9th - 12th Grade

17 Qs

AP CSP BI 3

AP CSP BI 3

9th - 12th Grade

13 Qs

2.1.3 Search Recap

2.1.3 Search Recap

11th Grade

12 Qs

Algorithms

Algorithms

9th - 12th Grade

10 Qs

Java Arrays Basic

Java Arrays Basic

10th - 12th Grade

15 Qs

Binary Search

Binary Search

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Deborah Klier

Used 9+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does a Binary Search Work?

It splits data in two at the middle point, discarding the half that doesn't contain the search item

It searches through each item one at a time

It looks for true or false values in a list

It splits data into two separate setsand searches them one at a time

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does a Linear/Sequential search work?

It splits data in two at the middle point, discarding the half that doesn't contain the search item

It starts the end last item and works backwards, comparing each item in turn

It starts at the first item and compares each item in turn with the search item

It splits data into two separate sets and searches them one at a time

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where does a linear/sequential search start?

At the end of a data set

In the middle of a data set

At the start of a data set

The item before the end of a data set

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where does the Binary search start?

At the end of a data set

In the middle of a data set

The item before the end of a data set

At the start of a data set

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about binary search?

The list must be sorted

The list can be in any order

It works by dividing the list in half and searching each half separately

t works by searching one element at a time from the beginning of the list

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about linear/sequential search?

The list must be sorted

The list can be in any order

It works by dividing the list in half and searching each half separately

t works by searching one element at a time from the beginning of the list

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why must a dataset be sorted in order to do a binary search?

Because it compares each item one at a time

Because it is easier to program this

Because it needs to be able to look for the middle point of the data set

So that you can used mixed data types

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?