42. Algorithm - Binary Search Quiz

42. Algorithm - Binary Search Quiz

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Technology in medicine

Technology in medicine

10th Grade

15 Qs

Fashion Merchandising 1.01

Fashion Merchandising 1.01

9th - 12th Grade

10 Qs

G9 QUIZ 1 2ND QUARTER

G9 QUIZ 1 2ND QUARTER

9th Grade

15 Qs

2.GRADE STORY 5

2.GRADE STORY 5

2nd Grade - University

15 Qs

G10 Mod3 Summative Test: ICCS

G10 Mod3 Summative Test: ICCS

10th Grade

15 Qs

Virtual Memory

Virtual Memory

11th Grade

10 Qs

Y10M2A2 - Selection

Y10M2A2 - Selection

6th - 10th Grade

15 Qs

42. Algorithm - Binary Search Quiz

42. Algorithm - Binary Search Quiz

Assessment

Passage

Computers

9th - 12th Grade

Medium

Created by

Andy Workman

Used 2+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?