nerdexam
Microsoft

70-516 · Question #165

You are developing a new feature in the application to display a list of all bundled products. You need to write a LINQ query that will return a list of all bundled products. Which query expression…

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

Querying Data

Question

You are developing a new feature in the application to display a list of all bundled products. You need to write a LINQ query that will return a list of all bundled products. Which query expression should you use?

Options

  • Acontext.Parts.Cast<Product>()
  • Bcontext.Parts.OfType<Product>()
  • Ccontext.Parts.Cast<Product>()
  • Dcontext.Parts.OfType<Product>()

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.

Topics

#LINQ to Entities#OfType#type filtering#inheritance
Full 70-516 Practice