Sorting algorithms I

Sorting algorithms I

University

21 Qs

quiz-placeholder

Similar activities

Pensamiento del diseño grado 11

Pensamiento del diseño grado 11

University

16 Qs

Lenguaje de Definición de Datos

Lenguaje de Definición de Datos

University

18 Qs

Redes Sociales

Redes Sociales

University

20 Qs

Productos Multimedia Final

Productos Multimedia Final

University

17 Qs

Examen Final Enfermeria

Examen Final Enfermeria

University

20 Qs

Logika & Pemrograman (ID)

Logika & Pemrograman (ID)

10th Grade - Professional Development

20 Qs

Enfoques de calidad

Enfoques de calidad

University

18 Qs

Nuevas tecnologías

Nuevas tecnologías

6th Grade - Professional Development

20 Qs

Sorting algorithms I

Sorting algorithms I

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Yomna Elkholy

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?

Discover more resources for Computers