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

13/26

Page

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

Which of the following sorting algorithm is not in place?

Select an option to see the answer and solution.

Which of the following sorting algorithm is in place?

Select an option to see the answer and solution.

MSD radix sort should be preferred over LSD radix sort when we have to maintain the original relative order.

Select an option to see the answer and solution.

Which of the following function chooses a random index as pivot.

Options are not available for this question.

Select an option to see the answer and solution.

Which of the following sorting algorithm is a constituent of tim sort?

Select an option to see the answer and solution.

Randomized quick sort is a stable sort.

Select an option to see the answer and solution.

Introsort sort is a comparison based sort.

Select an option to see the answer and solution.

Which of the following methods is the most effective for picking the pivot element?

Select an option to see the answer and solution.

What is the average number of comparisons used to heap sort a random permutation of N distinct items?

Select an option to see the answer and solution.

Which of the following sorting algorithm is NOT stable?

Select an option to see the answer and solution.

Which of the following is not a variant of merge sort?

Select an option to see the answer and solution.

Consider an array of length 5, arr[5] = {9, 7, 4, 2, 1}. What are the steps of insertions done while running insertion sort on the array?

Select an option to see the answer and solution.

When we realize a specific implementation of a pancake algorithm, every move when we find the greatest of the sized array and flipping can be modeled through . . . . . . . .

Select an option to see the answer and solution.

How many passes does an insertion sort algorithm consist of?

Select an option to see the answer and solution.

A machine needs a minimum of 200 sec to sort 1000 elements by Quick sort. The minimum time needed to sort 200 elements will be approximately . . . . . . . .

Select an option to see the answer and solution.

The descending heap property is . . . . . . . .

Select an option to see the answer and solution.

What is the usual size of a run in tim sort?

Select an option to see the answer and solution.

What is the full form of MSD in MSD radix sort?

Select an option to see the answer and solution.

Sleep sort should be preferred over permutation sort as it has better time complexity.

Select an option to see the answer and solution.

Introsort algorithm is combination of . . . . . . . .

Select an option to see the answer and solution.