PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You are an enterprise application developer. You are creating a component that will be part of a field-sales order system. The component will be used by a program installed on portable computers. The program will communicate with a corporate server that will use the guest network
access at customer sites. You need to ensure that the component design is optimized for performance. You also need to ensure that the component design protects the local data and the communications stream without compromising the flexibility of the communication mechanism.
What should you do?

Which method should you use?

You create Web-based client applications. You are creating a Web-based discussion forum. The discussion forum will permit users to post and reply to discussion threads after logging on. You create the authentication mechanisms of your Web site. Microsoft SQL Server 2005 and the Active Directory directory service will continue to be used interchangeably for authentication. You need to provide a method for the users of the discussion forum to register. You also need to maintain the capability to use multiple authentication methods when the users register. Which method should you use?

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?

What should you do?

You are an enterprise application developer. You plan to design the component architecture for a new large-scale enterprise application. You need to design a component architecture that meets the following requirements: The components must share common method implementations.The components must be able to support custom implementation of specific methods. What should you do?

What should you do?

You develop Web-based client applications. Your team is developing a Web site for Coho Winery to handle order processing. Both sales staff and customers will use the Web site to place orders.

You must develop the data component that will be called by the Web-based application such that the Web-based application meets the following criteria:

The application uses separate Web pages for sales staff and customers to place orders.
Sales staff can apply a discount to the order.
Customers cannot apply any discount to the order.
Future changes to the pricing structure can be implemented by using the minimum amount of code. You need to ensure that the data component that you develop meets the outlined criteria. What should you do?

What should you do?

You are an enterprise application developer. You are developing a component to contain a large number of properties. You plan to write a method in the component that will accept an object as a parameter. The method will return a formatted string representation of all property values of the object. You need to implement the method by ensuring the minimum amount of memory usage.
What should you do?

Which classes should you choose?

You create Web-based client applications. You create a component that displays the category of a product and the product data on a Web page. The data is stored on the Web server in an XML file.

The Web page must meet the following requirements:

Display each category of products.
List the name, description, and price of each product in a category.
Prohibit the user from modifying the data.
Load as quickly as possible.
Use the minimum amount of code.
Retrieve the data to display from the XML file.

You need to identify the specific classes of a component that can be used to meet your Web page requirements. Which classes should you choose?

Which code segment should you use?

A Windows Forms application contains the following code segment.

string SQL = @”SELECT OrderID, ProductID, UnitPrice, Quantity FROM [Order Details]”;
SqlDataAdapter da = new SqlDataAdapter(SQL, connStr);
DataTable dt = new DataTable();
da.Fill(dt);

You need to add a new column to the data table named ItemSubtotal. The ItemSubtotal column must contain the value of the UnitPrice column multiplied by the value of the Quantity column.
Which code segment should you use?

Which feature should you choose?

You are an enterprise application developer. You create a Microsoft Windows-based service application. The application must perform the following tasks: Monitor running processes for critical events.Log critical events to an e-mail and send the e-mail to the system administrators.Record and include stack information as part of the critical event. You must be able to configure application event logging at run time. Application event logging must have minimal impact on runtime performance. You need to choose an appropriate monitoring feature to
fulfill these requirements. Which feature should you choose?