PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You are creating a Windows application by using the .NET Framework 3.5. The application stores customer details in a database within the corporate network. The application has a form that contains a TextBox control to capture the customer name. The auto-complete feature must be used in the TextBox control to display the
customer names entered since the application started.You need to ensure that the application meets the following requirements:

* It is available in the offline mode.
* It provides the fastest response time for the auto-complete feature.

What should you do?

What should you do?

You are an enterprise application developer. You plan to design the component architecture of a new large-scale application. You need to design a component architecture to meet the following requirements: Class objects must consist of multiple aggregate objects.Multiple aggregate objects must be instantiated only through the object that is enclosed within the class.Certain aggregate objects must be directly instantiated by user code.Multiple aggregate objects must allow user code to override properties within the object.All class objects must be versioned together.
What should you do?

What should you recommend?

You are creating a Windows application by using the .NET Framework 3.5.
You plan to evaluate the design strategy of the application.
The design strategy contains the following elements:
The application uses the ClickOnce deployment.
The application runs on computers that have the Microsoft Windows 98 operating system, a 256-MB RAM,
and a 1-GB disk space.
The application transmits the collected data to a server by using a Windows Communication Foundation
(WCF) service.
The application must meet the following requirements:
It displays real-time data.
It gathers data from a serial interface.
The code written for it is small and can be easily deployed.
You discover that the design strategy does not function properly.
You need to ensure that the design strategy functions appropriately.
What should you recommend?

What should you do?

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
The application uses a Web farm to host several Windows Communication Foundation (WCF) services.
The services receive messages from several clients over the Internet that implement the same data contract.
You develop a new version of the data contract. An older version of the data contract had elements that were optional that are now required.
Default element is an acceptable variation for the optional element.Not all customers will be able to implement the new version of the data contract
before you complete deployment to the entire Web farm.You need to define a validation strategy that will ensure that all the clients can successfully
communicate by using the new data contract.
What should you do?

What should you do?

You create a windows application by using the .NET Framework 3.5. The application has a business layer and a data access layer class library. You create a Web UI by using ASP.NET for the application. You discover excessive code repetition on the flow of the application between the Windows Forms UI and the Web UI. You need to increase code reuse between the applications. What should you do?

Which type of object(s) should you choose?

You are an enterprise application developer. You are creating a distributed application. The application transfers a parent table and a child table from a business component. The application modifies the two tables and transfers updates to the business component. The distributed application must enforce the constraints for referential integrity. The components must provide access to values of the correct type at compile time. You need to identify the type of object for serialization.
Which type of object(s) should you choose?

What should you do?

You create a Windows application by using the .NET Framework 3.5.
The application is used for data entry purposes. The application has the following features:
Data is read from a shared Microsoft SQL Server 2008 database instance.
Data entered and saved by the users is temporarily stored in a local SQL Server 2008 Compact edition
database instance.
When the users log off from the application, new records from the local database instance are
synchronized to the shared database.
You discover that the performance of the application is affected when multiple users log off from the
application at the same time.
You need to design a performance improvement strategy for the application by using minimum amount of
cost, time, and development effort.
What should you do?

What should you do?

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application communicates with other systems by using a proprietary messaging format. The company must monitor the response-time of the communication. The monitoring strategy of the application must meet the following requirements:
– Information must be logged to a central location.
– Historical data must not be overwritten without administrator action.
– Information can be displayed in real time.
– Information can be displayed in graphical format.
– Information can be displayed along with system-supplied performance data.
You need to design a strategy that monitors response-times to meet the requirements.
What should you do?

What should you do?

You are an enterprise application developer. You are reviewing the following code segment.
(Line numbers are included for reference only.)

01 public class MyResource: IDisposable
{
02
03 private bool disposed = false;
04
05 public void Dispose()
{
06 Dispose(true);
07
}
08
09 private void Dispose(bool disposing)
{
10 if(!this.disposed)
{
11 if(disposing)
{
12 ReleaseManagedResources();
13
}
14 ReleaseUnmanagedResources();
15 disposed = true;
16
}
17
}18
19 ~MyResource()
{
20 ReleaseManagedResources();
21 ReleaseUnmanagedResources();
22
}
23
}

You discover that the Dispose pattern is implemented incorrectly. You need to modify the code segment to ensure that the dispose pattern is implemented correctly.
What should you do?