MCTS Microsoft

Microsoft 70-511 Study Guide Book,Prepare for the Microsoft 70-511 Exam Guide With Accurate Answers

100% Valid:How to choose the right Microsoft 70-511 exam dumps? Just try the Flydumps newest Microsoft 70-511 exam dumps with more new added quesitons and answers,also now you can free download Microsoft 70-511 VCE player and PDF files for training.

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You add a property named ServiceContext to a control. You need the value of ServiceContext to flow to the child controls exactly like the value of the DataContext property of the FrameworkElement class. What should you do?
A. “Inherit the control class from the DependencyObject class.
B. “Register a dependency property. “In the options settings of the property metadata, specify the Inherits option.
C. “Declare a new property. “In the get and set methods of the new property, create an instance of the TraversalRequest class.
D. “Declare a new property. “In the get method of the new property call VisualTreeHelper.GetParent. “In the set method of the new property, call VisualTreeHelper.GetChild.

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application that displays an image. You need to ensure that users can stretch and scale the image. Which control should you use?
A. Frame
B. Slider
C. Viewbox
D. ScrollViewer

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.

Question: 4

You use Microsoft .NET Framework 4 to create a Windows application that can execute on client computers that run Windows Vista. You are creating a User Account Control (UAC) application manifest for the application. You need to ensure that users who are members of the local Administrators group do not receive a UAC prompt when the application executes. Which code fragment should you use?
A. <assembly xmlns=”urn:schemas-microsoft-com:asm.v1″ manifestVersion=”1.0″> <v3:trustInfo
xmlns:v3=”urn:schemas-microsoft-com:asm.v3″> <v3:security> <v3:requestedPrivileges> <v3:requestedExecutionLevel level=”asInvoker” uiAccess=”true” /> </v3:requestedPrivileges> </v3:security> </v3:trustInfo> </assembly>
B. <assembly xmlns=”urn:schemas-microsoft-com:asm.v1″ manifestVersion=”1.0″> <v3:trustInfo xmlns:v3=”urn:schemas-microsoft-com:asm.v3″> <v3:security> <v3:requestedPrivileges> <v3:requestedExecutionLevel level=”requireAdministrator” uiAccess=”true” />
</v3:requestedPrivileges> </v3:security> </v3:trustInfo> </assembly>
C. <assembly xmlns=”urn:schemas-microsoft-com:asm.v1″ manifestVersion=”1.0″> <v3:trustInfo xmlns:v3=”urn:schemas-microsoft-com:asm.v3″> <v3:security> <v3:requestedPrivileges> <v3:requestedExecutionLevel level=”asInvoker” uiAccess=”false” /> </v3:requestedPrivileges> </v3:security> </v3:trustInfo> </assembly>
D. <assembly xmlns=”urn:schemas-microsoft-com:asm.v1″ manifestVersion=”1.0″> <v3:trustInfo xmlns:v3=”urn:schemas-microsoft-com:asm.v3″> <v3:security> <v3:requestedPrivileges> <v3:requestedExecutionLevel level=”highestAvailable” uiAccess=”true” /> </v3:requestedPrivileges>
</v3:security> </v3:trustInfo> </assembly>
Answer: D

Question: 5

You use Microsoft .NET Framework 4 to create a Windows Forms client application. You write the following code segment.

The application contains a form of type Form1 that contains a FormSettings object named frmSettings1. You need to maintain the user’s form size preference each time the user executes the application. Which code segment should you use?
A. Private Sub Form1_Load(sender As Object, e As EventArgs) frmSettings1.Reset() End Sub
Private Sub Form1_FormClosing(sender As Object, e As FormClosingEventArgs) frmSettings1.FormSize = Me.Size frmSettings1.Save()
End Sub
B. Private Sub Form1_Load(sender As Object, e As EventArgs)
frmSettings1.Reset() End Sub Private Sub Form1_FormClosing(sender As Object, e As FormClosingEventArgs)
frmSettings1.FormSize = Me.Size frmSettings1.Upgrade() End Sub
C. Private Sub Form1_Load(sender As Object, e As EventArgs) Me.Size = frmSettings1.FormSize End Sub
Private Sub Form1_FormClosing(sender As Object, e As FormClosingEventArgs) frmSettings1.FormSize = Me.Size frmSettings1.Upgrade()
End Sub
D. Private Sub Form1_Load(sender As Object, e As EventArgs)
Me.Size = frmSettings1.FormSize End Sub
Private Sub Form1_FormClosing(sender As Object, e As FormClosingEventArgs) frmSettings1.FormSize = Me.Size frmSettings1.Save()
End Sub

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You add a property named ServiceContext to a control. You need the value of ServiceContext to flow to the child controls exactly like the value of the DataContext property of the FrameworkElement class. What should you do?
A. Inherit the control class from the DependencyObject class.
B. Register a dependency property. In the options settings of the property metadata, specify the Inherits option.
C. Declare a new property. In the get and set methods of the new property, create an instance of the TraversalRequest class.
D. Declare a new property. In the get method of the new property call VisualTreeHelper.GetParent. In the set method of the new property, call VisualTreeHelper.GetChild.

