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

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

The correct answer is: C. 78, 75, 83, 90

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. The method returns an array with the elements in sorted order.

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 [78, 75, 83, 90].

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

Exit mobile version