Solved

What Will Be the Results of the Following Code? Final

Question 5

Multiple Choice

What will be the results of the following code? final int ARRAY_SIZE = 5;
Float[] x = float[ARRAY_SIZE];
For(int i = 1;i < = ARRAY_SIZE;i++)
{
X[i] = 10.0;
}


A) All the values in the array are initialized to 10.0
B) All the values,except the first,are set to 10.0
C) An error will occur when the program runs.
D) There will be a compilation error

Correct Answer:

verifed

Verified

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

Related Questions