最新的Microsoft TS: Windows Applications Development with Microsoft .NET Framework 4 - 70-511免費考試真題

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains the following code fragment.
<StackPanel>
<TextBlock Style="{StaticResource HyStyle)">Hello World</TextBlock>
<Button Style="{StaticResource HyStyle}">Ok</Button>
</StackPonel>
You need to define a style that applies the following properties to the text in the StackPanel object:
- FontSize = 32
- FontWeight = Bold
Which code fragment should you use?

正確答案: C
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code fragment. (Line numbers are included for reference only.)
01 <Canvas>
02 <Rectangle Stroke-"Red" StrokeThickness-"5" Height-"60"
03 Width-"60" Canvas. Left100" Canvas.Top-"100"> 04
05 </Rectangle>
06 </Canvas>
You need to rotate the rectangle by 45 degrees by using its upper-left corner as the axis.
Which code fragment should you insert at line 04?

正確答案: D
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
You are developing a Windows Presentation Foundation (WPF) application. The application consists of:
----
A window that contains controls organized into groups.
Groups that are ordered vertically and that have individual headings.
Controls within the groups that are ordered horizontally.
Groups and controls that will be added dynamically at run time.
You need to ensure that the application meets the following requirements:
-
The window must be resizable without affecting the layout of the controls.
- The controls within the groups must be laid out such that there is a minimum amount of spacing between groups.
What should you do?

正確答案: D
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
The application contains a window as shown in the following exhibit.

You need to define a DockPanel control that fits the window. Which code fragment should you use?

正確答案: C
You are deploying a ClickOnce application manually in a test environment.
You need to ensure that the deployment is signed with a self-signed test X.509 certificate.
Which tool should you use to create the certificate?

正確答案: B
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?

正確答案: B
You are developing a Windows Presentation Foundation (WPF) application. The WPF window contains a ListBox control that displays a list of customer names and genders.
You add the following markup segment to the application. (Line numbers are included for reference only.)

The WPF window renders the list of customers with empty Gender values.
You need to convert the null values for Gender to the following string: "Gender Not Specified".
Which binding attribute should you add at line 08?

正確答案: A
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You write the following code fragment to bind a customer object to several controls in a window.
<TextBox Text="{Binding Path=CustomerName}" Name="textBoxl" />
When the application executes, you receive the following error message:
"System.Windows.Data Error: 35: BindingExpression path error: 'CustomerName' property not found on 'object' "Customer1 (HashCode=22613453). BindingExpression:Path=CustomerNarne; DataItem='Customer' (HashCode=22613453);
target element is 'TextBox' (Name='textBoxl'); target property is 'Text' (type 'String')"
You need to identify the source of the error.
What should you do?

正確答案: A
You are developing a Windows Presentation Foundation (WPF) application. The application contains the following markup.

You need to ensure that the Filter combo box is hidden when the expander is collapsed. What should you do?

正確答案: B
You are developing a Windows Presentation Foundation (WPF) application that displays pricing and inventory Information.
A list box's ItemsSource property has decimal and string types. Decimals represent price and strings represent messages such as "Discontinued"
The following markup is defined as follows. (Line numbers are included for reference only.)

You need to ensure that data templates are used to format the strings without changes and the decimals as currency.
Which markup segment should you insert at line 05?

正確答案: A
You are developing a Windows Presentation Foundation (WPF) application. The application contains a converter named DateOutputConverter that formats dates. The window is defined as follows. (Line numbers are included for reference only.)

The window must display the OrderDate value found in shippedOrder. The text box must display the OrderDate formatted by the DateOutputConverter.
You need to ensure that the OrderDate is displayed and formatted correctly.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

正確答案: C,D
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?

正確答案: B
You are developing a Windows Presentation Foundation (WPF) application that displays financial data.
The following style is applied to every Label control that displays currency. (Line numbers are included for reference only.)

You need to ensure that the style is updated to meet the following requirements regarding currency:
Which markup segment should you insert at line 06?

正確答案: A
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?

正確答案: B

聯系我們

如果您有任何問題,請留下您的電子郵件地址,我們將在12小時內回复電子郵件給您。

我們的工作時間:( GMT 0:00-15:00 )
週一至週六

技術支持: 立即聯繫 

English 日本語 Deutsch 한국어