Microsoft
70-516 · Question #241
70-516 Question #241: Real Exam Question with Answer & Explanation
Sign in or unlock 70-516 to reveal the answer and full explanation for question #241. The question stem and answer options stay visible for context.
Question
The application must provide a component part list for any product. The component part list must give the quantity of each distinct part that is required to manufacture that product. You need to create a LINQ expression that delivers a result of type IEnumerable<Tuple<int, Part>> to meet the requirements. Which expression should you use?
Options
- AIEnumerable < Tuple < int , Part>> result = part.Descendants . GroupBy (p => p).
- BIEnumerable < Tuple < int , Part>> result = part.Descendants . ToDictionary (c => c).
- CIEnumerable < Tuple < int , Part>> result = part.Children . GroupBy (p => p).Select(g =>
- DIEnumerable < Tuple < int , Part>> result = part.Children .Distinct(). GroupBy (p => p).
- EIEnumerable < Tuple < int , Part>> result = part.Descendants .Distinct(). GroupBy (p =>
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.