Question 14192 – NIC-NIELIT STA 2020
December 1, 2023Question 14197 – NIC-NIELIT STA 2020
December 1, 2023Question 14193 – NIC-NIELIT STA 2020
The given array is arr = {1, 2, 4, 3}. Bubble sort is used to sort the array elements. How many passes will be done to sort the array?
Correct Answer: C
Question 115 Explanation:
Bubble sort will take the worst case in n-1 comparisons but as per the input it takes only one pass.

Note: Official answer key given, Option-D as the correct answer.
Note: Official answer key given, Option-D as the correct answer.
4
2
1
3