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:

Verified
Correct Answer:
Verified
Q8: To declare an array, the value(s) used
Q22: Array elements are normally stored in contiguous,
Q31: Which loop structure can be used to
Q43: Given an array declaration of int anArray[1000],
Q45: If you do not know how many
Q45: int [ ] anArray = new int
Q46: Arrays are reference variables.
Q55: Given an array declaration of int anArray[1000],
Q70: Array identifiers are normally defined using a
Q72: Properties are added to a class to