int [ ] anArray = new int [10];
int [ ] anotherArray = {6, 7, 4, 5, 6, 2, 3, 5, 9, 1};
-Which of the following would copy all of the elements from anotherArray to anArray?
A) Array.Copy(anotherArray, 0, anArray, 0, 10) ;
B) Array.Copy(anotherArray, anArray)
C) anArray = anotherArray
D) all of the above
Correct Answer:
Verified
Q8: Array identifiers are normally defined using a
Q28: Given an array declared to hold 100
Q30: Given an array declared to hold 100
Q32: If you do not know how many
Q38: If you try to access the array
Q42: One of the special properties in the
Q45: int [ ] anArray = new int
Q49: Which of the following could be a
Q50: When two or more arrays have a
Q56: What happens when you assign one array
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents