There are several ways to do a compile-time initialization of two-dimensional arrays. All of the following are valid ways EXCEPT ____.
A) int [, ] anArray = {{100, 100, 100} {100, 100, 100}};
B) int [ , ] anArray = new int [ , ] {{100, 100, 100} {100, 100, 100}};
C) int [ , ] anArray = new int [2, 3 ] {{100, 100, 100} {100, 100, 100}};
D) int [ ] anArray = new int [10 ] {{100, 100, 100} {100, 100, 100}};
Correct Answer:
Verified
Q23: C# has two types of string literals.
Q24: Normally you will want to use two
Q25: The string type allows individual characters to
Q26: With a two-dimensional array, GetLength(0) returns the
Q27: Which of the following could be a
Q29: The ArrayList class can be used to
Q30: A two dimensional array is accessed much
Q31: The ArrayList does not allow you to
Q32: A Hashtable represents a collection of key/value
Q33: If an array named num is dimensioned
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