Microsoft
70-516 · Question #271
70-516 Question #271: Real Exam Question with Answer & Explanation
Sign in or unlock 70-516 to reveal the answer and full explanation for question #271. The question stem and answer options stay visible for context.
Question
You use Microsoft Visual Studio 2010 and Microsoft NET framework 4 to create an application the application uses the ADO NET entity framework to model entities. You define a Category class by writing the following code segment (Line numbers are included for reference only) Public Class Category 01 Public Class Category 02 Public Property CategorylDO As Integer 03 Get 04 End Get 05 Set 06 End Set 07 End Property 08 Public Property CategoryName() As String 09 Get 10 End Get 11 Set 12 End Set 13 End Property 14 Public Property Description() As String 15 Get 16 End Get 17 Set 18 End Set 19 End Property 20 Public Property Picture() As Byte() 21 Get 22 End Get 23 Set 24 End Set 25 26 End Property You need to add a collection named Products to the Category class. You also need to ensure that the collection supports deterred loading. Which code segment should you insert at line 25?
Options
- APublic Shared Property Products() As List(Of Product)
- BPublic Oweindabte Properly Products() As bst(Of Product)
- CPublic UustOvemnde Properly Products() As bst (Of Produrt)
- DProtected Property Products() As IJst(Of Product) Get End Get
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.