Search Algorithm Quiz

Search Algorithm Quiz

9th Grade

11 Qs

quiz-placeholder

Similar activities

Common Algorithms Quiz

Common Algorithms Quiz

KG - Professional Development

11 Qs

Code.org - Unit 6 Review

Code.org - Unit 6 Review

9th - 12th Grade

15 Qs

Binary Searching

Binary Searching

8th - 10th Grade

16 Qs

Linear Binary Search

Linear Binary Search

8th - 10th Grade

16 Qs

A words - GCSE Computer Science

A words - GCSE Computer Science

1st - 10th Grade

13 Qs

Searching Algorithms

Searching Algorithms

9th - 11th Grade

16 Qs

Searching Algorithms

Searching Algorithms

9th - 10th Grade

15 Qs

Assessment - Binary Linear Search and Bubble Sort

Assessment - Binary Linear Search and Bubble Sort

9th Grade

15 Qs

Search Algorithm Quiz

Search Algorithm Quiz

Assessment

Quiz

Computers

9th Grade

Easy

Created by

David Dodwell-Bennett

Used 2+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a linear search algorithm used for?

To sort items of data in ascending order

To find items of data

To delete items of data

To update items of data

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when a linear search algorithm finds the desired item in the array?

It continues to search through the rest of the array

It deletes the item from the array

It stops and displays the location of the item

It restarts the search from the beginning of the array

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a linear search algorithm do if the item is not found at the current index?

It stops the search

It moves to the previous item

It moves to the next item

It displays an error message

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For binary searching to be possible, what condition must the set of data meet?

The data must be in random order

The data must be in descending order

The data must be ordered

The data must contain numeric values only

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When performing a binary search and the search item is positioned lower than the middle, what part of the data set is searched next?

The first quarter of the set

The second half of the set

The first half of the set

The last quarter of the set

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the position of the middle item if the lower bound is at index 0 and the upper bound is at index 10?

4

5

6

7

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What operation is performed to find the 'midPoint' in the binary search algorithm?

(first + last) * DIV 2

(first + last) / 2

(first + last) + DIV 2

(first + last) DIV 2

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?