Big Idea Part 3

Big Idea Part 3

12th Grade

56 Qs

quiz-placeholder

Similar activities

Excel Lessons 4-6

Excel Lessons 4-6

9th - 12th Grade

53 Qs

CBT

CBT

11th - 12th Grade

60 Qs

Multiple Choice Questions on Programming

Multiple Choice Questions on Programming

9th - 12th Grade

54 Qs

Week 11: Lists, Loops & "Failure"!

Week 11: Lists, Loops & "Failure"!

9th - 12th Grade

58 Qs

Unit 7 Review Parameters, Returns, Libraries

Unit 7 Review Parameters, Returns, Libraries

9th - 12th Grade

55 Qs

Week 12 - Even More Lists

Week 12 - Even More Lists

9th - 12th Grade

58 Qs

Ulangan Harian

Ulangan Harian

12th Grade

60 Qs

Programming Concepts

Programming Concepts

9th - 12th Grade

54 Qs

Big Idea Part 3

Big Idea Part 3

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Amy Austin

FREE Resource

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

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?