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
Q43: The _ method adds an object to
Q43: string sValue = "Life is about choices";
string
Q45: int [ , , ] anArray =
Q51: _ are types of data structures that
Q53: Which method in the string class might
Q54: Which class represents a First-In-First-Out (FIFO) collection,
Q55: Console.Write("AnExample".PadLeft(20, "#") returns _.
A) ###########AnExample
B) AnExample###########
C)
Q56: The method _ of the ArrayList class
Q57: Console.Write("anExample".IndexOf("a")); returns _.
A) null
B) 4
C) 04
D) 0
Q60: The method in the string class that
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