nerdexam
Microsoft

70-516 · Question #146

You have executed the Where query extension method on your collection, and it returned IEnumerable of Car, but you want to assign this to a variable whose type is List Of Car. How can you convert…

Sign in or unlock 70-516 to reveal the answer and full explanation for question #146. The question stem and answer options stay visible for context.

Question

You have executed the Where query extension method on your collection, and it returned IEnumerable of Car, but you want to assign this to a variable whose type is List Of Car. How can you convert the IEnumerable of Car to List Of Car?

Options

  • AUse CType (C# cast).
  • BIt can't be done.
  • CUse the ToList() query extension method.
  • DJust make the assignment

Unlock 70-516 to see the answer

You've previewed enough free 70-516 questions. Unlock 70-516 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-516 Practice