Which of the following statements will she use to declare MyArray?

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?
A . Option Base 1 string[] MyArray = new string[9];
B . string[] MyArray = new string[9];
C . Option Base 0 string[] MyArray = new string[9];
D . string[] MyArray = new string[0 to 9];
E . string MyArray[9] = new string;

Answer: B

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments