Sorting algorithms I

Sorting algorithms I

University

21 Qs

quiz-placeholder

Similar activities

Sorting Algorithms II

Sorting Algorithms II

University

18 Qs

Quiz on Standard Algorithms

Quiz on Standard Algorithms

10th Grade - University

20 Qs

DSQUIZ 2020-21

DSQUIZ 2020-21

University

18 Qs

3°D_SAV2_R2 3TECBE_ Algoritmos  Estruturas  Dados_17_36 QUIZIZZ

3°D_SAV2_R2 3TECBE_ Algoritmos Estruturas Dados_17_36 QUIZIZZ

11th Grade - University

21 Qs

Sorting, Searching and Hashing

Sorting, Searching and Hashing

University

17 Qs

ICT 1 (H1H2)

ICT 1 (H1H2)

University

25 Qs

Searching Algorithms

Searching Algorithms

University

26 Qs

Searching and Sorting

Searching and Sorting

University

16 Qs

Sorting algorithms I

Sorting algorithms I

Assessment

Quiz

Computers

University

Hard

Created by

Yomna Elkholy

Used 9+ times

FREE Resource

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is meant by an in-place sorting algorithm?

The input is already sorted and in-place

It requires additional storage

It needs O(1) memory to create auxiliary locations

It requires additional space

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an in-place sorting algorithm?

Selection sort

Insertion sort

Bubble sort

All

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following sorting algorithms is best used when the array is nearly sorted to begin with?

Selection sort

Insertion sort

Bubble sort

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the worst case complexity of selection sort?

O(nlogn)

O(logn)

O(n)

O(𝐧𝟐)

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Select the appropriate code that performs selection sort.

Media Image
Media Image
Media Image
Media Image

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the average case complexity of selection sort?

O(nlogn)

O(logn)

O(n)

O(𝐧𝟐)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the disadvantage of selection sort?

What is the disadvantage of selection sort?

It is not scalable

It can be used for small keys

It takes linear time to sort the elements

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?