PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You are an enterprise application developer. You are working on an enterprise-wide reporting application. The physical design of the application currently requires four servers that must be configured in the following manner: Two application servers as a failover cluster in the application
tierTwo database servers as a failover cluster in the data tier You need to evaluate the physical design for maximum utilization of the servers and provide a solution that is scalable. What should you do?

Which code segment should you add at line 03?

You are creating a Windows Forms application. The application loads a data table named dt from a database and modifies each value in the data table. You add the following code.
(Line numbers are included for reference only.)

01 foreach (DataRow row in dt.Rows) {
02 foreach (DataColumn col in dt.Columns) {
04 Trace.WriteLine(str);
05 }
06 }

You need to format the string named str to show the value of the column at the time the data is loaded and the current value in the column.
Which code segment should you add at line 03?

Which three tasks should you perform?

You are an enterprise application developer. You are creating a component that will be deployed as part of a class library. The component must meet the following specifications: The interface of the component must be accessible to components outside the hosting assembly.The interface of the component must be interoperable with components written in any other .NET Framework languages.The implementation of the component cannot be expanded upon by a derived class. You need to design the interface of the component. Which three tasks should you perform? (Each correct answer presents part of the solution. Choose three.)

What change should you suggest?

You create Web-based client applications. You are reviewing a Web application page that populates a list of all employees of your company. You analyze code and find that the Web application page does not prevent exceptions from traveling to the browser. You need to ensure that the Web application page intercepts exceptions and presents an error message to the browser. What change should you suggest?

Which action should you perform?

You create Microsoft Windows-based applications. You participate in the planning phase of an incident tracking tool for technical support analysts.

The incident tracking tool must meet the following requirements:

Technical support analysts must open multiple incidents simultaneously.
The application can run only one instance at a time.
Users must be able to adjust the order and layout of the incident screens.

You need to design an application user interface that meets these requirements with the minimum amount of code.
Which action should you perform?

What should you conclude and recommend?

You are an enterprise application developer. You are manipulating a collection of customer, product, and supplier objects. The collection objects must fulfill the following requirements: The objects must use custom sort methods on different properties of the respective classes.The objects must be strongly typed. A developer from your team decides to use the following collection classes. abstract class MyCollectionBase : System.Collections.CollectionBase { abstract public void Sort();}public class CustomerCollection : MyCollectionBase { //Code overriding CollectionBase methods public override void Sort(){ //Customer sorting code }}public
class SupplierCollection :
MyCollectionBase { //Code overriding CollectionBase methods public override void Sort(){ //Supplier sorting code }}public class ProductCollection : MyCollectionBase { //Code overriding CollectionBase methods public override void Sort(){ //Product sorting code }} You need to review
the code and recommend improvements to simplify maintenance, if necessary. What should you conclude and recommend?

Which code segment should you use?

You are using the Microsoft Visual Studio 2005 IDE to examine the output of
a method that returns a string. You assign the output of the method to a string variable named fName.

You need to write a code segment that prints the following on a single line

The message: “Test Failed: “
The value of fName if the value of fName does not equal “John”

You also need to ensure that the code segment simultaneously facilitates uninterrupted execution of the application. Which code segment 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 conclude?

You are an enterprise application developer. You create a layered enterprise application that consists of a user interface layer, a business layer, and a data layer. The user interface layer is currently implemented as a smart client. End users now also need to access the enterprise application over the Web. To permit this, you create a Web client application. You also create a user interface process layer as a separate assembly. This assembly encapsulates the validation rules that apply to the end user interaction with the system. In the new version of the application, all user interfaces will use the new user interface process layer. The implementation of the new version of the application is as shown in the following diagram. (Click the Exhibit button.) Your team plans to deploy the user interface process assembly on the Web server. You need to evaluate whether the deployment plan fulfills the requirements and recommend change, if required. What should you conclude?