Question:

__________ compares neighboring elements only and swaps them when necessary?

Updated On: Nov 4, 2024
  • Selection Sort
  • Bubble Sort
  • Insertion Sort
  • Quick Sort
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Bubble Sort compares and swaps adjacent elements if they are in the wrong order, repeating until the list is sorted.
Was this answer helpful?
0
0