Time complexity of sorting algorithms

Time complexity of sorting algorithms

12th Grade

11 Qs

quiz-placeholder

Similar activities

Mastering Big O Notation Quiz

Mastering Big O Notation Quiz

12th Grade

15 Qs

12th CS Revision-2 (Chapter 4 & 5)

12th CS Revision-2 (Chapter 4 & 5)

12th Grade

15 Qs

Data Structures & Algorithms

Data Structures & Algorithms

12th Grade

10 Qs

Algorithms

Algorithms

9th - 12th Grade

10 Qs

Understanding Algorithm Complexity

Understanding Algorithm Complexity

12th Grade

16 Qs

ASK Tingkatan 3 : Algoritma

ASK Tingkatan 3 : Algoritma

12th Grade

10 Qs

MATLAB 2

MATLAB 2

KG - University

10 Qs

ULANGAN SUMATIF

ULANGAN SUMATIF

12th Grade

10 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?