This page was exported from Free Online Lead2pass VCE Practice Test [ https://www.networking-forum.org ] Export date:Thu Apr 18 0:30:53 2024 / +0000 GMT ___________________________________________________ Title: Download Free Microsoft 70-511 PDF and VCE Updated Today 191-200 --------------------------------------------------- Vendor: Microsoft Exam Code: 70-511 Exam Name: TS: Windows Applications Development with Microsoft .NET Framework 4 Version: 14.91 QUESTION 191 You are developing a Windows Presentation Foundation (WPF) application. You are implementing the security features for a function that requires File 10. The callers of this function that are higher in the stack do not have permission to read the C:temp directory. The function also accesses other resources that require permission. You need to ensure that the function has the proper permissions to read the C:temp directory, and that all other resources in the function can still be accessed. Which attribute should you include with the function? A.    <FileIOPeritiissionAttribute ( SecurityAction.Demand, Read:="C:TEHP")> B.    <FileIOPermissionAttribute( SecurityAction.Assert, Read:= "C:TEMP")> C.    <FileIOPermissionAttribute( SecurityAction.PermitOnly, Read:="C:TEMP")> D.    <FileIOPermissionAttribute( SecurityAction.InheritanceDemand, Read:="C:TEMP")> Answer: B QUESTION 192 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.) 01 NotInheritable Class FormSettings 02 Inherits ApplicationSettingsBase 03 04 Public Property Description() As [String] 05 Get 06 Return DirectCast(He("Description"), [String]) 07 End Get 08 Set 09 Me("Description") -value 10 End Set 11 End Property 12 End Class 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.    <UserScopedSetting()> <SettingsDescription("Description: Please enter your setting.")> C.    <ApplicationScopedSetting()> <DefaultSettingValue("Please enter your setting.")> D.    <ApplicationScopedSetting()> <SettingsDescription("Description: Please enter your setting.")> Answer: A QUESTION 193 You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a custom control named Wheel. You need to ensure that the Speed property of Wheel can be animated. What should you do? A.    Inherit the DependencyObject class. B.    Declare the Speed property as a dependency property. C.    Declare an animation of the Speed property from within the code-behind file. D.    Implement the System.Windows.Media.Animation.IAnimatable interface with the Wheel class. Answer: B QUESTION 194 You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application uses the drag-and-drop functionality. You need to ensure that the drag- and-drop operation is stopped when a user moves the cursor outside the boundaries of the application form Which enumeration member should you use? A.    DragAction.Cancel B.    DragAction.Drop C.    DragDropEffects.None D.    DragDropEffects.All Answer: A QUESTION 195 You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application uses the background worker process (BWP). When the user clicks a button, the background worker executes a method named DoCalculations asynchronously. You need to implement a progress bar on the user interface (UI) that Informs the user of the progress of DoCalculations. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.) A.    Modify the Value property of the progress bar in DoCalculations. B.    Modify the Value property of the progress bar in the ProgressChanged event handler of the background worker. C.    Modify the Value property of the progress bar in the RunWorkerCompleted event handler of the background worker. D.    Call the ReportProgress method of the background worker in DoCalculations. E.    Call the ReportProgress method of the background worker in the DoWork event handler of the background worker. Answer: BD QUESTION 196 You are developing a Windows Presentation Foundation (WPF) application to display service cases by category in a ListBox. You create a class named Case with the properties Description and Category, as follows. You bind to the IstService control a static resource named ServiceCases. You need to ensure that the service cases are grouped by category. What should you do in the MainWindow.xaml file? A.    Add the following markup segment to ListBox.Binding. <ListBox.BindingGroup> <BindlngGroup Name="Category"/> </ListBox.BindingGroup> B.    Add the following markup segment to DockPanel.Binding. <DockPanel.BindingGroup> <BindingGroup Name="Category"> </DockPanel.BindingGroup> C.    Add the following markup segment to CollectionViewSource. <CollectionViewSource.GroupDescriptions> <dataPropertyGroupDescription PropertyName="Category"/> </CollectionViewSource.GroupDescripcion"> D.    Add the following markup segment to CollectionViewSource. <CollectionViewSource.GroupDescriptions/> Answer: C QUESTION 197 You are developing a Windows Presentation Foundation (WPF) application for managing student information. You place a Button control named btnSort and a DataGrid control named dgStudents on the design surface of the MainWindow.xaml file. You create a Student class with two properties: FirstName and LastName. You create the following code segment in the constructor of the main window. The DataGrid control displays the list of students unsorted. You need to ensure that the list of students is sorted by last name. Which code segment should you add to the click event handler of the Button control? A.    Dim sortedStudents As IEnnumerable(Of Student) = Students.OrderBy(Function(s) s.LastName).ToList() dgstudents.ltemssource = sortedStudents B.    Students.Sort() dgStudents.ItemsSource = Students C.    Dim sortedStudents As IEnumerable(Of Student) Students.orderBy (Function (s) s.LastName) dgStudents.ItemsSource = sortedStudents D.    Students.Reversed dgStudents.ItemsSource = Students Answer: A QUESTION 198 You are developing a windows Presentation Foundation (WPF) application. A TextBlock control has DataContext bound to a static resource named Book. The ToolTip attribute of TextBlock displays the full book titles. You create a converter named TrimTitleConverter to shorten the book titles to three words in the Text attribute of the TextBox. You add the converter to the Resources section of the MainWindow.xaml file as follows. (Line numbers are included for reference only.) You need to ensure that the shortened book titles appear only in the Text attribute of TextBlock. Which markup segment should you use to replace lines 06 through 09? A.    <TextBlock ToolTip="{Binding Title}" Text-"(Binding RelativeSource= {RelativeSource TemplatedParent}, Path-ToolTip, Converter"(StaticReaource ResourceKey TrlmConverter})" DataContext = "{StaticResource ResourceKey=Book}"/> B.    <TextBlock ToolTip="(Binding Title, Converter=(StaticResource ResourceKey=TrimConverter})" Text-Bindnding RelativeSource= {RelativeSaurce TemplatedParent}, Path-ToolTip)" DataContext-"{StaticResource ResourceKey-Boolc) "/> C.    <TextB1ock ToolTip="{Binding Title, Converter = {StaticResource ResourceKey=TrimConverter}}" Text="(Binding RelativeSource= {Relativesource self}, Path"ToolTip}" DataContext="{StaticResource ResourceKey-Book}"/> D.    <TextBlock ToolTip-"{Binding Title}" Text="{Binding RelativeSource= {RelativeSource Self}, Path=ToolTip, Converter=<StaticResource ResourceKey=TrimConverter}}" DataContext="(StaticResource ResourceKey=Book}"/> Answer: D QUESTION 199 You are developing a Windows Presentation Foundation (WPF) application. You are writing data templates for a calendar. You must use the Weekend template for weekends and the Weekday template for weekdays. The Window markup is as follows. (Line numbers are included for reference only.) You need to ensure that the Weekend and Weekday templates are applied correctly to the ListBox control. Which markup segment should you insert at line 11? A.    <ListBox ItemTemplateSelector="{Binding WeekendSelector}"/> B.    <ListBox ItemTemplate="{StaticResource WeekendSelector} "/> C.    <ListBox ItemTemplate="{Binding WeekendSelector} "/> D.    <ListBox ItemTemplateSelector="{StaticResource WeekendSelector}"/> Answer: D QUESTION 200 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 LoanList. A: lire 15, set the Resource Key to Students. B.    At line 09, set the Resource Key to Students. At line 15, set the Resource Key to LoanList. C.    At line 09, set the Resource Key to Lender. At line 15, set the Resource Key to BankList. D.    At line 09, set the Resource Key to BankList. At line 15, set the Resource Key to Lender. Answer: B If you want to pass Microsoft 70-511 exam successfully, donot missing to read latest lead2pass Microsoft 70-511 dumps. If you can master all lead2pass questions you will able to pass 100% guaranteed. http://www.lead2pass.com/70-511.html --------------------------------------------------- Images: http://examgod.com/l2pimages/33a3d93c748f_C006/wps75B3.tmp_thumb.png http://examgod.com/l2pimages/33a3d93c748f_C006/wps9F33.tmp_thumb.png http://examgod.com/l2pimages/33a3d93c748f_C006/wpsC1C2.tmp_thumb.png http://examgod.com/l2pimages/33a3d93c748f_C006/wpsE20F.tmp_thumb.png http://examgod.com/l2pimages/33a3d93c748f_C006/wps105.tmp_thumb.png http://examgod.com/l2pimages/33a3d93c748f_C006/wps1EA3.tmp_thumb.png --------------------------------------------------- --------------------------------------------------- Post date: 2014-11-14 05:43:46 Post date GMT: 2014-11-14 05:43:46 Post modified date: 2014-11-14 05:43:46 Post modified date GMT: 2014-11-14 05:43:46 ____________________________________________________________________________________________ Export of Post and Page as text file has been powered by [ Universal Post Manager ] plugin from www.gconverters.com