MCSD.NET - 70-320 Exam Question:
Download Questions PDF

Suppose You are developing an application named ExamSApp by using Visual C# .NET and Visual Basic
.NET. The application will use functions form a DLL written in unmanaged code. One function
requires the calling application to allocate unmanaged memory, fill it with data, and pass the
address of the memory to the function. On returning from the function, the calling application must
deallocate the unmanaged memory.
You need to decide how your application will handle unmanaged memory.
What should you do?
A. Use a byte array.
B. Use the methods of the Marshal class.
C. Use the methods of the MemoryStream class.
D. Derive a new class from the Stream class, and override the allocation methods.

MCSD.NET - 70-320 Exam Interview Question
MCSD.NET - 70-320 Exam Interview Question

Answer:

B. Use the methods of the Marshal class.

Download MCSD.NET - 70-320 Exam Interview Questions And Answers PDF

Previous QuestionNext Question
You have a DataSet object named loanCustomersDataSet that contains customers serviced by
the loan department of ExamSlink Inc. You receive a second DataSet object named
assetCustomersDataSet that contains customers serviced by the asset management department
of your company. Both objects have the same structure. You want to merge
assetCustomersDataSet into loanCustomersDataSet and preserve the original values in
loanCustomersDataSet.
Which code segment should you use?
A. loanCustomersDataSet.Merge(assetCustomersDataSet);
B. loanCustomersDataSet.Merge(assetCustomersDataSet, true);
C. assetCustomersDataSet.Merge(loanCustomersDataSet);
D. assetCustomersDataSet.Merge(loanCustomersDataSet, true);
Suppose You create three Windows services named ES1, ES2, and ES3. You want to install all three
services on a computer named CompanyA by using the Installer tool (Installutil.exe).
On the command line of CompanyA, you enter and run the following command: Install util ES1
ES2 ES3
During the installation process, ES3 throws an installation error. The installation process
completes.
How many of the three services are now installed on CompanyA?
A. None
B. One
C. Two
D. Three