GIAC
GSSP-NET · Question #194
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 C. 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
- Astring MyArray[9] = new string;
- Bstring[] MyArray = new string[0 to 9];
- Cstring[] MyArray = new string[9];
- DOption Base 1
- EOption Base 0
How the community answered
(51 responses)- A2% (1)
- B4% (2)
- C71% (36)
- D8% (4)
- E16% (8)
Community Discussion
No community discussion yet for this question.