Start learning →

For a list of n elements, bubble sort makes how many passes?

An minus 1
Bn minus 2
Cn minus 3
Dn minus 4
Answer & Solution
Correct answer: A. n minus 1
1. Each pass fixes one more element into place. 2. The final element is left correct by elimination. 3. For a list with n elements, bubble sort makes a total of n minus 1 passes. 4. So the answer is n minus 1. _Source: syllabus Computer Science, Ch 5 'Sorting' and Ch 6 'Searching'_
Practise this question with Quill — IGNOU MCA →

Keep practising Sorting and Searching

Browse all Sorting and Searching questions for IGNOU MCA, or explore more Computer Science topics.

Start a Sorting and Searching lesson →
Related questions