🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Searching and Sorting in C: all 10 questions

Quiz: Searching and Sorting in C · Question 8 of 10

What does "stable sort" mean?

What does "stable sort" mean?

  1. A.The sort never crashes
  2. B.The sort uses no extra memory
  3. C.Elements with equal keys keep their original relative order
  4. D.The sort always takes the same time
Answer & explanation

Correct answer: Elements with equal keys keep their original relative order

Bubble and insertion sort are stable; the simple selection sort is not.

Can you get the rest right without peeking?

Take the timed Quiz: Searching and Sorting in C quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →