Multiple Choice
string [ , ] name = new string [2, 3] {{"Alex", "Ben", "Cay"}, {"Jose", "Tyne", "Yin" }};
-Which of the following segments of code will display the first row of a two dimensional array?
A) for (int i = 0; i < anArray.GetLength(1) ; i++)
Console.Write(anArray[0, i] + "\t") ;
B) for (int i = 0; i < anArray.GetLength(0) ; i++)
Console.Write(anArray[0, i] + "\t") ;
C) for (int i = 0; i < anArray.GetLength(0) ; i++)
Console.Write(anArray[i, 0] + "\t") ;
D) for (int i = 0; i < anArray.GetLength(1) ; i++)
Console.Write(anArray[i, 0] + "\t") ;
Correct Answer:

Verified
Correct Answer:
Verified
Q3: C# has two types of string literals.
Q13: In C#, a two-dimensional array is usually
Q16: With a two-dimensional array, GetLength(0) returns the
Q20: Which of the following returns the number
Q23: There are several ways to do a
Q24: One of the special properties in the
Q25: The Length property can be used to
Q49: Like traditional arrays, indexes of ArrayList objects
Q61: string [ , ] name = new
Q62: The _ method adds an object to