PrepAway - Latest Free Exam Questions & Answers

Category: 70-511

Exam 70-511: TS: Windows Applications Development with Microsoft .NET Framework 4

Which code fragment should you insert at line 02 to complete the declaration?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The
application contains a form named frmMain that contains a button named btnSave.
You create a ProgressBar control named saveProgress. Initially, saveProgress is not displayed on frmMain.
When a user clicks btnSave, you have the following requirements:
* saveProgress is slightly visible after 0.2 seconds
* saveProgress is fully visible after 1 second
You need to declare the corresponding storyboard.
You write the following code fragment. (Line numbers are included for reference only.)
01<Storyboard x:Key=”animateProgress” TargetName=”saveProgress”>
02
03</Storyboard>
Which code fragment should you insert at line 02 to complete the declaration?

What should you do?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You create a window named ManageOrders that contains a Button control named showOtherSide.
You add an animation named FlipSides as a resource of ManageOrders.
You need to ensure that the following requirements are met:
* FlipSides runs each time a user clicks showOtherSide.
* FlipSides runs only when a user clicks showOtherSide.
What should you do?

What should you do?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Framework (WPF) application.
You have a company logo that must appear on multiple forms in the application.
The logo design changes frequently.
You need to ensure that when the logo image is changed, you only need to update a single location.
What should you do?

Which two actions should you perform?

You use Microsoft .NET Framework 4 to create a custom Windows Presentation Foundation (WPF) application.
Your environment includes several WPF applications. The applications use the same logo and style configuration as part of a corporate standard.
You need to ensure that the existing applications can be updated to use the same logo and style settings without recompiling.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

What should you do?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation
Framework (WPF) application.
You have a page named myPage that contains the following code fragment.
<Page.Resources>
<SolidColorBrush x:Key=”CustomerNameBrush” Color=”SkyBlue”/>
</Page.Resources>
You need to ensure that other pages in your application can use CustomerNameBrush.
What should you do?

Which code fragment should you use?

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 MyStyle}”>Hello World</TextBlock>
<Button Style=”{StaticResource MyStyle}”>Ok</Button>
</StackPanel>
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?

What should you do?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You write the following code fragment.
<Style TargetType=”{x:Type Label}”>
<Setter Property=”Foreground” Value=”Blue”/>
</Style>
You need to ensure that the style is applied to all labels within the application.
What should you do?

Which code fragment should you insert at line 12?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You want the application to contain a window as shown in the following exhibit.
The application contains the following code fragment. (Line numbers are included for reference only.)
01<Grid ShowGridLines=”True”>
02<Grid.ColumnDefinitions>
03<ColumnDefinition />
04<ColumnDefinition />
05<ColumnDefinition />
06</Grid.ColumnDefinitions>
07<Grid.RowDefinitions>
08<RowDefinition />
09<RowDefinition />
10<RowDefinition />
11</Grid.RowDefinitions>
12
13<TextBlock FontWeight=”Bold” Grid.Row=”1″ Grid.Column=”0″>Quarter</TextBlock>
14<TextBlock FontWeight=”Bold” Grid.Row=”1″ Grid.Column=”1″>Quarter 1</TextBlock>
15<TextBlock FontWeight=”Bold” Grid.Row=”1″ Grid.Column=”2″>Quarter 2</TextBlock>
16<TextBlock FontWeight=”Bold” Grid.Row=”2″ Grid.Column=”0″>Products</TextBlock>
17<TextBlock Grid.Row=”2″ Grid.Column=”1″>100000</TextBlock>
18<TextBlock Grid.Row=”2″ Grid.Column=”2″>150000</TextBlock>
19</Grid>
You need to create the application window.
Which code fragment should you insert at line 12?


Page 10 of 13« First...89101112...Last »