PrepAway - Latest Free Exam Questions & Answers

Category: 70-536

Exam 70-536: TS: Microsoft .NET Framework – Application Development Foundation

You need to cancel the assertion.

You are developing a class library that will open the network socket connections to computers on the network.
You will deploy the class library to the global assembly cache and grant it full trust.
You write the following code to ensure usage of the socket connections.
SocketPermission permission = new SocketPermission(PermissionState.Unrestricted); permission.Assert();
Some of the applications that use the class library might not have the necessary permissions to open the network socket connections.
You need to cancel the assertion.

You need to establish a user security context that will be used for authorization checks such as IsInRole.

You are writing code for user authentication and authorization.
The username, password, and roles are stored in your application data store.
You need to establish a user security context that will be used for authorization checks such as IsInRole.
You write the following code segment to authorize the user.
if (!TestPassword(userName, password))
throw new Exception(“could not authenticate user”);
String[] userRolesArray = LookupUserRoles(userName);

What should you do?

You have been asked by you superiors at Domain.com to create a child application domain.
The new child application domain has to specify a different assembly path than that of the parent application domain.
You need to ensure that your solution meets Domain.com’s requirements.
What should you do?

What should you do?

You are developing a .NET Framework 2.0 enterprise application on Certkiller -WS552.
The application will be used to allow the users to send e-mail messages and should allow users to send HTML-based e-mails,
but the users should not be able to use the HTML tag to embed images in the HTML document.
The images are not externally hosted so instead the images must be sent as part of the e-mail message.
You are required to select which class to use.
What should you do?

What should you do?

You are in the process of creating an application for Domain.com’s Human Resources department that tracks employee benefits.
You have to store current employee data without recompiling the application.
You elect to store this employee data as a custom section in the application configuration file.
The relevant portion of the application configuration file is shown in the following exhibit:

You want to use the .NET 2.0 Configuration API to access the custom section.
You need to ensure that programmatic access of the EmployeeSection element is enabled.
What should you do? (Choose two)

What should you do?

Domain.com has given you the task of creating medical billing application that will deal with various insurance vendors.
The appropriate assemblies have to be loaded and unloaded dynamically based on the patient’s insurance provider.
All of these insurance assemblies are located in C:Insurance Assemblies.
You have to ensure that when the new application first loads, it has to load all assemblies into a separate application domain.
You need to create the child application domain and load all assemblies it using the correct code.
What should you do?

What should you do?

You have recently created an application that includes the code shown below.
public delegate string GetFileContentsDel ();
public string GetFileContents () {
//Process file and return results
}
You now need to invoke the GetFileContents method asynchronously.
You have to ensure that the code you use to invoke the GetFileContents method will continue to process other user instructions, and displays the results as soon as the GetFileContents method finishes processing. What should you do?

What should you do?

You have created a Windows service application for the purpose of monitoring the number of active
service requests running on Domain.com’s server.
You want to configure this Windows service application to produce a report every ten minutes.
You start by placing the reporting logic in the GenerateReport method of this Windows service.
You want to create a Timer object that invokes this method every ten minutes.
What should you do?


Page 1 of 2312345...1020...Last »