What is the array of these statements? Dim intScores As Integer = {78, 83, 75, 90} Array.reverse (intScores)

{ 75, 78, 83, 90}
{ 78, 75, 90, 83 }
{ 90, 83, 78, 75 }
Compilation Error

The correct answer is C. {90, 83, 78, 75}.

The Array.reverse() method reverses the order of the elements in an array. In this case, the array has four elements, so the order of the elements will be reversed as follows:

  • 90
  • 83
  • 78
  • 75

Option A is incorrect because the elements are not in the correct order. Option B is incorrect because the elements are not in the correct order. Option D is incorrect because the code will not compile.

Exit mobile version