What should you conclude?
You are an enterprise application designer. You are designing a three-tier enterprise application. The application currently consists of a business layer and a data layer.
The application must perform the following tasks:
Support a smart client interface and a Web client interface. Achieve maximum reuse between the smart client interface and the Web client interface.
Reduce code duplication.
The systems analyst recommends adding a UI layer to perform the required tasks. You need to evaluate this recommendation. What should you conclude?
What should you do?
You create a class library that contains the class hierarchy defined in the following code segment. (Line numbers are included for reference only.)
01 public class Group {
02 public Employee[] Employees;
03 }
04 public class Employee {
05 public string Name;
06 }
07 public class Manager : Employee {
08 public int Level;
09 }
You create an instance of the Group class. You populate the fields of the instance. When you attempt to serialize the instance by using the Serialize method of the XmlSerializer class, you receive InvalidOperationException. You also receive the following error message: “There was an error generating the XML document.” You need to modify the code segment so that you can successfully serialize instances of the Group class by using the XmlSerializer class. You also need to ensure that the XML output contains an element for all public fields in the class hierarchy. What should you do?
What should you do?
A method in your Windows Forms application executes a stored procedure in a Microsoft SQL Server 2005 database, and then executes a second stored procedure in a second SQL Server 2005 database. You need to ensure that the call to the first stored procedure writes changes only if the call to the second stored procedure succeeds. Installation requirements prohibit you from introducing new components that use the COM+ hosting model.
What should you do?
Which diagram should you choose?
You are an enterprise application developer. You are creating a human resource application.
You identify the following relationships between the business objects:
A manager is an employee.
An executive is an employee.
An employee works for a company.
You need to translate only these relationships into a class diagram. Which diagram should you choose?
What should you do?
You create an application for your business partners to submit purchase orders. The application deserializes XML documents sent by your partners into instances of an object named PurchaseOrder. You need to modify the application so that it collects details if the deserialization process encounters any XML content that fails to map to public members of the PurchaseOrder object.
What should you do?
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 five actions should you include?
You are an enterprise application developer. You are creating a Web service by using ASP.NET. The Web service estimates insurance premiums based on values passed by the client application. The Web server is on the perimeter network. The Web server uses .NET Remoting to communicate to components on an application server that is on the corporate network. The components on the application server use Microsoft Windows Integrated security to authenticate to the database server.
The perimeter network is configured to ensure that the following restrictions are imposed:
Only port 80 is open between the perimeter network and the external network. Application-specific ports might be opened between the perimeter network and the internal network when necessary.
You need to prepare a deployment verification list and a production verification list. Which five actions should you include? (Each correct answer presents part of the solution. Choose five.)
Which code segment should you use?
You are creating a class that performs complex financial calculations. The class contains a method named GetCurrentRate that retrieves the current interest rate and a variable named currRate that stores the current interest rate. You write serialized representations of the class. You need to write a code segment that updates the currRate variable with the current interest rate when an instance of the class is deserialized. Which code segment should you use?
<?xml version="1.0"?
A Windows Forms application reads the following XML file.
<?xml version=”1.0″?>
<x:catalog xmlns:x=”urn:books”>
<book id=”bk101″>
<author>Gambardella, Matthew</author>
<title>XML Developer’s Guide</title>
</book>
<book id=”bk102″>
<author>Ralls, Kim</author>
<title>Midnight Rain</title>
</book>
</x:catalog>
The form initialization loads this file into an XmlDocument object named docBooks. You need to populate a ListBox control named lstBooks with the concatenated book ID and title of each book.
Which code segment should you use?
Which three performance counters should you use?
You are an enterprise application developer. You create a three-tier application for placing orders.
The application permits users to submit search requests by using a Web service. The Web service occasionally times out when search requests are submitted. You conclude that the Web service times out due to high network bandwidth utilization. You plan to create custom counters if
necessary. You need to use performance counters to analyze the data. Which three performance counters should you use? (Each correct answer presents part of the solution. Choose three.)