The correct answer is: B. replace the 500 amount with 510
The statement intSales(3) = intSales(3) + 10
will add 10 to the value of the element at index 3 of the intSales
array. Since the element at index 3 is currently 500, the value of the array after the statement is executed will be:
Dim intSales() As Integer = {10000, 12000, 900, 510, 20000}
Option A is incorrect because the statement does not replace the entire array with the value 10. Option C is incorrect because the statement does not replace the 900 amount with 10. Option D is incorrect because the statement does not replace the 900 amount with 910.