PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you recommend?

You create Microsoft Windows-based applications. You are responsible for evaluating the deployment of a product-pricing application. This application will be deployed on portable computers that are used by a team of sales personnel.

The application must meet the following requirements:

The application must run successfully on a dial-up connection.
Users need to run the application locally.
New features are added to the application on a monthly basis.

You need to provide a deployment solution that will ensure your users always have the latest version of the application when they connect to the corporate network. What should you recommend?

Which assembly/assemblies should you include?

You are an enterprise application developer. You create an ASP.NET application that calls a .NET remoting object named TradingEngine. The object implements an interface named ITradingEngine. This interface defines a method that returns a SecurityDataTable object. The application types are partitioned into assemblies in the following manner: The TradingEngine class is implemented in an assembly named TradingEngineLib.The ITradingEngine interface is implemented in an assembly named TradingEngineInterfaceLib.The SecurityDataTable class is implemented in an assembly named TradingEntities. You need to identify the minimum set of assemblies necessary for deployment in the ASP.NET application. Which assembly/assemblies should you include?

What should you do?

You create Microsoft Windows-based applications. You are creating a method. Your applications will call the method multiple times. You write the following lines of code for the method.

public string BuildSQL(string strFields, string strTable, string strFilterId) {
string sqlInstruction = “SELECT “;
sqlInstruction += strFields;
sqlInstruction += ” FROM “;
sqlInstruction += strTable;
sqlInstruction += ” WHERE id =”;
sqlInstruction += strFilterid;
return sqlInstruction;
}

The method generates performance issues. You need to minimize the performance issues that the multiple string concatenations generate.
What should you do?

Which namespace structure should you use?

You are an enterprise application developer. You develop an application for a food store subsidiary of a company named Contoso, Ltd. The application contains the following components: ASP.NET applicationBusiness entitiesBusiness componentsData access layerLoggingData access helper The application design must meet the following requirements:
Use an N-tier environmentUse components that can be reusedUse assembly names that map to the first three sections of the namespaces You need to identify the structure of the namespaces.
Which namespace structure should you use?

which tier of the application architecture this component will belong to. Where should you place the component

You create Microsoft Windows-based applications. You are upgrading an application that contains custom data-centric user controls. Each of these controls implements its own custom data-binding logic. Much of the data-binding code is similar from control to control. You create a new component that combines the common data-binding logic. You change the existing controls so they use this new component. You need to decide which tier of the application architecture this component will belong to. Where should you place the component?

What should you do?

You are an enterprise application developer. You are creating a component that will be used to analyze various data sources. The component performs the following tasks in sequence: It accepts data from multiple online sources.It analyzes the data from each source.It returns a computed aggregate value. The types of data sources can change over the life of the component. You need to design the component to improve scalability. You also need to ensure that the component design allows for addition of data sources in future and also for modifications in the existing data sources. What should you do?

Which configuration setting should you choose?

You create Web-based client applications. You are creating a page for a Web-based application.
You must ensure that the page meets the following requirements:

Uses forms authentication to validate users.
Deploys on a single Web server.
Is highly secure.
Gives higher priority to security than speed.

You need to recommend a configuration setting for your page. Which configuration setting should you choose?

Which code segment should you use?

You are creating a Windows Forms application that includes the database
helper methods UpdateOrder and UpdateAccount. Each method wraps code that connects to a Microsoft SQL Server 2005 database, executes a Transact-SQL statement, and then disconnects from the database. You must ensure that changes to the database that result from the UpdateAccount method are committed only if the UpdateOrder method succeeds. You need to execute the UpdateAccount method and the UpdateOrder method.
Which code segment should you use?