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

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.

Answer:

D. Version 1.0.0.0 of Employee is loaded by the publisher policy assembly.

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

Previous QuestionNext Question
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);
You have a .NET Remoting object named Utils. The Utils class is a client-activated .NET
Remoting object. You want to write a client application that creates and uses a Utils object. You
want the client application to hold onto a reference to a Utils object for the duration of its
execution.
What should you do?
A. Construct the Utils object, and hold the object in a member variable.
B. Construct the Utils object, and set the LifeTimeService.LeaseTime to 0.
C. In the client application, create an Implementation of the ISponsor interface. Implement the
Renewal method to extend the lease.
D. In the client application, create an Implementation of the ILease interface. Implement the
CurrentLeaseTime property to return Int32.MaxValue.