70-483 Programming in C#

Loading demo links...

Showing 7–9 of 15 questions

Question 7 (Volume B)

You have the following class definition.

You discover that when you execute the following code, the SpawnTasks method enters an infinite loop.

You need to prevent the SpawnTasks method from entering an infinite loop.

Which two changes should you make to the code? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

Select all that apply, then click Submit answer.

  • Add a property to the ProcessManagement class. Modify the property to allow only positive values to be stored in the DegreeOfParallelism member variable.

  • Add a property to the ProcessManagement class. Modify the property to allow only positive values to be stored in the NumberOfTasks member variable.

  • Change the accessor of the ProcessManagement class to internal.

  • Change the accessor of the DegreeOfParallelism member variable to private.

  • Change the accessor of the SpawnTasks method to private.

Question 8 (Volume A)

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.

NOTE: Each correct selection is worth one point.

Select all that apply, then click Submit answer.

  • Use the Assembly Registration tool (regasm.exe) to register the assembly and to copy the assembly to the GAC.

  • Use the Strong Name tool (sn.exe) to copy the assembly into the GAC.

  • Use Microsoft Register Server (regsvr32.exe) to add the assembly to the GAC.

  • Use the Global Assembly Cache tool (gacutil.exe) to add the assembly to the GAC.

  • Use Windows Installer 2.0 to add the assembly to the GAC.

Question 9 (Volume A)

You are developing an application. The application includes classes named Employee and Person and an interface named IPerson.

The Employee class must meet the following requirements:

It must either inherit from the Person class or implement the IPerson interface. It must be inheritable by other classes in the application.

You need to ensure that the Employee class meets the requirements.

Which two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

Select all that apply, then click Submit answer.

  • Option A

  • Option B

  • Option C

  • Option D