Search Header Logo

2.1 Sorting Algorithms

Computers

9th - 11th Grade

Used 26+ times

2.1 Sorting Algorithms
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Describe how a 'bubble sort' works

Starts at the beginning of the list and compares with the next value, if this is larger a swap is made. Then moves onto the second value and repeats the process.

The list is repeatedly divided into two until all the elements are separated individually. Pairs of elements are then compared, placed into order and combined. The process is then repeated.

Compares values in turn, starting with the second value in the list. If this value is greater than the value to the left of it, no changes are made. Otherwise this value is repeatedly moved left until it meets a value that is less than it.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Describe how an 'insertion sort' works

Starts at the beginning of the list and compares with the next value, if this is larger a swap is made. Then moves onto the second value and repeats the process.

The list is repeatedly divided into two until all the elements are separated individually. Pairs of elements are then compared, placed into order and combined. The process is then repeated.

Compares values in turn, starting with the second value in the list. If this value is greater than the value to the left of it, no changes are made. Otherwise this value is repeatedly moved left until it meets a value that is less than it.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Describe how a 'merge sort' works

Starts at the beginning of the list and compares with the next value, if this is larger a swap is made. Then moves onto the second value and repeats the process.

The list is repeatedly divided into two until all the elements are separated individually. Pairs of elements are then compared, placed into order and combined. The process is then repeated.

Compares values in turn, starting with the second value in the list. If this value is greater than the value to the left of it, no changes are made. Otherwise this value is repeatedly moved left until it meets a value that is less than it.

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Describe an advantage of a 'bubble sort' algorithm

Simpler to code than a merge sort

Easiest to program

Faster than bubble and insertion sorts.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Describe an advantage of an 'insertion sort' algorithm

Faster than a bubble sort

Easiest to program

Faster than a bubble and insertion sort

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Describe an advantage of a 'bubble sort' algorithm

Simpler to code than a merge sort

Easiest to program

Faster than bubble and insertion sorts.

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Describe a disadvantage of a 'bubble sort' algorithm

One of the slowest ways to sort a list

More complicated to code than bubble and insertion.

Slower than a merge over large data sets.

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?