nerdexam
GIAC

GSSP-.NET · Question #34

(Topic 1) Maria works as a Software Developer for BlueWell Inc. She develops an application, named App1, using Visual C# .NET. The application displays employee details from a SQL Server database…

The correct answer is B. string[] MyArray = new string[9]. See the full explanation below for the reasoning.

Question

  • (Topic 1)

Maria works as a Software Developer for BlueWell Inc. She develops an application, named App1, using Visual C# .NET. The application displays employee details from a SQL Server database. Maria wants to use a string array, named MyArray, in the application code to store employee names. Which of the following statements will she use to declare MyArray?

Options

  • AOption Base 1 string[] MyArray = new string[9];
  • Bstring[] MyArray = new string[9];
  • COption Base 0 string[] MyArray = new string[9];
  • Dstring[] MyArray = new string[0 to 9];
  • Estring MyArray[9] = new string;

How the community answered

(27 responses)
  • A
    11% (3)
  • B
    81% (22)
  • C
    4% (1)
  • E
    4% (1)

Community Discussion

No community discussion yet for this question.

Full GSSP-.NET Practice