nerdexam
Microsoft

70-515 · Question #89

You are developing an ASP.NET Web page that will display the median value from a sequence of integer values. You need to create an extension method to compute the median value. Which interface…

The correct answer is B. IEnumerable<T>. See the full explanation below for the reasoning.

Question

You are developing an ASP.NET Web page that will display the median value from a sequence of integer values. You need to create an extension method to compute the median value. Which interface should you add the extension method to?

Options

  • AIComparer<T>
  • BIEnumerable<T>
  • CIEnumerator<T>
  • DIEqualityComparer<T>

How the community answered

(32 responses)
  • A
    19% (6)
  • B
    72% (23)
  • C
    3% (1)
  • D
    6% (2)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice