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 toplevel 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.
You create a new form in your application.
You add a SplitContainer control named spcFrame to the form.
The SplitContainer control has two SplitterPanel controls named Panel1 and Panel2.
You are configuring the SplitContainer control to define the layout of the form.
You need to ensure that the following requirements are met:
- The initial distance from the left edge of the spcFrame splitter is set to 200 pixels
- The size of the Panel2 SplitterPanel remains unchanged when the form is resized
Which code segment should you use ?
3.
You are creating a Windows Forms application by using the .NET Framework 3.5.
You create a new form in your application.
You add 100 controls at run time in the Load event handler of the form.
Users report that the form takes a long time to get displayed.
You need to improve the performance of the form.
What should you do?
4.
You are creating a Windows Presentation Fundation (WPF) application by using the .NET Framework 3.5
You need to start an animation that resizes the height of a rectangle when the rectangle is clicked.
Which code fragment should you use?
5.
You are creating a Windows application for graphical image processing by using the .NET Framework 3.5.
You create an image processing function and a delegate.
You plan to invoke the image processing function by using the delegate.
You need to ensure that the calling thread meets the following requirements:
- It is not blocked when the delegate is running
- It is notified when the delegate is complete
What should you do?
6.
You are creating a Windows Forms application by using the .NET Framework 3.5.
You plan to modify a list of orders within a DataGridView control in the application.
You need to ensure that a value is required in the first column of the grid control.

Which code segment should you use ?
7.
You Create Windows Forms application by using the .NET Framework 3.5.
You plan to deploy an application by using the ClickOnce technology. The application contains a custom control that accesses files on the local file system.
Users of the application do not have administrative rights on the client computers.
You need to ensure that the application executes without requiring elevated permissions.
What should you do?
8.
You are developing a Microsoft Studio Tools for Office (VSTO) application by using the .NET Framework 3.5.
You plan to deploy the application by using ClickOnce.
You need to manage the application resources by using manifest.
Which manifest setting should you use?.
To answer, select the appropiate setting in the answer area.
9.
You are creating a Windows Form application for inventory management by using the .NET Framework 3.5.
A form in the application is used to associate products with their categories. The form uses a DataSet object named dsCategories. The DataSet object contains two
DataTable objects named Categories and Products.
Each category can have several products associated with it.
You need to create a data relationship between the Categories and Products DataTable objects on the common CategoryId field. You also need to display all the products for a selected category.
Which code segment should you use?
10.
You are creating a Windows Presentation Fundation (WPF) application by using the .NET Framework 3.5
You need to start an animation that resizes the height of a rectangle when the rectangle is clicked.
Which code fragment should you use?