Exam 70-536 : .NET Framework Application Development Foundation Part – 10

Question: You work as a developer at Company.com. You are creating an assembly named Company1. Company1 contains a public method. The global cache contains a second assembly named Company2. You must ensure that the public method is only called from Company2. Which permission class should you use? GacIdentityPermission PublisherIdentityPermission DataProtectionPermission StrongNameIdentityPermission Correct Answer: 4 Question: You are developing a method to hash data with the Secure Hash Algorithm. The data is passed to your method as a byte array named message. You need to compute the hash of the incoming parameter by using SHA1. You also need to place the … Click here to continue…..

Exam 70-536 : .NET Framework Application Development Foundation Part – 9

Question: You create a class library that contains the class hierarchy defined in the following code segment. (Line numbers are included for reference only.) 01 public class Group { 02 public Employee[] Employees; 03 } 04 public class Employee { 05 public string Name; 06 } 07 public class Manager : Employee { 08 public int Level; 09 } You create an instance of the Group class. You populate the fields of the instance. When you attempt to serialize the instance by using the Serialize method of the XmlSerializer class, you receive InvalidOperationException. You also receive the following error message: … Click here to continue…..

Exam 70-536 : .NET Framework Application Development Foundation Part – 8

Question: You are defining a class named CompanyClass that contains several child objects. CompanyClass contains a method named ProcessChildren that performs actions on the child objects. CompanyClass objects will be serializable. You need to ensure that the ProcessChildren method is executed after the CompanyClass object and all its child objects are reconstructed. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.) Apply the OnDeserializing attribute to the ProcessChildren method. Specify that CompanyClass implements the IDeserializationCallback interface. Specify that CompanyClass inherits from the ObjectManager class. Apply the OnSerialized attribute to the ProcessChildren method. Create … Click here to continue…..

Exam 70-536 : .NET Framework Application Development Foundation Part – 7

Question: You create a class library that is used by applications in three departments of your company. The library contains a Department class with the following definition.

Each application uses a custom configuration section to store departmentspecific values in the application configuration file as shown in the following code.

You need to write a code segment that creates a Department object instance by using the field values retrieved from the application configuration file. Which code segment should you use?

Correct Answer: 3 Question: Your company uses an application named Application1 that was compiled by … Click here to continue…..

Exam 70-536 : .NET Framework Application Development Foundation Part – 6

Question: You are testing a method that examines a running process. This method returns an ArrayList containing the name and full path of all modules that are loaded by the process. You need to list the modules loaded by a process named C:\TestApps\Process1.exe. Which code segment should you use?

Correct Answer: 3 Question: You are creating a strong-named assembly named Company1 that will be used in multiple applications. Company1 will be rebuilt frequently during the development cycle. You need to ensure that each time the assembly is rebuilt it works correctly with each application that uses … Click here to continue…..