Sorting Algorithms: Quick, Merge, Heap - Advanced Concepts

Download Q&A
Q. In Merge Sort, what is the time complexity for merging two sorted arrays?
  • A. O(n)
  • B. O(n log n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the best-case time complexity of Quick Sort?
  • A. O(n)
  • B. O(n log n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the primary advantage of Quick Sort over Merge Sort?
  • A. Less memory usage
  • B. Faster average case
  • C. Easier implementation
  • D. Stable sorting
Q. Which of the following is a characteristic of Heap Sort?
  • A. It is a stable sort
  • B. It is an in-place sort
  • C. It is a recursive sort
  • D. It requires additional memory
Q. Which of the following sorting algorithms is not a comparison-based sort?
  • A. Merge Sort
  • B. Quick Sort
  • C. Heap Sort
  • D. Counting Sort
Q. Which sorting algorithm is stable among the following?
  • A. Quick Sort
  • B. Heap Sort
  • C. Merge Sort
  • D. Selection Sort
Showing 1 to 6 of 6 (1 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely