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

Suppose You are developing a Windows-based application that requires the use of a calculation function
named Calculate Value. This function includes the following signature: int Calculate Value(int x) ;
Calculate Value is located in an unmanaged DLL named Company Functions.dll, and is not part
of a COM interface.
You need to be able to use Calculate Value in your application.
Which action or actions should you take? (Choose all that apply)
A. Use Regsvr32.exe to register CompanyFunctions.dll.
B. Use Visual Studio .NET to add a reference to CompanyFunctions.dll.
C. To your application, add the following code segment: using CompanyFunctions;
D. To your application, add the following code segment: [DllImport("CompanyFunctions.dll")]
public static extern int Calculate Value(int x);

Answer:

D. To your application, add the following code segment: [DllImport("CompanyFunctions.dll")]
public static extern int Calculate Value(int x);

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

Previous QuestionNext Question
Suppose You have an ASP.NET application named ES WebApp. This application uses a private assembly
named Employee to store and retrieve employee data. Employee is located in the bin directory of
ES WebApp. You develop a new ASP.NET application named ESWebApp2 that also needs to
use Employee. You assign Employee a strong name, set its version to 1.0.0.0, and install it in the
global assembly cache. You then create a publisher policy assembly for version 1.0.0.0 and
install it in the global assembly cache. You compile ESWebApp2 against version 1.0.0.0. You do
not recompile My WebApp. You then run ES WebApp.
What is the most likely result?
A. A Version Not Found Exception is thrown.
B. Employee is loaded from the bin directory.
C. Version 1.0.0.0 of Employee is loaded from the global assembly cache.
D. Version 1.0.0.0 of Employee is loaded by the publisher policy assembly.
Suppose You have a Dataset object named ES DataSet that is populated with data from a Microsoft SQL
Server database. This object contains insertions, deletions, and updates to the data. You want to
apply the data changes in ES DataSet to the database. You decide to use the Sulligent data
provider. You need to create a data object that you will use to update the database. Which code
segment should you use?
A. SqlDataReader myDataReader;
B. SqlDataAdapter mySqlDataAdapter = new sqlDataAdapter();
C. DataObject myDataObject = new DataObject();
D. SqlParameter myParameter = new SqlParameter();