How should you complete the relevant code?

DRAG DROPYou are developing an application that will populate an extensive XML tree from a Microsoft SQL Server 2008
R2 database table named Contacts.
You are creating the XML tree. The solution must meet the following requirements:
Minimize memory requirements.
Maximize data processing speed.
You open the database connection. You need to create the XML tree.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct
locations in the answer area. Each code segment may be used once, more than once, or not at all. You may
need to drag the split bar between panes or scroll to view content.)
Select and Place:

DRAG DROPYou are developing an application that will populate an extensive XML tree from a Microsoft SQL Server 2008
R2 database table named Contacts.
You are creating the XML tree. The solution must meet the following requirements:
Minimize memory requirements.
Maximize data processing speed.
You open the database connection. You need to create the XML tree.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct
locations in the answer area. Each code segment may be used once, more than once, or not at all. You may
need to drag the split bar between panes or scroll to view content.)
Select and Place:

Answer:



Leave a Reply 7

Your email address will not be published. Required fields are marked *


Paul

Paul

I agree with the solution, but I suspect a typo in option 3:

Original option 3: _data.Add(i, new WeakReference(new Class(i*2), false));

Intended? option 3: _data.Add(i, new WeakReference(new Data(i*2), false));

Jah

Jah

Does not matter the point of the question is to use WeakReference so the Garbage Collector can pick it up.