Sorting Algorithms

Sorting Algorithms

University

14 Qs

quiz-placeholder

Similar activities

Data Structures and Algorithms Quiz

Data Structures and Algorithms Quiz

University

17 Qs

Quiz 2 DS1D

Quiz 2 DS1D

University

12 Qs

CCS3101-CS1E

CCS3101-CS1E

University

11 Qs

XII Samacheer Computer Science

XII Samacheer Computer Science

12th Grade - University

10 Qs

CPIT 201 Algorithms

CPIT 201 Algorithms

12th Grade - University

15 Qs

Algoritma searching, shorting XB

Algoritma searching, shorting XB

10th Grade - University

12 Qs

Round1: QUIZ IT

Round1: QUIZ IT

University

15 Qs

Algoritmos II - Recursividade e ordenação

Algoritmos II - Recursividade e ordenação

University

10 Qs

Sorting Algorithms

Sorting Algorithms

Assessment

Quiz

Computers

University

Hard

Created by

Pavan Jakkepalli

Used 64+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is not a stable sorting algorithm?

Bubble sort

Selection sort

Quick sort

None of these

2.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which of the following is/are in-place sorting algorithm(s)?

Selection sort

Bubble sort

Quick sort

Merge sort

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The worst-case time complexity of a quick sort algorithm?

O(nlogn)

O(logn)

O(n^2)

O(n^2logn)

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The no.of comparisons in first pass in bubble sort to sort n numbers is....?

n

n(n-1)/2

n-1

n^2

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The maximum no.of swappings in first pass of selection sort to sort n numbers is....?

1

n(n-1)/2

n-1

n^2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In quick sort, based on key or pivot element position, the list is partitioned into how many sub-lists?

1

2

3

4

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

If the list is almost sorted, then which of the following algorithm gives the better performance?

Bubble sort

Selection sort

Quick sort

All of these

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?