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

17/26

Page

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

What is the best case time complexity of binary insertion sort?

Select an option to see the answer and solution.

Which of the following is not true about tree sort?

Select an option to see the answer and solution.

Sleep sort does not work for . . . . . . . .

Select an option to see the answer and solution.

How many flips does the simplest of pancake sorting techniques require?

Select an option to see the answer and solution.

Shell sort is applied on the elements 27 59 49 37 15 90 81 39 and the chosen decreasing sequence of increments is (5,3,1). The result after the first iteration will be

Select an option to see the answer and solution.

Pancake Sorting appears in which of the following?

Select an option to see the answer and solution.

Which of the following is false?

Select an option to see the answer and solution.

What is the auxiliary space complexity of bottom up merge sort?

Select an option to see the answer and solution.

How many comparisons will be made to sort the array arr={1, 5, 3, 8, 2} using bucket sort?

Select an option to see the answer and solution.

Which of the following algorithm is stable?

Select an option to see the answer and solution.

What will be the base case for the code of recursive insertion sort ?

Options are not available for this question.

Select an option to see the answer and solution.

Auxiliary space requirement of sleep sort is . . . . . . . .

Select an option to see the answer and solution.

What is the best case complexity of QuickSort?

Select an option to see the answer and solution.

What is the best case time complexity of gnome sort?

Select an option to see the answer and solution.

Which one of the following sorting algorithm is best suited to sort an array of 1 million elements?

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

It is not possible to implement counting sort when any of the input element has negative value.

Select an option to see the answer and solution.

Which of the following is the distribution sort?

Select an option to see the answer and solution.

Which of the following sorting algorithm will be preferred when the size of partition is between 16 and 2 log(n) while implementing introsort?

Select an option to see the answer and solution.

What is the worst case analysis of Shell sort using Sedgewick's increments?

Select an option to see the answer and solution.