Search Header Logo

Big Idea Part 3

Authored by Amy Austin

Computers

12th Grade

Big Idea Part 3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

56 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a binary search algorithm primarily used for?

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

Media Image

What is step 3 in the process?

Option A

Option B

Option C

Option D

Access all questions and much more by creating a free account

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

Already have an account?