nerdexam
GIAC

GSSP-NET · Question #88

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…

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

Question

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

(51 responses)
  • A
    12% (6)
  • B
    78% (40)
  • C
    2% (1)
  • D
    2% (1)
  • E
    6% (3)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice