In a bubble sort, what order are the elements in an array placed using the following call to a swap module?

// the array is named scores
// d is the index value of an array element
If scores[d] < scores[d + 1] Then
Call swap(scores[d], scores[d + 1])

a. ascending
b. descending
c. alphabetic
d. numeric

b. descending

Computer Science & Information Technology

You might also like to view...

It is best to use full sentences on slides in a presentation

Indicate whether the statement is true or false

Computer Science & Information Technology

A hashtag within a tweet is ________

Fill in the blank(s) with correct word

Computer Science & Information Technology