READ Free Dumps For Microsoft- 70-483
Question ID 17014 | You are developing an application. The application includes classes named Mammal and
Animal and an interface named IAnimal.
The Mammal class must meet the following requirements:
✑ It must either inherit from the Animal class or implement the IAnimal interface.
✑ It must be inheritable by other classes in the application.
You need to ensure that the Mammal class meets the requirements.
Which two code segments can you use to achieve this goal? (Each correct answer
presents a complete solution. Choose two.)
|
Option A | Option A
|
Option B | Option B
|
Option C | Option C
|
Option D | Option D
|
Correct Answer | A,C |
Explanation Explanation: When applied to a class, the sealed modifier prevents other classes from inheriting from it. http://msdn.microsoft.com/en-us/library/88c54tsw(v=vs.110).aspx
Question ID 17015 | You are developing an assembly that will be used by multiple applications.
You need to install the assembly in the Global Assembly Cache (GAC).
Which two actions can you perform to achieve this goal? (Each correct answer presents a
complete solution. Choose two.)
|
Option A | Use the Assembly Registration tool (regasm.exe) to register the assembly and to copy the assembly to the GAC.
|
Option B | Use the Strong Name tool (sn.exe) to copy the assembly into the GAC.
|
Option C | Use Microsoft Register Server (regsvr32.exe) to add the assembly to the GAC.
|
Option D | Use the Global Assembly Cache tool (gacutil.exe) to add the assembly to the GAC.
|
Option E | Use Windows Installer 2.0 to add the assembly to the GAC.
|
Correct Answer | D,E |
Explanation Explanation: There are two ways to deploy an assembly into the global assembly cache: Use an installer designed to work with the global assembly cache. This is the preferred option for installing assemblies into the global assembly cache. Use a developer tool called the Global Assembly Cache tool (Gacutil.exe), provided by the Windows Software Development Kit (SDK). Note: In deployment scenarios, use Windows Installer 2.0 to install assemblies into the global assembly cache. Use the Global Assembly Cache tool only in development scenarios, because it does not provide assembly reference counting and other features provided when using the Windows Installer. http://msdn.microsoft.com/en-us/library/yf1d93sz%28v=vs.110%29.aspx