SSC MTS EXAM

SSC

COMPUTER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is bubble sort?
A
A simple sorting algorithm
B
It’s about sorting bubbles
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -Bubble sort is a basic algorithm for arranging a string of numbers or other elements in the correct order. The method works by examining each set of adjacent elements in the string, from left to right, switching their positions if they are out of order.

Detailed explanation-2: -Bubble sort is a type of sorting algorithm you can use to arrange a set of values in ascending order. If you want, you can also implement bubble sort to sort the values in descending order. A real-world example of a bubble sort algorithm is how the contact list on your phone is sorted in alphabetical order.

There is 1 question to complete.