wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Common Algorithms - Bitesize

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which search examines each data item in turn until a match is made or there are no more items to examine?

a)

Linear search

b)

Binary search

c)

Standard search

2.

Which of the following is an advantage of a linear search?

a)

It works on both ordered and un-ordered data sets

b)

It is more efficient than a binary search

c)

It works on strings and integers

3.

Which of the following is a disadvantage of a binary search?

a)

It only works on an ordered list

b)

It is less efficient than a linear search

c)

It only works on integer values

4.

Which of these types of sort is the most efficient?

a)

Bubble sort

b)

Insertion sort

c)

Merge sort

5.

5

Which of these types of sort is the easiest to program?

a)

Bubble sort

b)

Insertion sort

c)

Merge sort

6.

What size data set does an insertion sort work most efficiently with?

a)

Large data set

b)

Small data set

c)

Medium data set

7.

What size data set should ideally be sorted with a merge sort?

a)

Small data set

b)

Medium data set

c)

Large data set

8.

With a data set of 0,1, 3, 5, 7, 8, 9 how many values would a linear search examine before it found the value 5?

a)

Five

b)

Four

c)

Six

9.

With a data set of 0,1, 3, 5, 7, 8, 9 how many values would a binary search examine before it found the value 8?

a)

Six

b)

Two

c)

Five

10.

With a data set of 0, 1, 5, 3, 8, 9, 7 how many values would a linear search examine before it found the value 9?

a)

Five

b)

Seven

c)

Six