What will be the output of the following Visual Basic code? Dim intScores As Integer = {78, 83, 75, 90} Array.Sort(intScores)

90,83,78,75
78,75,83,90
78, 83, 75,90
75,78, 83,90

The correct answer is C.

The Array.Sort method sorts the elements of an array in ascending order. The elements of the array are passed to the method as an argument, and the method returns the sorted array.

In this case, the array intScores contains the elements 78, 83, 75, and 90. When the Array.Sort method is called, the elements of the array are sorted in ascending order, resulting in the array {75, 78, 83, 90}.

The other options are incorrect because they do not represent the sorted order of the elements in the array.

Exit mobile version