Top Banner
Microsoft 70-511 TS: Windows Applications Development with Microsoft .NET Framework 4 Practice Test Version: 10.0
34
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 70-511

Microsoft 70-511

TS: Windows Applications Development with

Microsoft .NET Framework 4

Practice TestVersion: 10.0

Page 2: 70-511

QUESTION NO: 1 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Presentation Foundation (WPF) applications. You have recenty created an application, and cofigured it to have a composite user control. Youalso configured the user control to have a TextBox control, named txtEntry. You then configure theuser control to be stored in a window, and include the following code in the constructor of the usercontrol: AddHandler(TextBox.TextChangedEvent, new RoutedEventHandler(Audit_TextChanged), true); Which of the following statements are TRUE? (Choose all that apply.) A. A text-changed event handler, named Audit_TextChanged, was created for the txtEntry control. B. Audit_TextChanged will stop running because the event is marked as handled by certain eventhandlers C. Even though the event is marked as handled by certain event handlers, Audit_TextChanged willstill run. D. Audit_TextChanged will continue to run until the event is marked as handled.

Answer: A,C

Explanation:

QUESTION NO: 2 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Presentation Foundation (WPF) applications. After developing an application, named ABCApp22, you configure a Button control and aMenuItem control that will be hosted by a window. The Button control and the MenuItem controlhave both been named Add. You have configured the exact same RoutedCommand, named AddCommand, as the Commandproperties of these two controls. You then write the code shown below: Private void CanAdd (object sender, CanExecuteRoutedEventArgs e) { ... } You are then informed that the two controls should be disabled when the CanExecute property isset to to false.

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 2

Page 3: 70-511

Which combination of the following actions should you take? (Choose all that apply.) A. You should consider having an event handler configured for the CanExecuteChanged event ofthe AddCommand command. B. You should consider having a CommandBinding object added to the CommandBindingsproperty of the window. C. You should consider having a CommandBinding object added to the CommandBinding sectionof the MenuItem control. D. You should consider having the CanAdd method called from within the event handler. E. You should consider having the AddCommand inherited from the RoutedUICommand class. F. You should consider having the Command property of CommandBinding set to theAddCommand command. G. You should consider having the CanAdd method called from within the constructor of theAddCommand command. H. You should consider having the CanExecute property of the CommandBinding object set to theCanAdd method.

Answer: B,F,H

Explanation:

QUESTION NO: 3 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Presentation Foundation (WPF) applications. You have created a new application, and written the code shown below: MediaPlayer player = new MediaPlayer(); player.Open(new URI(AudioFilePath), UriKind.Relative)); player.play(); You then inserted this code into the button onclick event. Which of the following statements are TRUE with regards to the configuration? A. The media player will open as soon as a user clicks the button, but no file will be played. B. The file that is stored in the AudioFilePath variable will be played as soon as the button isclicked by the user. C. All files stored in the media player will be played in sequence.

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 3

Page 4: 70-511

D. All files stored in the media player will be played randomly.

Explanation:

QUESTION NO: 4 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Forms applications. After developing a new application, namedABCApp13, you include a custom class named ABCClient. You have configured a new object data source, and also added a BindingSource componentnamed ABCclientBindingSource to a Windows Form. The ABCclientBindingSource component isconfigured to be data-bound to the ABCClient data source. You then configure the Windows form to have two TextBox controls for presenting and modifyingABCClient. You have bound the data of these controls to its own ABCclientBindingSourceproperty. The Windows form is also configured to contain an ErrorProvider component, namederrorProvider. The data entries for the TextBox controls will be validated by the ErrorProvidercomponent. You want to configure the validation process to occur automatically. Which of the following actions should you take? A. You should consider throwing an exception when the value is invalid to apply the validationrules inside the TextChanged event handler of each TextBox control by throwing an exceptionwhen the value is invalid. You should also consider inserting the code shown below in theInitializeComponent method of the Windows Form. this.errorProvider.DataSource = this.ABCclientBindingSource; B. You should consider throwing an exception when the value is invalid to apply the validationrules inside the TextChanged event handler of each TextBox control by throwing an exceptionwhen the value is invalid. You should also consider inserting the code shown below in theInitializeComponent method of the Windows Form. this.errorProvider.DataSource = this.ABCclientBindingSource.DataSource; this.errorProvider.DataMember = this.ABCclientBindingSource.DataMember; C. You should consider throwing an exception when the value is invalid to apply the validationrules inside the setter of each property of the ABCClient class. You should also consider insertingthe code shown below in the InitializeComponent method of the Windows Form.

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 4

Page 5: 70-511

this.errorProvider.DataSource = this.ABCclientBindingSource.DataSource; this.errorProvider.DataMember = this.ABCclientBindingSource.DataMember; D. You should consider throwing an exception when the value is invalid to apply the validationrules inside the setter of each property of the ABCClient class. You should also consider insertingthe code shown below in the InitializeComponent method of the Windows Form. this.errorProvider.DataSource = this.ABCclientBindingSource;

Answer: D

Explanation:

QUESTION NO: 5 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 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 Panelat present. B. The user interface will make use of new culture settings. C. The user interface will have no culture settings. D. The user interface will make use of the culture settings that were installed with the operatingsystem.

Answer: A

Explanation:

QUESTION NO: 6

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 5

