Microsoft
70-516 · Question #41
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application. The application connects to a Microsoft SQL Server database. You create the classes shown in the followi
The correct answer is C. var query =. See the full explanation below for the reasoning.
Question
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application. The application connects to a Microsoft SQL Server database. You create the classes shown in the following exhibit:
You add the following code segment to the application. (Line numbers are included for reference only.) 01 public void QueryPlayers (List <League> leagues) { 02 ... 03 } You create a LINQ query to retrieve a collection of Player objects. You need to ensure that the collection includes all the players from each team and every league. Which code segment should you insert at line 02?
Exhibit
Options
- Avar query =
- Bvar query =
- Cvar query =
- Dvar query =
How the community answered
(20 responses)- A5% (1)
- B15% (3)
- C75% (15)
- D5% (1)
Community Discussion
No community discussion yet for this question.
