Total Questions : 10
Expected Time : 10 Minutes

1. How does quicksort choose the pivot element for partitioning?

2. What is the time complexity of the Quicksort algorithm in its average case?

3.

4. Which sorting algorithm exhibits an O(n) time complexity for nearly sorted data?

5. In the context of sorting, what is the primary advantage of the Cocktail Shaker Sort algorithm?

6. What is the primary advantage of the Timsort algorithm, commonly used in Python's sorting library?

7. What is the time complexity of the Bubblesort algorithm in its worst-case scenario?

8. What is the primary disadvantage of the Bubble Sort algorithm?

9. What is an in-place sorting algorithm?

10. Which sorting algorithm is commonly used for external sorting and efficiently handles large datasets?