You use Microsoft .NET Framework 4 to create a Windows Forms application. The application includes a RichTextBox control and a ListBox control. The ListBox control is populated with a list of valid file names. The application allows users to drag a ListBox item to the RichTextBox control. You need to provide a visual indication that a file that is dragged can be dropped on the RichTextBox control. What should you do?
A. Use a DoubleAnimation class.
B. Use a Storyboard animation class.
C. Use the DragDropEffects enumeration.
D. Use the DragAction enumeration.

You use Microsoft .NET Framework 4 to create an application. The application performs resource-intensive calculations that consist of multiple layers of nested looping. The application will be deployed to servers that contain varying hardware configurations. You need to ensure that the application utilizes CPU resources on the server in the most efficient manner. You want to achieve this goal by using the minimum amount of code. What should you do?
A. Use multiple System.Threading.Thread objects.
B. Use the background worker process (BWP).
C. Use the Thread.BeginInvoke method.
D. Use the Parallel.For method.

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

You use Microsoft .NET Framework 4 to create a Windows Forms application. You need to allow the user interface to use the currently configured culture settings in the Control Panel. Which code segment should you use?
A. Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture
B. Thread.CurrentThread.CurrentCulture = Thread.CurrentThread.CurrentUICulture
C. Thread.CurrentThread.CurrentUICulture = CultureInfo.InstalledUICulture
D. Thread.CurrentThread.CurrentCulture = CultureInfo.InstalledUICulture

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You want to localize the application to use the German locale settings. You need to allow the ResourceManager class to retrieve a neutral German locale version of the text to be displayed in the user interface (UI). Which file should you add to the project?
A. Resources.de.xml
B. Resources.de-DE .xml
C. Resources.de.resx
D. Resources.de-DE .resx

Answer: C
Question: 12
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF)
application. You write the following code fragment.
<StackPanel TextBox.PreviewTextInput=”StackPanel_PreviewTextInput”>
<TextBox Name=”TxtBoxA”/>
<TextBox Name=”TxtBoxB”/>
<TextBox Name=”TxtBoxC”/>
</StackPanel>
You create an event handler named StackPanel_PreviewTextInput. You also have a collection of
strings named Keywords. You need to ensure that TxtBoxA and TxtBoxB do not contain any of the
strings in the Keywords collections. Which code segment should you use?

A. Private Sub StackPanel_PreviewTextInput(sender As Object, e As TextCompositionEventArgs) Dim feSource As FrameworkElement = TryCast(sender, FrameworkElement) If feSource.Name = “TxtBoxA” OrElse feSource.Name = “TxtBoxB” Then For Each keyword As String In Keywords If e.Text.Contains(keyword) Then e.Handled = False Return End If Next e.Handled = True End If End Sub
B. Private Sub StackPanel_PreviewTextInput(sender As Object, e As TextCompositionEventArgs) Dim feSource As FrameworkElement = TryCast(e.Source, FrameworkElement) If feSource.Name = “TxtBoxA” OrElse feSource.Name = “TxtBoxB” Then For Each keyword As String In Keywords If e.Text.Contains(keyword) Then e.Handled = False Return End If Next e.Handled = True End If End Sub
C. Private Sub StackPanel_PreviewTextInput(sender As Object, e As TextCompositionEventArgs) Dim feSource As FrameworkElement = TryCast(sender, FrameworkElement) If feSource.Name = “TxtBoxA” OrElse feSource.Name = “TxtBoxB” Then For Each keyword As String In Keywords If e.Text.Contains(keyword) Then e.Handled = True Return End If Next e.Handled = False End If End Sub
D. Private Sub StackPanel_PreviewTextInput(sender As Object, e As TextCompositionEventArgs) Dim feSource As FrameworkElement = TryCast(e.Source, FrameworkElement) If feSource.Name = “TxtBoxA” OrElse feSource.Name = “TxtBoxB” Then For Each keyword As String In Keywords If e.Text.Contains(keyword) Then e.Handled = True Return End If Next e.Handled = False End If End Sub

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF)
application. The application contains a composite user control that includes a TextBox control
named txtInput. The user control will be hosted in a window and will have handlers for the text-
changed event of txtInput. You need to ensure that the application meets the following
requirements:
“Creates a text-changed event handler named Audit_TextChanged for the txtInput control.
“Executes Audit_TextChanged even when specific handlers mark the event as handled.
Which code segment should you add to the constructor of the user control

