Solved

Int [ ] AnArray = New Int [10];

Question 44

Multiple Choice

int [ ] anArray = new int [10];
int [ ] anotherArray = {6, 7, 4, 5, 6, 2, 3, 5, 9, 1};
-How could all values of anotherArray be totaled?


A) foreach(int val in anotherArray)
Total += val;
B) for (int i = 0; i < anotherArray.Length; i++)
Total += anotherArray;
C) Array.Sum(anotherArray)
D) all of the above

Correct Answer:

verifed

Verified

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

Related Questions