Page 6: 70-511

You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Presentation Foundation (WPF) applications. You are in the process of developing a new application, named ABCApp35, which has a serverassembly, as well as a partially trusted client assembly configured. After configuring customizedsandboxed application domain, you are required to make sure that you are able to run ABCApp35in a partial-trust setting. Which of the following actions should you take? A. You should consider configuring the PartialTrustVisibilityLevel setting for theAllowPartiallyTrustedCallers attribute of the server assembly to be VisibleByVefault. B. You should consider configuring the PartialTrustVisibilityLevel setting for theAllowPartiallyTrustedCallers attribute of the server assembly to be NotVisibleByDefault. C. You should consider configuring the PartialTrustVisibilityLevel setting for theAllowPartiallyTrustedCallers attribute of the client assembly to be VisibleByDefault. D. You should consider configuring the PartialTrustVisibilityLevel setting for theAllowPartiallyTrustedCallers attribute of the client assembly to be NotVisibleByDefault.

Answer: B

Explanation:

QUESTION NO: 7 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Forms applications. After creating a new client application, you configure a default form size in the UserScopedSettingof the the ApplicationSettingsBase class. Then application makes use of the Form1 type form, which includes a FormSettings object namedfrmSettings1. You have been instructed to write code that allows for the user’s preferred form size to be usedwhenever the user opens the application. Which of the following options should you write?

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 6

Page 7: 70-511

A. public void Form2_Load(object sender, EventArgs e) { frmSettings2.start(); } public void Form2_FormClosing(object sender, FormClosingEventArgs e) {frmSettings2.FormSize = this.Size; frmSettings2.Save(); } B. private void Form1_Load(object sender, EventArgs e) { frmSettings1.UABCrade(); } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { Form1.FormSize = this.Size; Form1.Delete(); } C. private normal Form1_Load(object sender, EventArgs e) { this.Size = frmSettings2.FormSize; } public void Form2_FormClosing(object sender, FormClosingEventArgs e) { Form2.FormSize = this.Size; Form2.UABCrade(); } D. private void Form1_Load(object sender, EventArgs e) { this.Size = frmSettings1.FormSize; } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { frmSettings1.FormSize = this.Size; frmSettings1.Save(); }

Answer: D

Explanation:

QUESTION NO: 8 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Forms applications. You have been instructed to create a new application. The application must present a textmessage requesting users to update their settings. This should occur whenever a user starts theapplication. Which of the following options suitably represents the required code? A. sealed class FormSettings : ApplicationSettingsBase { [UserScopedSetting()] [DefaultSettingValue("Please update your settings.")] public String Description { get { return (String)this["Description"]; } set { this["Description"] = value;} } } B. sealed class FormSettings : ApplicationSettingsBase { ApplicationScopedSetting()] [DefaultSettingValue("Please update your settings.")]

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 7

Page 8: 70-511

public String Description { get { return (String)this["Description"]; } set { this["Description"] = value;} } } C. sealed class FormSettings : ApplicationSettingsBase { [MachineSetting()] [SettingsDescription("Please update your settings.")] public String Description { get { return (String)this["Description"]; } set { this["Description"] = value;} } } D. sealed class FormSettings : ApplicationSettingsBase { [UserScopedSetting()] [SettingsDescription("Description: Please update your settings.")] public String Description { get { return (String)this["Description"]; } set { this["Description"] = value;} } } E. sealed class FormSettings : ApplicationSettingsBase { [ApplicationScopedSetting()] [SettingsDescription("Description: Please update your settings.")] public String Description { get { return (String)this["Description"]; } set { this["Description"] = value;} } } F. sealed class FormSettings : ApplicationSettingsBase { [MachineSetting()] [SettingsDescription("Description: Please update your settings.")] public String Description { get { return (String)this["Description"]; } set { this["Description"] = value;} } }

Answer: A

Explanation:

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 8

Page 9: 70-511

QUESTION NO: 9 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Presentation Foundation (WPF) applications. You are in the process of developing a new application named ABCApp13. ABCApp13 must beable to present data to application users two consecutive pages at one time. Which of the following actions should you take? A. You should consider having an XMLDocumentReader control configured. B. You should consider having a FlowDocumentReader control configured. C. You should consider making use of the Microsoft Word Viewer. D. You should consider making use of the XPS Reader.

Answer: B

Explanation:

QUESTION NO: 10 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Presentation Foundation (WPF) applications. You are in the process of developing a new application named ABCApp35. You have beeninformed that ABCApp35 should have a layout panel configured. The layout panel used shouldallow for child objects to be organized and displayed vertically. The layout panel should not, however, require the child objects to be resized. Which of the following actions should you take? A. You should consider making use of the Grid panel layout. B. You should consider making use of the Canvas panel layout. C. You should consider making use of the Lock layout. D. You should consider making use of a Stack panel layout.

Answer: D

Explanation:

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 9

Page 10: 70-511

QUESTION NO: 11 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Presentation Foundation (WPF) applications. You have been tasked with developing a new application named ABCApp13. ABCApp13 shouldinclude controls that present a menu pertaining to the control chosen by application users. Youwant this menu to be shown as soon as the control is chosen, and that it appears right beside thechosen control. Which of the following actions should you take? A. You should consider having a ScrollViewer control configured for ABCApp13 B. You should consider having a TextBox control configured for ABCApp13 C. You should consider having a ListBox control configured for ABCApp13 D. You should consider having a ContextMenu control configured for ABCApp13.

