nerdexam
Microsoft

70-516 · Question #271

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…

The correct answer is B. Public Oweindabte Properly Products() As bst(Of Product). See the full explanation below for the reasoning.

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

How the community answered

(19 responses)
  • A
    11% (2)
  • B
    79% (15)
  • C
    5% (1)
  • D
    5% (1)

Community Discussion

No community discussion yet for this question.

Full 70-516 Practice