Microsoft
70-516 · Question #230
70-516 Question #230: Real Exam Question with Answer & Explanation
Sign in or unlock 70-516 to reveal the answer and full explanation for question #230. The question stem and answer options stay visible for context.
Question
The application UI displays a list of products in alphabetical order. To display each product, the UI requires the va of the product Id field and the product Name field. You need to write a LINO query that returns the product name and unique identifier without retrieving any other database columns. The query must create an anonymous type with a field named ProductName that contains the product name and a field named Id that contains the unique identifier. Which query expression should you write?
Options
- Avar productNaraes = from produce in context.Pares.OfType<Produet>()
- Bvar productNames = from product in context.Parts where product is Product
- Cvar produceNanes = from preduce in context.Pares orderby product.Name ascending
- Dvar productNaraes = from prcduct in context.Parts.OfType<Product>()-ToList()
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.