PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You are writing an application that calls a Web service.
The application must call the Web service asynchronously and also perform a small amount of processing while the Web service is running.
The return value from the Web service is required for additional processing.
You need to ensure that the application can call the Web service asynchronously and also process the return value.
Your solution must keep processor cycles to a minimum.

What should you do?

What should you do?

A class library named MathLib contains the following code.

public class MathClass : MarshalByRefObject
{
public decimal DoHugeCalculation(int iterations)
{
decimal result;
//Some very lengthy calculations …
return result;
}
}

The MathLib class is hosted in a .NET Framework remoting server application.
A Windows application project running on a client computer contains the following class.

public class MathClient
{
public void ProcessHugeCalculation(int iterations)
{
MathClass cm = new MathClass();
decimal decRes = cm.DoHugeCalculation(iterations);
//process the result …
}
}

The MathClient class must call the MathClass class asynchronously by using remoting.
A callback must be implemented to meet this requirement.
You need to complete the implementation of the MathClient class.

What should you do?

What should you do?

You are creating an ASP.NET application by using the .NET Framework 3.5.

The application has performance problems. You plan to collect sample timing information for each page.

You need to ensure that while collecting the information, the following requirements are met:

– The application remains online.
– The trace output is not visible to end users.
– The trace output contains the rendering time for all controls on all the pages.

What should you do?

What should you conclude?

You are an enterprise application developer. Your company has a Web-based application that runs on a single Web server. Session information is currently being stored by using the default session mode. You are redesigning the application to run in a Web farm. You must ensure that the failure of any single server does not make session information unavailable. A developer in your team recommends using the default session mode on each server in the Web farm. You need to evaluate this recommendation. What should you conclude?