Multiple Choice
Consider the class below:
Public class Test
{
Public static void main(String[] args)
{
Int[] a = {99, 22, 11, 3, 11, 55, 44, 88, 2, -3};
Int result = 0;
For (int i = 0; i <
A.length; i++) {
If (a[i] > 30)
Result += a[i];
}
System.out.printf("Result is: %d%n", result) ;
}
}
The output of this Java program will be:
A) Result is: 280.
B) Result is: 286.
C) Result is: 154.
D) Result is: 332.
Correct Answer:

Verified
Correct Answer:
Verified
Q10: The preferred way to traverse a two-dimensional
Q14: Which of the following statements is false?<br>A)
Q16: Which of the following statements is false?<br>A)
Q21: Class Arrays methods sort, binarySearch, equals and
Q23: Which command below runs TestProgram, and passes
Q27: Which statement below initializes array items to
Q28: In Java,multidimensional arrays _.<br>A)are not directly supported.<br>B)are
Q40: Which of the following statements about creating
Q44: Consider array items,which contains the values 0,2,4,6
Q45: Which method call converts the value in