Search Header Logo

AP CSP Big Idea 3 - Binary Search

Authored by Rebecca Sims

Computers

10th - 12th Grade

Used 37+ times

AP CSP Big Idea 3 - Binary Search
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The binary search starts ______________________________.

at the beginning

in the middle

at the user selection

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Data must be sorted in which of the below?

linear

sequential

binary

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Data can be sorted (in a binary search) in only ascending order.

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Data must be sorted in a linear search.

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does a binary search algorithm works?​

Dividing the list into halves until the item is matched with one in the list.​

Starts with the first element and checks the next element consecutively until a match is found.

​ None of the above​

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An array with 32 elements is input to a binary search algorithm. How many maximum number of comparisons are performed?​

32

16

8

5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An array with 32 elements is input to a linear search algorithm. How many maximum number of comparisons are performed?​

32

16

8

5

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?