🎙 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 4 of 10

Which sort makes the same number of comparisons whether the input is sorted or not?

Which sort makes the same number of comparisons whether the input is sorted or not?

  1. A.Bubble sort with a swap flag
  2. B.Insertion sort
  3. C.Selection sort
  4. D.None of them
Answer & explanation

Correct answer: Selection sort

Selection sort always scans the whole unsorted part to find the minimum.

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 →