MCQOPTIONS
Saved Bookmarks
This section includes 11 Mcqs, each offering curated multiple-choice questions to sharpen your Recursive Bubble Sort Multiple Choice knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Bubble sort is an adaptive sorting algorithm. |
| A. | true |
| B. | false |
| Answer» B. false | |
| 2. |
What is the auxiliary space complexity of recursive bubble sort? |
| A. | O(n) |
| B. | O(1) |
| C. | O(n log n) |
| D. | O(n<sup>2</sup>) |
| Answer» C. O(n log n) | |
| 3. |
What are the number of swaps required to sort the array arr={1, 2, 4, 3, 7, 5, 6} using recursive bubble sort? |
| A. | 0 |
| B. | 1 |
| C. | 2 |
| D. | 3 |
| Answer» E. | |
| 4. |
What is the worst case time complexity of recursive bubble sort? |
| A. | O(n) |
| B. | O(n log n) |
| C. | O(n<sup>2</sup>) |
| D. | O(log n) |
| Answer» D. O(log n) | |
| 5. |
What is the best case time complexity of recursive bubble sort? |
| A. | O(n) |
| B. | O(n log n) |
| C. | O(n<sup>2</sup>) |
| D. | O(log n) |
| Answer» B. O(n log n) | |
| 6. |
What is the average case time complexity of recursive bubble sort? |
| A. | O(n) |
| B. | O(n log n) |
| C. | O(n<sup>2</sup>) |
| D. | O(log n) |
| Answer» D. O(log n) | |
| 7. |
Recursive bubble sort is a comparison based sort. |
| A. | true |
| B. | false |
| Answer» B. false | |
| 8. |
Which of the following is a variation of bubble sort? |
| A. | selection sort |
| B. | odd even sort |
| C. | cocktail sort |
| D. | stupid sort |
| Answer» C. cocktail sort | |
| 9. |
What will be the recurrence relation of the code of recursive bubble sort? |
| A. | T(n) = 2T(n/2) + n |
| B. | T(n) = 2T(n/2) + c |
| C. | T(n) = T(n-1) + n |
| D. | T(n) = T(n-1) + c |
| Answer» D. T(n) = T(n-1) + c | |
| 10. |
Bubble sort is also known as ___________ |
| A. | stupid sort |
| B. | ship sort |
| C. | sinking sort |
| D. | shell sort |
| Answer» D. shell sort | |
| 11. |
Which of the following is an advantage of recursive bubble sort over its iterative version? |
| A. | it has better time complexity |
| B. | it has better space complexity |
| C. | it is easy to implement |
| D. | it has no significant advantage |
| Answer» E. | |