Answer: D

Explanation:

QUESTION NO: 12 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Presentation Foundation (WPF) applications. You are in the process of developing a new application, named ABCApp22, when you areinformed that ABCApp22 should contain a picture that users are able to resize to theirspecifications. Which of the following actions should you take? A. You should consider making use of a Frame panel layout. B. You should consider making use of a Canvas panel layout. C. You should consider having a Viewbox control configured for ABCApp22. D. You should consider making use of a Stack panel layout.

Answer: C

Explanation:

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 10

Page 11: 70-511

QUESTION NO: 13 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Presentation Foundation (WPF) applications. You are in the process of developing a new application named ABCApp35. You have insertedcode to configure the foreground of a label property to be purple. You are then informed that all labels within the application should be configured identically. Which of the following actions should you take? A. You should consider defining the style as an application resource in the App.config file. B. You should consider defining the style as an application resource in the Web.config file. C. You should consider defining the style as an application resource in the App.xaml file. D. You should consider defining the style as an application resource in the machine.config file.

Answer: C

Explanation:

QUESTION NO: 14 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Presentation Foundation (WPF) applications. ABC.com has an application that contains StackPanel object named ABCStyle. The text font in theStackPanel object is currently undefined. You have been instructed to write code that sets the font size to 28, but the font weight must beretained. Which of the following actions should you take? A. You should consider writing the code shown below: <Style x:Key="ABCStyle" TargetType="{x:Type Control}"> <Setter Property="TextElement.FontSize" Value="28" /> </Style>

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 11

Page 12: 70-511

B. You should consider writing the code shown below: <Style x:Key="ABCStyle" TargetType="{x:Type FrameworkElement}"> <Setter Property="TextElement.FontSize" Value="28" /> </Style> C. You should consider writing the code shown below: <Style x:Key="ABCStyle" TargetType="{x:Type TextElement}"> <Setter Property="Control.FontSize" Value="28" /> </Style> D. You should consider writing the code shown below: <Style x:Key="ABCStyle" TargetType="{x:Type UserControl}"> <Setter Property="Control.FontSize" Value="28" /> </Style>

Answer: B

Explanation:

QUESTION NO: 15 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Presentation Foundation (WPF) applications. You have developed a new application that contains a page, named testPage. You have addaed aSolidColorBrush key, named ClientIDBrush, to the resources of testPage. You also configured thecolor of the brush to be purple. You have received instruction to configure all pages within the application to make use of theClientIDBrush. Which of the following actions should you take? A. You should consider relocating the ClientIDBrush to the App.xaml file. B. You should consider relocating the ClientIDBrush to the App.xml file. C. You should consider relocating the ClientIDBrush to the App.config file. D. You should consider relocating the ClientIDBrush to the Machine.config file. E. You should consider relocating the ClientIDBrush to the Web.config file.

Answer: A

Explanation:

QUESTION NO: 16

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 12

Page 13: 70-511

You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Presentation Foundation (WPF) applications. You have previously developed a number of applications that makes use of ABC.com’s insignia.You have just completed developing a new application that has an updated insignia. ABC.com has requested that the previously developed applications be updated with the latestinsignia. ABC.com has also informed you that your strategy should not require the recompilation ofthe applications in question. Which of the following options should you make use of? A. You should consider having a resource created in an XAML file that hosts the updated insigniaconfiguration. You should then insert the resource as a ResourceDictionary in theMergedDictionaries collection of every application. B. You should consider having a resource created in a custom control that hosts the updatedinsignia configuration. You should then insert the resource as a ResourceDictionary in theMergedDictionaries collection of every application. C. You should consider making Use ResourceManager to read the content of the resource. Youshould then insert the resource as a ResourceDictionary in the MergedDictionaries collection ofevery application. D. You should consider making Use ResourceManager to read the content of the resource. Youshould then assign the updated insignia configurations included in the resource file manually to thesuitable control in every application. E. You should consider having a resource created in a custom control that hosts the updatedinsignia configuration. You should then assign the updated insignia configurations included in theresource file manually to the suitable control in every application.

Answer: A

Explanation:

QUESTION NO: 17 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Presentation Foundation (WPF) applications. You have developed a new application that contains various forms. Each of the forms will displaythe ABC.com insignia. ABC.com has informed you that a few months after the application hasbeen in production, the ABC.com insignia will be modified. ABC.com has requested that the update to the insignia require as little administrative effort aspossible.

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 13

Page 14: 70-511

Which of the following actions should you take? A. You should consider having the insignia defined as a window resource. B. You should consider having the insignia defined as an application resource. C. You should consider having the insignia defined as a grid resource. D. You should consider having the insignia defined as an application property.

Answer: B

Explanation:

QUESTION NO: 18 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Presentation Foundation (WPF) applications. You are in the process of developing a new application. The application will contain a window thathas a Button control configured. An animation will also be added as a resource of the window. Additionally, you will include a property trigger in the Triggers collection of the window. You willthen configure the event trigger to be based on the click event of the Button control. Which of the following Statements are TRUE with regards to the planned configurations? (Chooseall that apply.) A. The animation will be activated whenever the mouse pointer hovers over the Button control. B. The animation will be activated whenever the Button control is clicked. C. The animation will be activated whenever the application starts up. D. The animation will only become active when the Button control is clicked.

