The intSales array is declared as follows: Dim intSales() As Integer = {10000, 12000, 900, 500, 20000}. The statement intSales(3) = intSales(3) + 10 will .
replace the 500 amount with 10
replace the 500 amount with 510
replace the 900 amount with 10
replace the 900 amount with 910
Answer is Wrong!
Answer is Right!
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.