nerdexam
Microsoft

70-573 · Question #192

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…

The correct answer is D. codc.Products.ToList. See the full explanation below for the reasoning.

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. Dim codc As New AdventureWorksDataContext(New codc.Credentials = CredentialCache.DefaultCredentials You need to read all items in Products into an object. Which method should you use?

Options

  • Acodc.Products.All
  • Bcodc.Products.AsQueryable
  • Ccodc.Products.ElementAt
  • Dcodc.Products.ToList

How the community answered

(42 responses)
  • A
    14% (6)
  • B
    2% (1)
  • C
    5% (2)
  • D
    79% (33)

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice