Microsoft
70-573 · Question #102
70-573 Question #102: Real Exam Question with Answer & Explanation
Sign in or unlock 70-573 to reveal the answer and full explanation for question #102. The question stem and answer options stay visible for context.
Question
You create a Microsoft .NET Framework console application that uses a Representational State Transfer (REST) API to query a custom list named Products. The application contains the following code segment. AdventureWorksDataContext codc = new AdventureWorksDataContext(new codc.Credentials = CredentialCache.DefaultCredentials; You need to read all items in Products into an object. Which method should you use?
Options
- Acode.Products.ToList
- Bcode.Products.All
- Ccode.Products.AsQueryable
- Dcode.Products.ElementAt
Unlock 70-573 to see the answer
You've previewed enough free 70-573 questions. Unlock 70-573 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.