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 total += anotherArray;
C) Array.Sum(anotherArray)
D) all of the above
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q31: Which loop structure can be used to
Q32: When you pass an array to a
Q33: To create an array to hold the
Q34: The type used in the foreach expression
Q35: All data values placed in an array
Q37: Which of the following can be used
Q38: Arrays are _ variables. The array identifier
Q39: There are several ways to do a
Q40: int [ ] anArray = new int
Q41: With parallel arrays, the relationship is established