Microsoft
98-361 · Question #323
You are writing code for a business application by using C#. Write the following statement to declare an array: int[] numbers = { 1, 2, 3, 4, 5, }; Now, you need to access the second item in this…
The correct answer is B. numbers[1]. See the full explanation below for the reasoning.
Question
You are writing code for a business application by using C#. Write the following statement to declare an array:
int[] numbers = { 1, 2, 3, 4, 5, }; Now, you need to access the second item in this array (the number 2). Which of the following expression should you use?
Options
- Anumbers[0]
- Bnumbers[1]
- Cnumbers[2]
- Dnumbers[3]
How the community answered
(20 responses)- A5% (1)
- B70% (14)
- C15% (3)
- D10% (2)
Community Discussion
No community discussion yet for this question.