Insertion Sort Multiple choice Questions and Answers (MCQs)

 

 Help authour, Buy PDF Ebook   >>>Click Here<<<

Insertion Sort Multiple choice Questions and Answers (MCQs)

Click on any option to know the CORRECT ANSWERS

Question 6
Which of the following is good for sorting arrays having less than 100 elements?
A
Quick Sort
B
Selection Sort
C
Merge Sort
D
Insertion Sort
HRM Questions answers

Question 6 Explanation: 
The insertion sort is good for sorting small arrays. It sorts smaller arrays faster than any other sorting algorithm.

Question 7
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?
A
7 9 4 2 1 4 7 9 2 1 2 4 7 9 1 1 2 4 7 9
B
9 7 4 1 2 9 7 1 2 4 9 1 2 4 7 1 2 4 7 9
C
7 4 2 1 9 4 2 1 9 7 2 1 9 7 4 1 9 7 4 2
D
7 9 4 2 1 2 4 7 9 1 4 7 9 2 1 1 2 4 7 9
English literature Questions answers

Question 7 Explanation: 
The steps performed while running insertion sort on given array are:

Initial : -9 7 4 2 1

7 9 4 2 1

4 7 9 2 1

2 4 7 9 1

1 2 4 7 9

There are 7 questions to complete.

 

 Download all FREE PDF Ebook >>>CLICK HERE<<<