What should you do?
Your organization has a Microsoft Office Forms Server 2007 server. The server hosts a form template named TemplateA. You create a new version of the form named TemplateB.
You need to create an automated administration task that ensures that the sites use TemplateB instead of TemplateA. What should you do?
Which code segment should you use?
You need to create a method to clear a Queue named q.
Which code segment should you use?
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 two actions should you perform?
You are creating a mobile Web Form that displays your company’s logo. The Web Form contains the following image control.
<mobile:Image ID=”ImageLogo” runat=server ImageURL=”logo-bw.gif”> </mobile:Image>
You need to display the logo in black and white on devices that do not support color. In addition, you need to display the logo in color on devices that support color. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
What should you do?
Your company uses an external CRM application that contains a business object named Customers. The Customers object represents a table that contains customer details. You need to define the Customers object in the Business Data Catalog (BDC) definition. What should you do?
Which code segment should you use?
You are creating an undo buffer that stores data modifications. You need to ensure that the undo functionality undoes the most recent data modifications first. You also need to ensure that the undo buffer permits the storage of strings only.
Which code segment should you use?
What should you conclude and recommend?
You are an enterprise application developer. You create a data access layer for an order processing application.
The data access layer meets the following criteria:
The data access layer contains a GetConnectionString method to retrieve and return the connection string for the database.
The data access layer contains a stored procedure named GetTotalOrderAmount. The stored procedure runs a select query to return only the sum of the OrderAmount column for the active orders. At times, there might be no active orders.
You create the following method to execute the stored procedure and return the total.
public double GetTotalOrderAmount() {
SqlConnection con = new SqlConnection(GetConnectionString()); string sql = GetTotalOrderAmount;
SqlCommand cmd = new SqlCommand(sql,con);
IDataReader rd; con.Open(); rd = cmd.ExecuteReader(); double amt = 0.0;
if (rd.Read()) {
amt = rd.GetDouble(0);
}
rd.Close();
con.Close();
return amt;
}
You need to review the code and recommend modifications to simplify the code and improve performance, if necessary. What should you conclude and recommend?
What are two possible ways to achieve this goal?
You are developing a Web application that has two distinct UIs. One UI is targeted to desktop browsers. The other UI is targeted to mobile devices. The mobile devices might or might not support cookies and relative URLs. Users request the Default.aspx page. You need to redirect users to the appropriate UI, depending on whether they are using a mobile device or a desktop browser.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
What should you do?
You create a Microsoft Office SharePoint Server 2007 site. A document library named CompanyWorkbooks on the site contains Microsoft Office Excel workbooks. You need to ensure that users can access the workbooks in the CompanyWorkbooks document library by using Excel Services in Microsoft Office SharePoint Server 2007. What should you do?
Which three actions should you perform?
You are creating a class that uses unmanaged resources. This class maintains references to managed resources on other objects. You need to ensure that users of this class can explicitly release resources when the class instance ceases to be needed.
Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.)