0 of 20 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 20 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
1. Which of the following is not a stable sorting algorithm?
2. Which of the following is a stable sorting algorithm?
3. Which of the following is not an in-place sorting algorithm?
4. If the given input array is sorted or nearly sorted, which of the following algorithm gives the best performance?
5. Which of the following algorithm pays the least attention to the ordering of the elements in the input list?
6. Consider the situation in which assignment operation is very costly. Which of the following sorting algorithm should be performed so that the number of assignment operations is minimized in general?
7. Which of the following sorting algorithm has the running time that is least dependant on the initial ordering of the input?
8. Which of the following algorithm design technique is used in the quick sort algorithm?
9. Merge sort uses
10. Match the following :
1) Quick sort |
2)Bubble sort |
3) Heap sort |
11. What is the advantage of bubble sort over other sorting techniques?
12. Suppose we are sorting an array of eight integers using quicksort, and we have just finished the first partitioning with the array looking like this:
2 5 1 7 9 12 11 10
Which statement is correct?
13. Consider the situation in which assignment operation is very costly. Which of the following sorting algorithm should be performed so that the number of assignment operations is minimized in general?
14. In the following scenarios, when will you use selection sort?
15. What is the advantage of selection sort over other sorting techniques
16. What is the disadvantage of selection sort?
17. The given array is arr = {3,4,5,2,1}. The number of iterations in bubble sort and selection sort respectively are,
18. The given array is arr = {1,2,3,4,5}. (bubble sort is implemented with a flag variable)The number of iterations in selection sort and bubble sort respectively are
19. The given array is arr = {1,2,4,3}. Bubble sort is used to sort the array elements. How many iterations will be done to sort the array?
20. What is a randomized Quick Sort?