Start learning →

When does the bubble sort algorithm terminate its passes?

AAfter one pass
BWhen n swaps occur
COn first duplicate
DWhen no swaps occur
Answer & Solution
Correct answer: D. When no swaps occur
Bubble sort stops when an entire pass completes without performing any swaps.
Practise this question with Quill — ICSE Class 10 →

Keep practising Arrays in Java (Single and Double Dimensional)

Browse all Arrays in Java (Single and Double Dimensional) questions for ICSE Class 10, or explore more Computer Applications topics.

Start a Arrays in Java (Single and Double Dimensional) lesson →