Quiz - 7

Quiz - 7

9th Grade

14 Qs

quiz-placeholder

Similar activities

Unit 6/7 B  Quiz #2  Objects in lists and arrays, searching , so

Unit 6/7 B Quiz #2 Objects in lists and arrays, searching , so

9th - 12th Grade

12 Qs

Data Storage and Collection Quiz 1

Data Storage and Collection Quiz 1

9th Grade

16 Qs

CSE Codehs

CSE Codehs

9th - 12th Grade

15 Qs

Binary and Linear Search

Binary and Linear Search

9th - 12th Grade

18 Qs

Search/Sort Algorithm Recap

Search/Sort Algorithm Recap

9th - 12th Grade

18 Qs

Searching Algorithm

Searching Algorithm

9th - 12th Grade

16 Qs

APCSA Unit 7

APCSA Unit 7

9th - 12th Grade

12 Qs

Unit 8 - Searching and Sorting

Unit 8 - Searching and Sorting

9th - 12th Grade

15 Qs

Quiz - 7

Quiz - 7

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Richard WELLS

Used 1+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a linear search?

A search that compares each item one by one

A search that splits the array into halves

A search that uses a hash table

A search that uses a binary tree

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main disadvantage of a linear search?

It is very efficient

It requires sorting the array

It isn’t very efficient

It uses a lot of memory

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a binary search, what must be true about the array?

It must be unsorted

It must be sorted

It must be in reverse order

It must be in random order

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in a binary search?

Compare each item one by one

Find the middle item

Sort the array

Find the largest item

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a binary search do if the item is less than the middle item?

Search the right half

Search the left half

Stop the search

Search the entire array

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a key feature of the binary search function?

It is iterative

It is recursive

It is linear

It is non-recursive

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many comparisons are needed in a binary search of 11 numbers?

11 comparisons

4 comparisons

17 comparisons

2 comparisons

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?