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");


Answer: A

Computer Science & Information Technology

You might also like to view...

________ replaces perceived reality with a different world

A) Virtual reality B) Variable reality C) Alternate reality D) Augmentative reality

Computer Science & Information Technology

The work breakdown structure (WBS) can only be prepared with a complex, specialized desktop PC application.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

An administrator receives a call from a user reporting that one of the application servers is not accessible by host name but is accessible via an IP address. Which of the following is the MOST likely issue?

A. The DNS reverse lookup zone is misconfigured. B. The DNS MX record type is misconfigured. C. The DNS resource record is missing. D. The DNS forward lookup zone is missing.

Computer Science & Information Technology

The Find option can be activated using the _____ shortcut keys.

A. Ctrl+F B. Shift+F C. Alt+F D. Fn+F

Computer Science & Information Technology