Multiple Choice
Consider the class below:
Class Test
{
Static void Main()
{
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];
}
}
Console.WriteLine($"Result is: {result}") ;
}
}
The output of this C# program will be:
A) Result is: 280
B) Result is: 154
C) Result is: 286
D) Result is: 332
Correct Answer:

Verified
Correct Answer:
Verified
Q34: If you want to pass an array
Q35: When accessing an element of an array,operations
Q36: When an app is executed from the
Q37: In an array of reference types,each element
Q38: Consider integer array values,which contains 5 elements.Which
Q40: The first element in every array is
Q41: Suppose that class Book has been defined.Which
Q42: The parameter in the Main header allows
Q43: Arrays may have dimensions.<br>A) one<br>B) two<br>C) more
Q44: Which of the following statements about arrays