Solved

Consider the Class Below

Question 32

Multiple Choice

Consider the class below:
Class Test
{
Static void Main()
{
Int[] a = new int[10];
For (int i = 0;i < a.Length;++i)
{
A[i] = i + 1 * 2;
}
Int result = 0;
For (int i = 0;i < a.Length;++i)
{
Result += a[i];
}
Console.WriteLine($"Result is: {result}") ;
}
}
The output of this C# program will be:


A) Result is: 62
B) Result is: 64
C) Result is: 65
D) Result is: 67

Correct Answer:

verifed

Verified

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

Related Questions