Which of these sorting algorithms is stable in its standard form?
A
Selection sort
B
Heap sort
C
Merge sort
Correct answer
D
Quick sort
Correct answer
C. Merge sort
18 views
⚔️
Challenge a friend on Algorithms and Data Structures
Same MCQs, timed, live leaderboard. Send the link on WhatsApp – no sign-up needed.
Create challenge
Explanation
A stable sort keeps equal elements in their original relative order. Standard merge sort is stable, while typical quick sort, heap sort and selection sort are not.
Reference
Asked in: GATE CS, NTS, Technical Interviews
Doubts & discussionNot sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ
‹ Previous MCQ Which data structure is used to implement breadth-first search (BFS) on a graph? Next MCQ › By the Master Theorem, what is the solution of T(n) = 2T(n/2) + n?