The correct answer is A. {75, 78, 83, 90}.
The Array.sort
method sorts the elements of an array in ascending order. In this case, the array contains the following elements:
- 78
- 83
- 75
- 90
When the Array.sort
method is applied to this array, the elements are sorted in ascending order, resulting in the following array:
- 75
- 78
- 83
- 90
Option B is incorrect because the elements are not sorted in ascending order. Option C is incorrect because the elements are not sorted in ascending order. Option D is incorrect because the code does not compile.