11. |
Binary Search can be categorized into which of the following?
|
||||||||
Answer:
Option (b) |
12. |
Which of the following is not a stable sorting algorithm in its typical implementation.
|
||||||||
Answer:
Option (c) |
13. |
Assume that we use Bubble Sort to sort n distinct elements in ascending order. When does the best case of Bubble Sort occur?
|
||||||||
Answer:
Option (a) |
14. |
Running merge sort on an array of size n which is already sorted is
|
||||||||
Answer:
Option (b) |
15. |
Which of the following is not a noncomparison sort?
|
||||||||
Answer:
Option (d) |
16. |
If the given input array is sorted or nearly sorted, which of the following algorithm gives the best performance?
|
||||||||
Answer:
Option (a) |
17. |
Which of the following algorithm design technique is used in the quick sort algorithm?
|
||||||||
Answer:
Option (c) |
18. |
Merge sort uses
|
||||||||
Answer:
Option (a) |
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?
|
||||||||
Answer:
Option (a) |
20. |
Quick sort is also known as ……..
|
||||||||
Answer:
Option (d) |