Time complexity of sorting algorithms

Time complexity of sorting algorithms

12th Grade

11 Qs

quiz-placeholder

Similar activities

Array Search & Sort Quiz

Array Search & Sort Quiz

12th Grade

15 Qs

Excel Mastery Quiz

Excel Mastery Quiz

12th Grade

15 Qs

list in python

list in python

10th - 12th Grade

15 Qs

XII Samacheer Computer Science

XII Samacheer Computer Science

12th Grade - University

10 Qs

Big O Notation CLC

Big O Notation CLC

12th Grade

8 Qs

analysis of algorithm (lecture 2)

analysis of algorithm (lecture 2)

12th Grade

10 Qs

2.1.3 Algorithms (Sorting)

2.1.3 Algorithms (Sorting)

12th Grade

13 Qs

Ταξινόμηση Φυσαλίδας

Ταξινόμηση Φυσαλίδας

12th Grade

15 Qs

Time complexity of sorting algorithms

Time complexity of sorting algorithms

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Elizabeth Gist

Used 3+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the average-case time complexity of Quick Sort?

O(n)

O(nlogn)

O(n2)

O(logn)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm has a worst-case time complexity of O(n2)?

Merge Sort

Quick Sort

Heap Sort

Bubble Sort

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the best-case time complexity of Insertion Sort?

O(nlogn)

O(n2)

O(n)

O(logn)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm consistently has a time complexity of O(nlogn) in the worst case?

Quick Sort

Merge Sort

Bubble Sort

Insertion Sort

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the worst-case time complexity of Quick Sort?

O(n)

O(nlogn)

O(n2)

O(logn)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm has an average-case time complexity of O(n2)?

Bubble Sort

Merge Sort

Quick Sort

Heap Sort

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the average-case time complexity of Merge Sort?

O(nlogn)

O(n2)

O(n)

O(logn)

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?