PrepAway - Latest Free Exam Questions & Answers

Category: 70-511

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

You need to ensure that the XAML file is referenced so that the application can apply the settings in the Blue

You are developing a Windows Presentation Foundation (WPF) application. All of the application styles are in the file name Themes.dll

You have the followiing markup segment.

<Border Style=”{StaticResource BlueBackground}” Heigh=”100″ Width=”200″>
….
</Border>

BlueBackground is defined in a XAML file named BlueTheme.xaml. The XAML markup is compiled into the Themes.dll file.

You need to ensure that the XAML file is referenced so that the application can apply the settings in the BlueBackground style.

You need to be ensure that the function has the proper permission to read the c:\temp directory

You are developing a Windows Presentation Foundation (WPF) application.

You are implementing the security features for a function that requires File IO. The callers of this function that are higher in the stack.. have permission to read the c:\temp directory
The function also accesses other resources that requires permission.

You need to be ensure that the function has the proper permission to read the c:\temp directory, and that all other resources in the .. still be accessed

You need to ensure that the style is updated to meet the following requirements regarding currency…

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.

<Style x:Key = “CurrencyLabel”
BasedOn=”{StaticResource {x:Type Label}}”
TargetType=”{x:Type Label}”>
<Setter Property = “Template”>
<Setter.Value>

</Setter.Value>
</Setter>
</Style>

You need to ensure that the style is updated to meet the following requirements regarding currency:

– It must be right aligned
– It must display the number with the regional currency settings

Which code segment should you add to the constructor of the user control?

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

Which code fragment should you insert at line 12?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
The application displays a list of books.
You write the following code fragment. (Line numbers are included for reference only.)
01<Window.Resources>
02<XmlDataProvider x:Key=”InventoryData” XPath=”Books”>
03<x:XData>
04<Books xmlns=””>
05<Book Title=”XML in Action” Stock=”in” />
06<Book Title=”Inside C#” Stock=”out” />
07<Book Title=”Introducing Microsoft .NET” Stock=”in”/>
08</Books>
09</x:XData>
10 </XmlDataProvider>
11<Style x:Key=”MyItemStyle” TargetType=”{x:Type ListBoxItem}”>
12
13</Style>
14</Window.Resources>
15<ListBox ItemContainerStyle=”{StaticResource MyItemStyle}”>
16<ListBox.ItemsSource>
17<Binding Source=”{StaticResource InventoryData}” XPath=”Book”/>
18</ListBox.ItemsSource>
19<ListBox.ItemTemplate>
20<DataTemplate>
21<TextBlock>
22<TextBlock.Text>
23<Binding XPath=”@Title”/>
24</TextBlock.Text>
25</TextBlock>
26</DataTemplate>
27</ListBox.ItemTemplate>
28</ListBox>
You need to ensure that book titles that are out of stock appear in red.
Which code fragment should you insert at line 12?

Which code segment should you write for the click event handler for btnDetails?

You create a Windows client application by using Windows Presentation Foundation (WPF).
The application contains the following code fragment.
<Window.Resources>
<DataTemplate x:Key=”detail”>
<!–…–>
</DataTemplate>
</Window.Resources>
<StackPanel>
<ListBox Name=”lbDetails”>
</ListBox>
<Button Name=”btnDetails”>Details</Button>
</StackPanel>
You need to assign lbDetails to use the detail data template when btnDetails is clicked.
Which code segment should you write for the click event handler for btnDetails?

What should you do ?

You are developing a Windows Forms application that contains a DataGridView control. The DataGridView capture the customer’s name, address, and phone number.

You have been asked to provide data validation in a DataGridView to prevent users from leaving the..

You need to ensure that users cannot tab out of the name field without entering data

What should you do ?

What should you do?

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?

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?


Page 1 of 1312345...10...Last »