wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Sorting Techniques Quiz

Total questions: 16

Worksheet time: 13mins

Name
Class
Date
1.

Compares pairs of items and swaps them if they are in the wrong order. Each pair in the list is checked.

a)

Bubble Sort

b)

Insertion Sort

2.

Takes each item in turn and puts it in the right place using the first item in the list as a starting point.

a)

Selection Sort

b)

Merge Sort

c)

Insertion Sort

d)

Bubble Sort

3.

 

Which type of sort algorithm is this?

(a)  

4.

An algorithm is...

a)

A set of steps to follow in order

b)

When you search data for a specific entity

c)

When you sort data into the correct order

d)

Both A and C

5.

True or False:

A bubble sort goes through each pair in a list and swaps them if not in order.

(a)  

6.

A bubble sort goes through each pair in a list and swaps them if not in order.

a)

To show we can do it

b)

So it looks nice

c)

It is easier to make sense of

7.

Which algorithm would work best to sort data as it arrives, one piece at a time, perhaps from a network?

(a)  

8.

If you’re quite done with more complex sorting algorithms and want to move on to something simpler: (a)   is the way to go.

9.

Best Time Complexity of Insertion Sort

(a)  

10.

In every run, compare it with the predecessor. If the current element is not in the correct location, keep shifting the predecessor subarray till the correct index for the element is found.

a)

Merge Sort

b)

Insertion Sort

c)

Bubble Sort

d)

Selection Sort

11.

What is the most flexible sorting algorithm in java?

a)

Merge Sort

b)

Selection Sort

c)

Insertion Sort

d)

Bubble Sort

12.

How many parts does the algorithm of merge sort have?

(a)  

13.

It is one of the most important sorting methods in java that one need to learn to get into sorting

(a)  

14.

What are the 2 methods of Heap Order?

a)

Max Heap and Min Heap

b)

Binary Heap and Order Heap

c)

Mass Heap and Main Heap

15.

The simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in the wrong order.

(a)  

16.

Explain the importance of Sorting in Data Structure.

(Only use one sentence to answer.)

(a)