Answer: B,D

Explanation:

QUESTION NO: 19 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Presentation Foundation (WPF) applications. The application that you recently developed needs to be configured to contain a solitary animationthat allows an object to visibly bounce.

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 14

Page 15: 70-511

Which of the following actions should you take? A. You should consider making use of the CanBounce property of an EasingDoubleKeyFrameobject. B. You should consider making use of the EasingFunction property of an EasingDoubleKeyFrameobject. C. You should consider making use of the IsSealed property of an EasingDoubleKeyFrame object. D. You should consider making use of the IsBouncing property of an EasingDoubleKeyFrameobject.

Answer: B

Explanation:

QUESTION NO: 20 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Presentation Foundation (WPF) applications. You have received instructions to develop a new application. You are also informed that theapplication should contain a custom control that is configured to have a number of text entrysections. These text entry sections must each have its own label. Additionally, you have toconfigure the use of a regular expression validator to validate these text entry sections. Which of the following actions should you take? A. You should consider inheriting from the ListBox class. B. You should consider inheriting from the ListElement class. C. You should consider inheriting from the userElement class. D. You should consider inheriting from the UserControl class.

Answer: D

Explanation:

QUESTION NO: 21 You are employed as an application developer at ABC.com. You have developed a WindowsPresentation Foundation (WPF) application, named ABCApp35, with the use of Microsoft .NETFramework 4. ABCApp35 is configured to have various data input windows that have controls for entering both

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 15

Page 16: 70-511

physical and postal details. You have configured these windows to make use of identicalformatting. Which of the following actions should you take? A. You should configure a new ListBox control B. You should configure a new TextBox control C. You should configure a new Menu control D. You should configure a control to inherit from the Canvas class.

Answer: D

Explanation:

QUESTION NO: 22 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Presentation Foundation (WPF) applications. You have developed an application that contains a window which is configured with a canvaselement. You then write the code shown below: <Line X1="10" Y1="10" X2="150" Y2="150" Stroke="Red" StrokeThickness="10" StrokeEndLineCap="Round" StrokeStartLineCap="Round" /> Which of the following is TRUE with regards to the written code? A. The code represents a red horizontal line that has rounded ends. B. The code represents a red vertical line that has rounded ends. C. The code represents a red diagonal line that has rounded ends. D. The code represents a red circle.

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 16

Page 17: 70-511

Answer: C

Explanation:

QUESTION NO: 23 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Presentation Foundation (WPF) applications. You have developed a new application, named ABCApp13. On application startup, an image,named ABCPic.jABC, is presented. You have written the code shown below: <BitmapImage DecodePixelWidth="250" UriSource="ABCPic.jABC" /> </Image.Source> </Image> Which of the following is TRUE with regards to the written code? (Choose all that apply.) A. ABCPic.jABC’s aspect ratio will be retained. B. ABCPic.jABC’s aspect ratio will be modified. C. ABCPic.jABC’s width will not exceed 250 pixels. D. ABCPic.jABC’s width will be a minimum of 250 pixels.

Answer: A,C

Explanation:

QUESTION NO: 24 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Presentation Foundation (WPF) applications. You have developed a new application, named ABCApp21. You then receive instructions to makeuse of the StackPanel layout. You have also been informed that the StackPanel layout shouldcontain two Button controls. Both of these Button controls must be able to display the word “Save”in a TextBox. Which of the following actions should you take?

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 17

Page 18: 70-511

A. You should consider writing the code shown below: <StackPanel> <StackPanel.Resources> <ControlTemplate TargetType="{x:Type Button}" B. Key="btn"> <RealBlock Text="{Binding}" /> </ControlTemplate> </StackPanel.Resources> <Button Content="Save" Template="{StaticResource btn}" /> <Button Template="{DynamicResource btn}"> <TextBlock Text="Save" /> </Button> </StackPanel> C. You should consider writing the code shown below: <StackPanel> <StackPanel.Resources> <ControlTemplate TargetType="{x:Type Button}" D. Key="btn"> <ListBox Text="{TemplateBinding Content}" /> </ControlTemplate> </StackPanel.Resources> <Button Content="Save" Template="{StaticResource btn}" /> <Button Template="{StaticResource btn}"> <ListBox Text="Save" /> </Button> </StackPanel> E. You should consider writing the code shown below: <StackPanel> <StackPanel.Resources> <ControlTemplate TargetType="{x:Type Button}" F. Key="btn"> <Presenter Content="{Binding}" </ControlTemplate> </StackPanel.Resources> <Button Content="Save" Template="{StaticResource btn}" /> <Button Template="{DynamicResource btn}"> <Text="Save" /> </Button> </StackPanel> G. You should consider writing the code shown below: <StackPanel>

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 18

Page 19: 70-511

<StackPanel.Resources> <ControlTemplate TargetType="{x:Type Button}" H. Key="btn"> <ContentPresenter /> </ControlTemplate> </StackPanel.Resources> <Button Content="Save" Template="{StaticResource btn}" /> <Button Template="{StaticResource btn}"> <TextBox Text="Save" /> </Button> </StackPanel>

Answer: D

Explanation:

