Tag: 70-511 study material

EnsurepassQUESTION 161 You are employed as an application developer at ABC.com. You make use of Microsoft .NET Framework 4 to develop Windows Forms applications. You have recently created a new application. You then wrote the code shown below: Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture; Which of the following options are TRUE with regards to the code? A. The user interface will make use of the culture settings that are configured in the Control Panel at Read more [...]

EnsurepassQUESTION 151 You are developing a Windows Presentation Foundation (WPF) application. You need to ensure that the application includes a container control that supports logical scrolling by default. Which control should you select? A. StackPanel B. WrapPanel C. Grid D. Read more [...]

EnsurepassQUESTION 141 You develop a Windows Presentation Foundation (WPF) application. This application is used to output data trends to customer service representatives. You use threading to keep the UI responsive. You have a function named UpdateUIthat updates all of the UI components. You use the following code to update the _Data variable. (Line numbers included for reference only.) You need to update the user interface without knowing if you are on the UI thread. Which code segment should Read more [...]

EnsurepassQUESTION 131 You are developing a Windows Presentation Foundation (WPF) application. The movement of a control within the application is animated. You need to ensure that the animated control is continually animated in one direction. What should you specify for the easing function of the animations? A. ElasticEase B. SineEase C. Read more [...]

EnsurepassQUESTION 121 You are developing a Windows Presentation Foundation (WPF) application to display loan types by bank and students by loan type. You add the following markup segment to the MainWindow.xaml file. (Line numbers are included for reference only.) You need to ensure that the data appears in hierarchical form in a TreeView control. What should you do? A. At line 09, set the Resource Key to Students. At line 15, set the Resource Key to LoanList B. Read more [...]

EnsurepassQUESTION 111 You have a custom button, with should have a Property "IsActive", one must be able to bind this Property on a class Property A. Dependency Property B. INotifyPropertyChanged C. net Property Correct Answer: B QUESTION 112 You have defined a style in app.xaml <Style x:Key="A" x:Name="B" ... </Style> You want to use this style in your application in code behind. How can you achieve this? Read more [...]

EnsurepassQUESTION 101 You are developing a Windows Forms application that contains a DataGridView control. The DataGridView 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.. 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 CellValidatingevent. Set e.Cancel = trueif the name field is Read more [...]

EnsurepassQUESTION 91 You are developing a Windows Presentation Foundation (WPF) application The application is for commercial use and requires a valid license key to be entered. You create a project type of Class Library code to validate license keys. You need to ensure that the user enters a valid license key during installation of the software. Which deployment should reference the class library? A. Click Once B. Setup Project C. Read more [...]

EnsurepassQUESTION 81 You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You plan to use a PresentationTraceSources object when the application is executed by users. When the application is executed in a test environment, all debug information is successfully captured. You need to be able to capture debug information when the application is deployed. What should you do? A. Enable WPF Read more [...]

EnsurepassQUESTION 71 You use Microsoft .NET Framework 4 to create a Windows Forms application. The application includes a RichTextBoxcontrol and a ListBoxcontrol. The ListBoxcontrol is populated with a list of valid file names. The application allows users to drag a ListBox item to the RichTextBoxcontrol. You need to provide a visual indication that a file that is dragged can be dropped on the RichTextBoxcontrol. What should you do? A. Use a DoubleAnimationclass. B. Read more [...]

EnsurepassQUESTION 61 You use Microsoft .NET Framework 4 to create a Windows Forms application. You have a DataGridViewthat is bound to a DataTablecontaining a column named ProductName. The ProductNamecolumn can contain any valid string, except "ProductX," "ProductY," "ProductZ." You need to ensure that only valid entries for ProductNameare saved when users edit the DataGridView. Which DataGridViewevent should you use? A. CellBeginEdit B. Invalidated Read more [...]

EnsurepassQUESTION 51 You 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 lbxItemsthat is data-bound to a collection of objects. Each object has a DisplayValueproperty. 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 DisplayValueproperty of the selected item of lbxItems. Which binding Read more [...]

EnsurepassQUESTION 41
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
The application has multiple data entry windows. Each window contains controls that allow the user to type different addresses for shipping and mailing. All addresses have the same format. You need to ensure that you can reuse the controls. What should you create?
A. a user control
B. a data template
C. a control template
D. a control that inherits Read more [...]

EnsurepassQUESTION 31 You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code fragment. You need to ensure that the style is applied to all labels within the application. What should you do? A. Add the style to the <Grid.Resources>section of the main window. B. Add the style to the <Window.Resources>section of the main window. C. Add the style to the <Application.Resources>section Read more [...]

EnsurepassQUESTION 21 You use Microsoft .NET Framework 4 to create a Windows Forms application. You write the following code segment. (Line numbers are included for reference only.) You need to ensure that the first time each user opens the application, a text field displays the following message: "Please enter your setting." Which code segment should you insert at line 03? A. [UserScopedSetting()] [DefaultSettingValue("Please enter your setting.")] B. Read more [...]

EnsurepassQUESTION 11 You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code segment. (Line numbers are included for reference only.) You add the following code fragment within a WPF window control. The TextBox control is data-bound to an instance of the Contact class. You need to ensure that the Contact class contains a business rule to ensure that the ContactName property is not empty or NULL. You also need to ensure Read more [...]

EnsurepassQUESTION 1 You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code fragment. You create an event handler named StackPanel_PreviewTextInput. You also have a collection of strings named Keywords. You need to ensure that TxtBoxAand TxtBoxB do not contain any of the strings in the Keywords collections. Which code segment should you use? A. B. C. Read more [...]