AP CSP Big Idea 3 - Binary Search

AP CSP Big Idea 3 - Binary Search

10th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

GCSE Computing Flash Quiz

GCSE Computing Flash Quiz

10th - 11th Grade

12 Qs

STS Informatika

STS Informatika

10th Grade

10 Qs

Searching & Sorting Algorithms

Searching & Sorting Algorithms

11th Grade

10 Qs

IB Computer Science Topic 4

IB Computer Science Topic 4

11th - 12th Grade

9 Qs

Search and Sort Algorithms

Search and Sort Algorithms

10th Grade

12 Qs

Binary search

Binary search

11th Grade

5 Qs

Petzold Readings on Number Systems

Petzold Readings on Number Systems

9th - 12th Grade

10 Qs

Linear Search

Linear Search

12th Grade

10 Qs

AP CSP Big Idea 3 - Binary Search

AP CSP Big Idea 3 - Binary Search

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

Rebecca Sims

Used 37+ times

FREE Resource

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

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is the midpoint of the list calculated?​

midpoint= ((first_index+last_index)/2)​

midpoint=((first_index+last_index)/3

midpoint= round ((first_index+last_index)/2)​

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You can conduct a binary search on lists with words that are ____________________________________.

numbered first

in any order

in alphabetical order