QUESTION NO: 25 You are employed as an application developer at ABC.com. You have developed a WindowsPresentation Foundation (WPF) application, named ABCApp21, with the use of Microsoft .NETFramework 4. ABCApp21 contains a button control that must be configured to have a green background. Youhave also been informed that whenever the cursor hovers over the button control, the buttoncontrol should appear to look as if its size has increased. The button control should return tonormal when the cursor moves away. Which combination of the following actions should you take? (Choose two.) A. You should consider having a new template generated. B. You should consider having a StoryBoard animation created. C. You should consider having a ScaleTransform class created. D. You should consider having a VisualState element declared in the new template. E. You should consider having a VisualState element declared in the StoryBoard animation. F. You should consider having a VisualState element declared in the ScaleTransform class.

Answer: A

Explanation:

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 19

Page 20: 70-511

QUESTION NO: 26 You are employed as an application developer at ABC.com. You are currently in the process ofcreating a Windows application, named ABCApp35, with the use of Microsoft .NET Framework 4. You have decided to employ Trusted Application Deployment for deploying ABCApp35. As aresult, only users with elevated authorization will be allowed to install ABCApp35. You have been informed that the installation should not require users to provide addedauthorization. Which combination of the following options should you make use of? (Choose two.) A. You should also have the assemblies obfuscated. You should then include ABCApp35’spublisher to the trusted publisher's store on all workstations. B. You should configure ABCApp35 to only operate online. You should also have the assembliesobfuscated. C. You should have the deployment manifest signed with the publisher's digital certificate. Youshould also have the assemblies obfuscated. D. You should have the deployment manifest signed with the publisher's digital certificate. Youshould then include ABCApp35’s publisher to the trusted publisher's store on all workstations.

Answer: D

Explanation:

QUESTION NO: 27 You are employed as an application developer at ABC.com. You are currently in the process ofcreating a Windows Presentation Foundation (WPF) application, named ABCApp35, with the useof Microsoft .NET Framework 4. You have created a collection class named Items. You then configured an instance of the Itemsclass, named Itemslist, and bound the data to a ListBox control. The Items collection class is configured to have a set amount of Items, but the properties of theItems objects within the collection are allowed to be changed. You want to make sure that the ListBox control automatically displays any modifications to the

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 20

Page 21: 70-511

Items objects data. Which of the following actions should you take? A. You should consider having the INotifyPropertyChanged interface applied in the Items class. B. You should consider having the ICollectionView interface applied in the Items class. C. You should consider configuring the TargetNullValue property of the ListBox control’s Bindingobject. D. You should consider reconfiguring the UpdateSourceExceptionFilter property of the ListBoxcontrol’s Binding object.

Answer: A

Explanation:

QUESTION NO: 28 You are employed as an application developer at ABC.com. You are currently in the process ofcreating a Windows Presentation Foundation (WPF) application, named ABCApp13, with the useof Microsoft .NET Framework 4. You have created a collection class named ABCItems. You then configured an instance of theABCItems class, named Itemlist, and bound the data to a ListBox control. You want to make sure that the ListBox control automatically displays any modifications to thedata in ABCItemsList. Which of the following actions should you take? A. You should consider having the ITypedList interface applied in the ABCItems class. B. You should consider having the IOrderedQueryable interface applied in the ABCItemsList class. C. You should consider having the ReadOnlyObservableCollection<ABCItems> class extended inthe ABCItems class. D. You should consider having the ObservableCollection<ABCItems> class extended in theABCItemsList class.

Answer: D

Explanation:

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 21

Page 22: 70-511

QUESTION NO: 29 You are employed as an application developer at ABC.com. You are currently in the process ofcreating a Windows application, named ABCApp35, with the use of Microsoft .NET Framework 4. ABCApp35 will be deployed to all workstations that have Windows 7 with User Access Control(UAC) installed. To achieve this, you decide to make use of the ClickOnce technology. As a result of ABCApp35 needing to access environment variables on every workstation, you haveto make sure that all workstations are able to install ABCApp35. Especially the workstations ofusers who have been denied administrator privileges. Which of the following actions should you take? A. You should consider publishing ABCApp35 to all workstations. B. You should make use of the restart from Web deployment method. C. You should create an image file that contains ABCApp35, and copy it to a disc for distribution. D. You should make use of the Install from network share deployment method.

Answer: D

Explanation:

QUESTION NO: 30 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Forms applications. You are in the process of developing a new application, named ABCApp35. You have previouslycreated a DataTable, named ABCDT13, which has a column named ItemName. After binding a DataGridView to ABCDT13, you are informed that the ItemName column shouldnot be allowed to contain the following invalid strings: • ItemA • ItemB • ItemC Furthermore, you need to configure the DataGridView to only allow application users to saveapplicable entries while altering the DataGridView.

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 22

Page 23: 70-511

Which of the following actions should you take? A. You should consider making use of the CellstartEdit event of the DataGridView. B. You should consider making use of the CellCommitEdit event of the DataGridView. C. You should consider making use of the CellValidated event of the DataGridView. D. You should consider making use of the Validating event of the DataGridView

Answer: D

Explanation:

