Solved

What Will Be the Result of the Following Code

Question 34

Multiple Choice

What will be the result of the following code?
Int[] numbers = {50, 10, 15, 20, 25, 100, 30};
Int value = 0;
For (int i = 0; i < numbers.length; i++)
Value += numbers[i];


A) The value variable will contain the sum of all the values in the numbers array.
B) The value variable will contain the highest value in the numbers array.
C) The value variable will contain the lowest value in the numbers array.
D) The value variable will contain the average of all the values in the numbers array.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions