Vidyalelo
Data Structure · all questions

Sorting Algorithms
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

509

Questions

24/26

Page

Pick an option on a question to see the right answer and solution.

On which algorithm is heap sort based on?

Select an option to see the answer and solution.

Which of the following is not true about QuickSort?

Select an option to see the answer and solution.

What is the average case time complexity of tree sort?

Select an option to see the answer and solution.

Which of the following is an advantage of recursive insertion sort over its iterative version?

Select an option to see the answer and solution.

Consider the following statements related to the binary tree sort.
I. Element can be added gradually as they become available
II. It needs extra memory space

Select an option to see the answer and solution.

What is the average time complexity of Tim sort?

Select an option to see the answer and solution.

What is a randomized QuickSort?

Select an option to see the answer and solution.

Which of the following is not an exchange sort?

Select an option to see the answer and solution.

Stooge sort is a comparison based sorting algorithm.

Select an option to see the answer and solution.

Bead sort is only applicable to positive integers.

Select an option to see the answer and solution.

What will be the number of passes to sort the elements using insertion sort?
14, 12,16, 6, 3, 10

Select an option to see the answer and solution.

Which of the following is incorrect about randomized quicksort?

Select an option to see the answer and solution.

Which of the following is an alternate name of library sort?

Select an option to see the answer and solution.

Which of the following traversal in a binary search tree results in a sorted output?

Select an option to see the answer and solution.

What is the best case time complexity of Tim sort?

Select an option to see the answer and solution.

What is the advantage of counting sort over quick sort?

Select an option to see the answer and solution.

What is the worst case time complexity of bead sort (S= sum of input elements)?

Select an option to see the answer and solution.

What is the best case time complexity of bead sort (S = sum of input elements)?

Select an option to see the answer and solution.

LSD radix sort requires . . . . . . . . passes to sort N elements.

Select an option to see the answer and solution.

What is a randomized quick sort?

Select an option to see the answer and solution.