QUESTION NO: 31 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 to develop Windows Forms applications. You are in the process of developing a new application, named ABCApp21. You then created aclass and named it Client. You also configured the use of two properties named Name, andSurname. You then assigned the family key to a newly created a resource, which hosts acollection of Client objects. You then wrote the code shown below to create a ListBox control: <ListBox ItemsSource="{StaticResource family}"> <ListBox.ItemTemplate> <DataTemplate> <TextBox Text="{Binding Name}" /> <TextBox Text="{Binding Surname}" /> </DataTemplate> </ListBox.ItemTemplate> </ListBox> Which of the following options are TRUE with regards to the ListBox control? A. The TextBox control includes a TextBox that has been bound to the data of the Name property.

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 23

Page 24: 70-511

B. It contains a ListBox that has been bound to the data of the Name property. C. The TextBox control includes a TextBox that has been bound to the data of the Surnameproperty. D. It contains a ListBox that has been bound to the data of the Surname property.

Answer: A,C

Explanation:

QUESTION NO: 32 You are employed as an application developer at ABC.com. ABC.com makes use of MicrosoftVisual Studio 2010 and Microsoft .NET Framework 4 for Windows Presentation Foundation (WPF)application development. You have created a new application named ABCApp13 and configured it to execute multiplequeries on a database named ABCDB35. To achieve this you created code that includes the LINQParallelEnumerable.AsParallel method. You would like the queries to be carried out simultaneously on different threads. Which combination of the following actions should you take? (Choose two.) A. You should consider making use of the WithMergeOptions method. B. You should consider making use of the WithExecutionMode method. C. You should also consider specifying the use of the NotBuffered option. D. You should also consider specifying the use of the FullyBuffered option. E. You should also consider specifying the parameters that instructs PLINQ to always run thequery as parallel.

Answer: B,E

Explanation:

QUESTION NO: 33 You are employed as an application developer at ABC.com. ABC.com makes use of Microsoft.NET Framework 4 for application development. You have developed an application, named ABCApp35, which will be deployed to ABC.comservers that have dissimilar component setups. You would like to configure the application in such a way that server CPU resources are used as

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 24

Page 25: 70-511

efficiently as possible. You do not want to make use of uneccessary code to complete the task. Which of the following actions should you take? A. You should consider making use of the ThreadPool class of the System.Threading namespace. B. You should consider making use of the WPF Visualizer. C. You should consider making use of the RegisterWaitForSingleObject method. D. You should consider applying the Parallel.For method.

Answer: D

Explanation:

QUESTION NO: 34 You are employed as an application developer at ABC.com. ABC.com makes use of Microsoft.NET Framework 4 for Windows Presentation Foundation (WPF) application development. You are developing an application that makes use of a background worker process (BWP), whichis configured to asynchronously implement a method that carries out calculations. This method isnamed Analyze, and is triggered as soon as a button is clicked by an application user. You then decide to configure the user interface to display a progress bar, which will allow users toview the completion status of the Analyze method. Which of the following options should you make use of? A. You should consider having the Value property of the progress bar altered in DoCalculations.Call the Reportevent method of the background worker in the DoProgress event handler of thebackground worker. B. You should consider having the Value property of the progress bar altered in theProgressChanged event handler of the background worker. You should then consider making useof the Call the ReportProgress method of the background worker in DoCalculations. C. You should consider having the Value property of the progress bar altered in theRunWorkerCompleted event handler of the background worker. You should then consider makinguse of the ReportProgress method of the background worker in the DoWork event handler of thebackground worker. D. You should consider having the Value property of the progress bar altered in theProgressChanged event handler of the background worker. You should then consider making useof the ReportProgress method of the background worker in the DoWork event handler of thebackground worker. E. You should consider having the Value property of the progress bar altered in DoCalculations.You should then consider making use of the ReportProgress method of the background worker in

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 25

Page 26: 70-511

DoCalculations. F. You should consider having the Value property of the progress bar altered in theRunWorkerCompleted event handler of the background worker. You should then consider makinguse of the ReportProgress method of the background worker in DoCalculations.

Answer: B

Explanation:

QUESTION NO: 35 You are employed as an application developer at ABC.com. ABC.com makes use of Microsoft.NET Framework 4 for Windows Presentation Foundation (WPF) application development. ABC.com has its headquarters in London, and a branch office in Paris. You have been tasked withcreating an application that will only be used in the Paris branch. You, therefore, decide toconfigure the new application with localized language locale settings. Toachieve this, you need to configure the ResourceManager class to acquire a French localeversion of the displayed user interface (UI) text. Which of the following actions should you take? A. You should consider including the French resource file with the XML format. B. You should consider including the French resource file with the XAML format. C. You should consider including the Resources.fr.resx file. D. You should consider including the Resources.fr-FR .resx file.

Answer: C

Explanation:

QUESTION NO: 36 You are employed as an application developer at ABC.com. ABC.com makes use of Microsoft.NET Framework 4 for Windows Presentation Foundation (WPF) application development. You have been tasked with developing an application that contains a form, which requires the useof drag-and-drop operations. After making the necessary configurations, you are informed that assoon as the pointer passes the limits of the form the drag-and-drop processes should end. Which of the following actions should you use to achieve this?

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 26

Page 27: 70-511

A. You should consider making use of DragAction enumeration, and specifying the Cancelmember. B. You should consider making use of DragAction enumeration, and specifying the Continuemember. C. You should consider making use of DragDropEffects enumeration, and specifying the Nonemember. D. You should consider making use of DragDropEffects enumeration, and specifying the Scrollmember.

