Sorting Algorithms: Quick, Merge, Heap

Download Q&A
Q. In which scenario does Quick Sort perform poorly?
  • A. When the array is already sorted
  • B. When the array is in reverse order
  • C. When the array has many duplicate elements
  • D. When the array is small
Q. What is the average time complexity of the Quick Sort algorithm?
  • A. O(n)
  • B. O(n log n)
  • C. O(n^2)
  • D. O(log n)
Q. What is the primary data structure used in the implementation of Heap Sort?
  • A. Array
  • B. Linked List
  • C. Stack
  • D. Queue
Q. What is the space complexity of Merge Sort?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. What is the worst-case time complexity of Heap Sort?
  • A. O(n log n)
  • B. O(n^2)
  • C. O(n)
  • D. O(log n)
Q. Which of the following is NOT a characteristic of Quick Sort?
  • A. In-place sorting
  • B. Recursive algorithm
  • C. Stable sorting
  • D. Divide-and-conquer
Q. Which of the following sorting algorithms is stable?
  • A. Quick Sort
  • B. Heap Sort
  • C. Merge Sort
  • D. Selection Sort
Q. Which sorting algorithm is based on the divide-and-conquer paradigm?
  • A. Bubble Sort
  • B. Insertion Sort
  • C. Merge Sort
  • D. Selection Sort
Q. Which sorting algorithm is generally faster for small datasets?
  • A. Quick Sort
  • B. Merge Sort
  • C. Heap Sort
  • D. Insertion Sort
Showing 1 to 9 of 9 (1 Pages)
Soulshift Feedback ×

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

Not likely Very likely