1.
You are creating a Windows Forms application by using the .NET Framework 3.5. You create a new form in the application. You add a ContextMenuStrip control named ctxMenu to the form. You have a user-defined class named CustomControl. You write the following code segment in the application. (Line numbers are included for reference only.)
01 CustomControl myControl = new CustomControl();
02
You need to ensure that an instance of CustomControl is displayed on the form as a top-level item of the ctxMenu control. Which code segment should you add at line 02?
2.
You are creating a Windows Forms application by using the .NET Framework 3.5. The application requires a form to display a clock. You need to create a circular form to display the clock. Which code segment should you use?
3.
You are creating a Windows Forms application for a courier company by using the .NET Framework 3.5. You create a form that allows customers to track the progress of their shipments.The form contains the following elements:
* A text box named txtTN that allows users to enter a tracking number
*An ErrorProvider control named ErrorProvider1 that informs users of an invalid tracking number
* A function named ValidTrackingNumber that validates tracking numbers
You need to ensure that the txtTN text box is validated.Which code segment should you use?
4.
ou are creating a multiple-document interface (MDI) application by using the .NET Framework 3.5. You configure the frmParent form to be an MDI parent. You write the following code segment. (Line numbers are included for reference only.)
01 Form frmChild = new Form();
02 Form frmParent = this;
03
You need to associate and display the frmChild form and the frmParent form.Which code segment should you add at line 03?
5.
You are creating a Windows application by using the .NET Framework 3.5. The application retrieves individual product details from a database within the network. The product details frequently change. The product details available to the application can be up to one hour old. The details of a single product can be retrieved multiple times during a single execution of the application. You need to design a caching strategy that uses the minimum amount of network bandwidth. What should you do?
6.
You are creating a Windows application by using the .NET Framework 3.5. The application creates lookup fields by using data from a database within the corporate network. You use the DataAdapter object to retrieve data as a DataSet from the database. You need to reduce the network bandwidth that is used by the application. What should you do?
7.
You are creating a Windows application by using the .NET Framework 3.5. The application will retrieve and save data that is located on the network. The application will be deployed to client computers that retrieve and save data from a shared location. You need to ensure reliable storage of data. Which data storage mechanism should you use?
8.
You are creating a Windows application by using the .NET Framework 3.5. The application stores data in a Microsoft SQL Server 2008 database. You discover the following performance issues:
* The application takes a long time to respond.
* The application consumes over 900 MB of RAM.
You need to ascertain the reason for the poor performance of the application.What should you do?
9.
You have developed a console application by using the Microsoft .NET Framework 1.1. The console application uses a set of assemblies for the business logic and the data layer. You plan to convert the console application to a Windows Forms application. You need to design a conversion strategy by using minimum amount of time and development effort. What should you do?
10.
You are creating a Windows application by using the .NET Framework 3.5. The application is used to manage employee information. The application meets the following specifications:
* A main form named EmployeeList contains a list control that displays a list of all employees.
* The menu items help simultaneously display various detail forms for each employee selected from the list control.
* Each detail form for a selected employee contains a different set of information about the employee.
You need to ensure that when a user switches from one employee to another, the open detail forms are updated to the corresponding employee information. What should you do?