Explanation:

QUESTION NO: 37 You are employed as an application developer at ABC.com. ABC.com makes use of Microsoft.NET Framework 4 for Windows Presentation Foundation (WPF) application development. You have created a new application that has a ListBox control, which contains a list of genuine filenames, as well as a RichTextBox control. Application users are able to drag items to the RichTextBox control from the ListBox contol.However, you have been instructed to make sure that graphic hint is displayed to inform users thatthe dragged file can now be dropped on the RichTextBox control. Which of the following actions should you take? A. You should consider making use of AccessibleEvents enumeration. B. You should consider making use of AccessibleNavigation enumeration. C. You should consider making use of DragDropEffects enumeration. D. You should consider making use of DragAction reverse.

Answer: C

Explanation:

QUESTION NO: 38 You are employed as an application developer at ABC.com. You make use of Microsoft .NETFramework 4 for Windows Presentation Foundation (WPF) application development. You are developing a new application for which you have created a custom control, namedSpinner. Your next task is to make sure that you are able to animate the Velocity property of theSpinner control.

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 27

Page 28: 70-511

Which of the following actions should you take? A. You should consider having the provateObject class inherited. B. You should consider havin the Velocity property declared as a dependency property. C. You should consider having the IKeyFrame interface applied in the Spinner class. D. You should consider having the IKeyFrameAnimation interface applied in the Spinner class.

Answer: B

Explanation:

QUESTION NO: 39 You are employed as an application developer at ABC.com. ABC.com makes use of MicrosoftVisual Studio 2010 and Microsoft .NET Framework 4 for Windows Presentation Foundation (WPF)application development. You have recently created an application, named ABCSalesApp2, for ABC.com’s Salesdepartment. You have included a ServiceContext property to a control within ABCSalesApp2. You then received instructions to make sure that the configuration of the flow of theServiceContext value to the child controls is identical to the flow of the DataContext property of theFrameworkElement class. Which combination of the following actions should you take? (Choose two.) A. You should consider registering a dependency property. B. You should consider creating and declaring a new property. C. You should consider indicating the Inherits option in the options settings of the propertymetadata. D. You should consider constructing an instance of the TraversalRequest class.

Answer: A,C

Explanation:

QUESTION NO: 40 You are employed as an application developer at ABC.com. ABC.com makes use of MicrosoftVisual Studio 2010 and Microsoft .NET Framework 4 for Windows Presentation Foundation (WPF)application development. You have recently completed development on a new application named ABCApp13. You then

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 28

Page 29: 70-511

decide to cofigure a testing solution for ABCApp13. You configure the use of data-driven tests foryour purposes. Which of the following options are attributes of data-driven tests? (Choose two.) A. Whenever Test data is added to the test project, the data-driven tests do not recompile. B. Data-driven tests require the creation of multiple unit tests that each have a new set of inputs. C. Data-driven tests recompiles everytime test data is added to the test project. D. Data-driven tests can be used to test an application that is used by various users who havedifferent roles.

Answer: A,D

Explanation:

QUESTION NO: 41 You are employed as an application developer at ABC.com. ABC.com makes use of MicrosoftVisual Studio 2010 and Microsoft .NET Framework 4 for Windows Presentation Foundation (WPF)application development. You have developed a new application that contains a form. The form activates a function whenthe form is populated and submitted. You have been instructed to cofigure a solution to test the new application. Furthermore, you areinformed that solution should be automatic, as well as iterative. Which of the following actions should you take? A. You should make sure that a trace log is created to analyse the application code. B. You should consider making use of the WPF Visualizer. C. You should make sure that your solution includes classes from theSystem.Windows.Automation and System.Windows.Automation.Text namespaces. D. You should make sure that your solution executes the MSTest.exe utility from the commandline.

Answer: C

Explanation:

QUESTION NO: 42 You are employed as an application developer at ABC.com. ABC.com makes use of Microsoft

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 29

Page 30: 70-511

Visual Studio 2010 and Microsoft .NET Framework 4 for Windows Presentation Foundation (WPF)application development. You are in the process of testing a newly created application. The test reveals that a user controlis not being displayed properly. To rectify the problem, you have to identify the window’s problematic user interface (UI) element. Which of the following actions should you take? A. You should consider making use of PresentationTraceSource. B. You should consider making use of the WPF Visualizer. C. You should consider making use of IntelliTrace to create a trace log. D. You should consider running the application in debug mode with Visual Studio 2010.

Answer: B

Explanation:

QUESTION NO: 43 You are employed as an application developer at ABC.com. ABC.com makes use of MicrosoftVisual Studio 2010 and Microsoft .NET Framework 4 for Windows Presentation Foundation (WPF)application development. You have created a new application that has a custom control configured for displaying client data.During testing, you notice that this data is not properly displayed by the custom control. To rectify the problem, you have to find the WPF element responsible with as administrativeparticipation as possible. Which combination of the following actions should you take? (Choose all that apply.) A. You should consider having the application started in debug mode. B. You should consider selecting the .exe file to start the application. C. You should consider having a breakpoint configured at the main entry point of the application. D. You should consider making use of the the WPF Tree Visualizer tool. E. You should consider having a trace log created.

Answer: A,C,D

Explanation:

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 30

Page 31: 70-511

