Solved

Look at the Following Code Sample: Int[] Numbers =

Question 53

Multiple Choice

Look at the following code sample: int[] numbers = { 1, 2, 3, 4, 5 };
Int highest = numbers[0];
For (int index = 1; index < numbers.Length; index++)
{
If (numbers[index] > highest)
{
Highest = numbers[index];
}
}
What value will the highest variable contain when the loop finishes?


A) 1
B) 3
C) 5
D) 15

Correct Answer:

verifed

Verified

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

Related Questions