wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Binary and Linear Searching Algorithms

Total questions: 8

Worksheet time: 2mins

Name
Class
Date
1.

Which values can Binary Search be performed on?

a)

Letters

b)

Numbers

c)

Ordered Numbers

d)

Ordered Letters

e)

oh yeah yeah

2.

If the data is in order the best search to use would be a

a)

Binary Search

b)

Linear Search

c)

oh yeah yeah

3.

Linear Search is faster than Binary search

a)

TRUE

b)

FALSE

c)

It depends on the scenario

d)

oh yeah yeah

4.

On average, which searching algorithm is more efficient?

a)

Binary Search

b)

Linear Search

c)

oh yeah yeah

5.

Which type of lists or data sets are linear searching algorithms used for?

a)

Unsorted lists or data sets

b)

Sorted lists or data sets

c)

oh yeah yeah

6.

Which type of lists or data sets are binary searching algorithms used for?

a)

Unsorted lists or data sets

b)

Sorted lists or data sets

c)

oh yeah yeah

7.

Describe a disadvantage of a linear search algorithm

a)

If the criteria matches the last item in list, entire list has to be checked.

b)

Simple to code than a binary search.

c)

Quicker than a linear search.

d)

Can only work on an ordered list. If unordered must use a linear search.

e)

oh yeah yeah

8.

Describe an advantage of a binary search algorithm

a)

If the criteria matches the last item in list, entire list has to be checked.

b)

Simple to code than a binary search.

c)

Quicker than a linear search.

d)

Can only work on an ordered list. If unordered must use a linear search.

e)

Oh yeah yeah