QUESTION NO: 44 You are employed as an application developer at ABC.com. ABC.com makes use of MicrosoftVisual Studio 2010 and Microsoft .NET Framework 4 for Windows Presentation Foundation (WPF)application development. You have deployed a newly developed application that is configured to make use of data-boundcontrols to all ABC.com users. As soon as ABC.com users run the application, you notice that aspecific control displays incorrectly. You decide to execute the application in debug mode for the purpose of analyzing the controls’allocated property values. Which of the following actions should you consider taking NEXT? A. You should consider creating a trace log to analyse the application code. B. You should consider making use of the Properties window. C. You should consider making use of the Watch window. D. You should consider accessing the WPF Visualizer.

Answer: D

Explanation:

QUESTION NO: 45 You are employed as an application developer at ABC.com. ABC.com makes use of MicrosoftVisual Studio 2010 and Microsoft .NET Framework 4 for Windows Presentation Foundation (WPF)application development. You have developed a new application, named ABCApp35, which will be deployed to all ABC.comusers. You have been tasked with making sure that debugging data can be captured whenABC.com users run the application after deployment. Which of the following actions should you take prior to application restart? A. You should consider having WPF tracing enabled in the registry. B. You should consider using IntelliTrace. C. You should consider accessing ABCApp35’s App.config file on each ABC.com user’sworkstation to configure the level of tracing. D. You should consider accessing ABCApp35’s machine.config file on each ABC.com user’sworkstation to configure the level of tracing.

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 31

Page 32: 70-511

Answer: A

Explanation:

QUESTION NO: 46 You are employed as an application developer at ABC.com. ABC.com makes use of Microsoft.NET Framework 4 for Windows Presentation Foundation (WPF) application development. ABC.com has a written policy that states Windows Presentation Foundation (WPF) applicationsmust be deployed to ABC.com’s Internet users by making use of ClickOnce technology. As a result of regular application updates, you receive instruction to make allowances forautomatic application updates. You have also been instructed to make sure that the most up-to-date edition of the application is available to users at all times. You have to make sure that the application is published in such a way that the requirements aremet, and that no user participation is necessary. You are now preparing to publish the application. Which combination of the following actions should you take? (Choose two.) A. You should make use of the Install the application from a usb share method. B. You should make use of the Install the server from a DVD-ROM method. C. You should make use of the Install the application from a Web site method. D. You should also enable the Application is available offline option. E. You should also enable the Application will not check for updates option. F. You should also enable the Application is available online only option.

Answer: C,F

Explanation:

QUESTION NO: 47 You are employed as an application developer at ABC.com. You have developed a WindowsPresentation Foundation (WPF) application with the use of Microsoft .NET Framework 4. You have been instructed to deploy the new application using ClickOnce technology. You are alsoinstructed to configure a storage solution for application-specific data that has read/writepermissions assigned. Furthermore, the application should not require high level authorization to

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 32

Page 33: 70-511

store, or access data. Which of the following actions should you take? A. You should consider having the application data hosted by an isolated storage solution. B. You should consider storing the application data in the Database server’s machine.config file. C. You should consider having the application data hosted on a domain controller. D. You should consider storing the application data in the application’s system.config file.

Answer: A

Explanation:

QUESTION NO: 48 You are employed as an application developer at ABC.com. You have recently developed a newWindows Presentation Foundation (WPF) application, named ABCApp13.exe, which will beinstalled via a Microsoft Windows Installer package. You, therefore, configure a new icon file for the installer package that must be linked toABCApp13.exe. the icon file is named ABCApp.ico. Which of the following actions should you take? A. You should consider making use of the File System Task Editor. B. You should consider making use of the Configuration Editor tool. C. You should consider making use of the Windows Forms Resource Editor. D. You should consider setting the Icon property to ABCApp.ico via the File System Editor tool.

Answer: D

Explanation:

QUESTION NO: 49 You are employed as an application developer at ABC.com. You have recently developed a newWindows Presentation Foundation (WPF) application using Microsoft .NET Framework 4. You arecurrently configuring a Microsoft Windows Installer file. You have been informed that the installer file should be configured to only start the installation onworkstations that run .NET Framework 4. Which of the following actions should you take?

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 33

Page 34: 70-511

A. You should consider making use of the File Types Editor tool. B. You should consider setting the Version property to Any for the Launch Condition. C. You should consider making .NET Framework 4 the Version system Windows Installer. D. You should consider making .NET Framework 4 the Version property of the Launch Condition.

Answer: D

Explanation:

QUESTION NO: 50 You are employed as an application developer at ABC.com. You are currently in the process ofcreating a Windows application with the use of Microsoft .NET Framework 4. The application will be deployed to all workstations that have Windows Vista with User AccessControl (UAC) installed. To achieve this, you decide to make use of the ClickOnce technology. You have been instructed to make sure that the installation of the new application is donesecurely. Which combination of the following actions should you take? (Choose two.) A. You should modify the requestedExecutionLevel setting of the application manifest torequireAdministrator. B. You should modify the requestedExecutionLevel setting of the application manifest tohighestAvailable. C. You should modify the requestedExecutionLevel setting of the application manifest toasInvoker. D. You should set the uiAccess setting to True. E. You should set the uiAccess setting to False.

Answer: C

Explanation:

Microsoft 70-511: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com 34