1.
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?
2.
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?
3.
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?
4.
You are creating a Windows Form that contains several ToolStrip controls. You need to add functionality that allows a user to drag any ToolStrip control from one edge of the form to another. What should you do?
5.
You are creating a Windows Form. You add a TableLayoutPanel control named pnlLayout to the form. You set the properties of pnlLayout so that it will resize with the form. You need to create a three-column layout that has fixed left and right columns. The fixed columns must each remain 50 pixels wide when the form is resized. The middle column must fill the remainder of the form width when the form is resized. You add the three columns in the designer. Which code segment should you use to format the columns at run time?