nerdexam
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)
  • A
    5% (1)
  • B
    70% (14)
  • C
    15% (3)
  • D
    10% (2)

Community Discussion

No community discussion yet for this question.

Full 98-361 Practice