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

7/26

Page

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

What will be the base case in the function of binary search used in the code of binary insertion sort? (high and low are the rightmost and leftmost index of array respectively and item is the element whose correct position is to be determined by the binary search function)

Options are not available for this question.

Select an option to see the answer and solution.

What is an external sorting algorithm?

Select an option to see the answer and solution.

What is the advantage of comb sort over merge sort?

Select an option to see the answer and solution.

Heap sort is an extremely stable algorithm.

Select an option to see the answer and solution.

Statement 1: Shell sort is a stable sorting algorithm.
Statement 2: Shell sort is an in-place sorting algorithm.

Select an option to see the answer and solution.

Choose the correct statement regarding binary insertion sort?

Select an option to see the answer and solution.

Bucket sort is most efficient in the case when . . . . . . . .

Select an option to see the answer and solution.

What is the worst case time complexity of recursive bubble sort?

Select an option to see the answer and solution.

For the following question, how will the array elements look like after second pass?
34, 8, 64, 51, 32, 21

Select an option to see the answer and solution.

Which of the following should be used to sort a huge database on a fixed-length key field?

Select an option to see the answer and solution.

Pigeonhole sort is an in place sorting algorithm.

Select an option to see the answer and solution.

Which of the following pair of sorting algorithms are stable?

Select an option to see the answer and solution.

Auxiliary space requirement of odd-even sort is . . . . . . . .

Select an option to see the answer and solution.

Which of the following is an example of an unstable sorting algorithm?

Select an option to see the answer and solution.

Bead sort is a comparison based sorting algorithm.

Select an option to see the answer and solution.

Which of the following sorting algorithm is not in place?

Select an option to see the answer and solution.

What is the average case time complexity of permutation sort?

Select an option to see the answer and solution.

Library sort is a comparison based sort.

Select an option to see the answer and solution.

Which of the following header file is a must to implement sleep sort algorithm?

Select an option to see the answer and solution.

Which of the following sorting algorithm uses a binary search?

Select an option to see the answer and solution.