A. txtInput.TextChanged+=Audit_TextChanged;
B. AddHandler(TextBox.TextChangedEvent, new RoutedEventHandler(Audit_TextChanged), true);
C. EventManager.RegisterClassHandler(typeof(TextBox),TextBox.TextChangedEvent,new RoutedEventHandler(Audit_TextChanged), true);
D. EventManager.RegisterClassHandler(typeof(TextBox),TextBox.TextChangedEvent,new RoutedEventHandler (Audit_TextChanged), false);
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF)
application. The application contains a composite user control that includes a TextBox control
named txtInput. The user control will be hosted in a window and will have handlers for the text-
changed event of txtInput. You need to ensure that the application meets the following
requirements:
“Creates a text-changed event handler named Audit_TextChanged for the txtInput control.
“Executes Audit_TextChanged even when specific handlers mark the event as handled.
Which code segment should you add to the constructor of the user control

A. txtInput.TextChanged += Audit_TextChanged
B. [AddHandler](TextBox.TextChangedEvent, New RoutedEventHandler(Audit_TextChanged), True)
C. EventManager.RegisterClassHandler(GetType(TextBox), TextBox.TextChangedEvent, New RoutedEventHandler (Audit_TextChanged), True)
D. EventManager.RegisterClassHandler(GetType(TextBox), TextBox.TextChangedEvent, New RoutedEventHandler (Audit_TextChanged), False)

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a window that contains a Button control and a MenuItem control. Both controls are labeled “Add sugar.” The Command properties of the Button and MenuItem controls are set to the same RoutedCommand named AddSugarCommand. You write the following code segment. private void CanAddSugar (object sender, CanExecuteRoutedEventArgs e) { … } You need to ensure that when the CanAddSugar method sets e.CanExecute to false, the MenuItem and Button controls are disabled. What should you do
A. Create an event handler for the CanExecuteChanged event of the AddSugarCommand command. Call the CanAddSugar method from within the event handler.
B. Inherit the AddSugarCommand from the RoutedUICommand class instead of the RoutedCommand class. Call the CanAddSugar method from within the constructor of the AddSugarCommand command.
C. Add a CommandBinding object to the CommandBinding property of the MenuItem control. Set the CanExecute property of the CommandBinding object to the CanAddSugar method.
D. Add a CommandBinding object to the CommandBindings property of the window. Set the
Command property of CommandBinding to the AddSugarCommand command. Set the CanExecute property of the CommandBinding object to the CanAddSugar method.

Ensure that you are provided with only the best and most updated Microsoft 70-511 Certification training materials, we also want you to be able to access Microsoft 70-511 easily, whenever you want.We provide all our Microsoft 70-511 Certification exam training material in PDF format, which is a very common format found in all computers and gadgets. Now we add the latest Microsoft 70-511 content and to print and share content.

microdess
We are a team that focuses on tutoring Microsoft series certification exams and is committed to providing efficient and practical learning resources and exam preparation support to candidates. As Microsoft series certifications such as Azure, Microsoft 365, Power Platform, Windows, and Graph become more and more popular, we know the importance of these certifications for personal career development and corporate competitiveness. Therefore, we rely on the Pass4itsure platform to actively collect the latest and most comprehensive examination questions to provide candidates with the latest and most accurate preparation materials. MICROSOFT-TECHNET not only provides the latest exam questions, but also allows candidates to find the required learning materials more conveniently and efficiently through detailed organization and classification. Our materials include a large number of mock test questions and detailed analysis to help candidates deeply understand the test content and master the answering skills, so as to easily cope with the test. In addition, we have also specially launched exam preparation materials in PDF format to facilitate candidates to study and review anytime and anywhere. It not only contains detailed analysis of exam questions, but also provides targeted study suggestions and preparation techniques so that candidates can prepare more efficiently. We know that preparing for exams is not just about memorizing knowledge points, but also requires mastering the correct methods and techniques. Therefore, we also provide a series of simulation questions so that candidates can experience the real examination environment in the simulation examination and better adapt to the examination rhythm and atmosphere. These simulation questions can not only help candidates test their preparation results, but also help candidates discover their own shortcomings and further improve their preparation plans. In short, our team always adheres to the needs of candidates as the guide and provides comprehensive, efficient and practical test preparation support to candidates. We believe that with our help, more and more candidates will be able to successfully pass the Microsoft series certification exams and realize their career dreams.