Search Header Logo

7.5 Search Algorithms

Authored by Jennifer Greene

Computers

12th Grade

Used 11+ times

7.5 Search Algorithms
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

When can a Linear Search be performed?

On letters

On numbers

Both

None of these

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

In order to use a Binary Search, the data must be...

int's or doubles

either int's or Strings

in order

objects

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

True or False: Linear Search becomes more efficient as more values are added to a particular data set.

True

False

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How does Linear Search work?

Linear Search traverses an array, starting at the first element, until the desired value is found, or until the end of the array.

Linear Search traverses an array from the last value to the first value until the desired value is found.

Linear Search uses a while loop to traverse an array for the desired value, or until the end of the array.

Linear Search searches for desired values by searching the next highest value in an array, and seeing if that is the desired value.

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In a list with 100 items, how many comparisons are required by Sequential Search to determine that an item is not in the list?

50

100

It may result in an infinite loop

Not enough information to determine

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many iterations does Binary Search require to search a list with 32 items?

3

5

7

It depends on whether the item is found or not.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the best description of the linear search algorithm?

Put the elements in order, then go through them one by one until target is found or the end of the list is reached.
Put the elements in order, compare with the middle value, if not the target: continue to the left or right of the middle and repeat. 
Elements do not need to be in order. Go through them one by one until target is found or the end of the list is reached.
Elements do not need to be in order, compare with the middle value, if not the target: continue to the left or right of the middle and repeat. 

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?