Following questions and answers are all new published by Microsoft Official Exam Center: (The full version is in the end of the article!!!)

CSHARP QUESTION 1You use Microsoft .NET Framework 4 to create a Windows Forms application. You add a new class named Customer to the application. You select the Customer class to create a new object data source. You add the following components to a Windows Form:– A BindingSource component named customerBindingSource that is data-bound to the Customer object data source.– A set of TextBox controls to display and edit the Customer object properties. Each TextBox control is data-bound to a property of the customerBindingSource component. – An ErrorProvider component named errorProvider that validates the input values for each TextBox control.You need to ensure that the input data for each TextBox control is automatically validated by using the ErrorProvider component. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

A. Implement the validation rules inside the Validating event handler of each TextBox control by throwing an exception when the value is invalid.B. Implement the validation rules inside the TextChanged event handler of each TextBox control by throwing an exception when the value is invalid.C. Implement the validation rules inside the setter of each property of the Customer class by throwing an exception when the value is invalid.D. Add the following code segment to the InitializeComponent method of the Windows Form.this.errorProvider.DataSource = this.customerBindingSource;E. Add the following code segment to the InitializeComponent method of the Windows Form.this.errorProvider.DataSource = this.customerBindingSource.DataSource; this.errorProvider.DataMember = this.customerBindingSource.DataMember;

Answer: CD

QUESTION 2You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a ListBox control named IbxItems that is data-bound to a collection of objects. Each object has a DisplayValue property. You add a Button control to the application. You need to ensure that the Content property of the Button control is data-bound to the DisplayValue property of the selected item of IbxItems. Which binding expression should you use?

QUESTION 4You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You plan to allow users to customize the background colors, foreground colors, and font style of the application. You also plan to add a TextBlock control to the application. You write the following code fragment. (Line numbers are included for reference only.)You need to ensure that the ContextMenu control is associated with the TextBlock control. You also need to ensure that the properties that can be customized are shown hierarchically. Which code fragment should you insert at line 15?

QUESTION 5You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You add a ListBox control to the application. The ListBox control is data-bound to an instance of a custom collection class of the Product objects named ProductList. The number of items of the data-bound collection is fixed. However, users can modify the properties of each of the Product objects in the collection. You need to ensure that changes made on the Product objects are automatically reflected in the ListBox control. What should you do?

A. Implement the INotifyPropertyChanged interface in the Product class.B. Implement the INotifyCollectionChanged interface in the ProductList class.C. Set the Mode property of the Binding object of the ListBox control to TwoWay.D. Set the UpdateSourceTrigger property of the Binding object of the ListBox control to PropertyChanged.

Answer: A

QUESTION 6You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains an ObservableCollection object named Pictures that contains several Picture objects. Each Picture object contains the Name and PictureFilePath properties. You add a ListBox control to the application. You need to ensure that the pictures are displayed in the ListBox control. Which code fragment should you use?

A. Option AB. Option BC. Option CD. Option D

Answer: B

QUESTION 7You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code fragment.You need to implement the MyProject.MyConverter class. What should you do?

QUESTION 8You are developing a Windows Forms application that contains a DataGridView control. The DataGridView is composed of several fields that capture the customer’s name, address, and phone number. You have been asked to provide data validation in a DataGridView to prevent users from leaving the name field if the name field is empty. You need to ensure that users cannot tab out of the name field without entering data. What should you do?

A. Validate the name field in the CellValidating event. Set e.Cancel-true if the name field is empty.B. Validate the name field in the CellErrorTextChanged event. Get e.RowIndex if the name field is empty.C. Validate the name field in the CellEnter event. Set the focus on the name field if the name field is empty.D. Validate the name field in the CancelRowEdit event. Set the focus on the name field if the name field is empty.

Answer: A

QUESTION 9You use Microsoft .NET Framework 4 to create a Windows Forms application. You have a dataset as shown in the following exhibit.You plan to add a DataGridView to display the dataset. You need to ensure that the DataGridView meets the following requirements:– Shows Order Details for the selected order.– Shows only Order Details for items that have UnitPrice greater than 20 – Sorts Products by ProductNameWhich code segment should you use?

Now we are one step ahead in providing updated real exam dumps for 70-511. We provide 100% 70-511 exam passing guarantee as we will provide you same questions of 70-511 exam with their answers. Our Microsoft 70-511 questions answers are verified by experts.