The following is the pseudocode for which type of algorithm?
```
For maxElement = each subscript in the array, from the last to the first
For index = 0 To maxElement - 1
If array[index] > array[index + 1]
swap array[index] with array[index + 1]
End If
End For
End For
```
a. bubble sort
b. binary sort
c. bubble search
d. selection sort
e. None of these
a. bubble sort
Computer Science & Information Technology
You might also like to view...
Discuss the relationship between object-oriented programming and event-driven programming
What will be an ideal response?
Computer Science & Information Technology
Add another constructor for the Student class that takes a name and a num- ber which is the number of grades this student will have. It should create the gradeArray based on the passed number of grades.
What will be an ideal response?
Computer Science & Information Technology