nerdexam
Microsoft

70-516 · Question #161

70-516 Question #161: Real Exam Question with Answer & Explanation

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

Question

The database contains orphaned Color records that are no longer connected to Part records. You need to clean up the orphaned records. You have an existing ContosoEntities context object named context. Which code segment should you use?

Options

  • Avar unusedColors = context.Colors.
  • Bcontext.Colors.TakeWhile(c => !c.Parts.Any());
  • Ccontext.Colors.ToList().RemoveAll(c => !c.Parts.Any());
  • Dvar unusedColors = context.Colors.Where(c => !c.Parts.Any());

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