Ensurepass

QUESTION 111

You have a custom button, with should have a Property “IsActive”, one must be able to bind this Property on a class Property

A.    Dependency Property

B.    INotifyPropertyChanged

C.    net Property

 

Correct Answer: B

 

 

QUESTION 112

You have defined a style in app.xaml

<Style x:Key=”A” x:Name=”B” …

</Style>

You want to use this style in your application in code behind. How can you achieve this?

 

A.    button1.Style = FindName(“A”) as Style

B.    button1.Style = FindName(“B”) as Style

C.    button1.Style = FindResource(“A”) as Style

D.    button1.Style = FindResource(“B”) as Style

 

Correct Answer: C

 

 

QUESTION 113

You are deploying a Windows Forms application. You use the Publishing wizard within Visual Studio to configure ClickOnce options. You need to ensure that a custom zone is created with specific permissions within the security tab of Visual Studio. What should you do?

A.    Disable the ClickOnce security settings. Then edit the deployment.application file.

B.    Enable the ClickOnce security settings. Choose the “This is a Partial Trust Application” radio button. Then edit the app.manifest file.

C.    Enable the ClickOnce security settings. Then edit the deployment.application file.

D.    Enable the ClickOnce security settings. Choose the “This is a Full Trust Application” radio button. Then edit the app.manifest file.

 

Correct Answer: B

 

 

QUESTION 114

You are developing a Windows Presentation Foundation (WPF) application. You are implementing a test strategy for the application. You need to ensure that the history of your testing session can be rewound in the execution cycle so that the state of the application and events that occurred previously can be viewed. What should you use?

 

A.    Visual Studio debugger break points

B.    Coded UI Tests

C.    IntelliTrace

D.    an error dump file

 

Correct Answer: C

 

 

QUESTION 115

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

There is an issue in the display of Label. When you open the WPF Visualizer, you see the following information in the left-hand panel of the Visualizer.

clip_image002

You need to identify the XAML markup for the Label control that caused the issue. Which markup segment corresponds to the Label control?

 

A.    clip_image004

B.    clip_image006

C.    clip_image008

D.    clip_image010

 

Correct Answer: C

 

 

QUESTION 116

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 dgStudentson the design surface of the MainWindow.xaml file. You create a Studentclass with two properties: FirstName and LastName. You create the following code segment in the constructor of the main window.

clip_image012

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?

 

A.            IEnumerable<Student> sortedStudents = Students.OrderBy(s =>

s.LastName).ToList();

dgStudents.ItemsSource = sortedStudents;

 

B.            Students.Sort();

dgStudents.ItemsSource = Students;

 

C.            Students.Reverse();

dgStudents.ItemsSource = Students;

 

D.            IEnumerable<student> sortedStudents = Students.OrderBy(s => s.LastName);

dgStudents.ItemsSource = sortedStudents;

 

Correct Answer: A

 

 

QUESTION 117

You are developing a Windows Presentation Foundation (WPF) application. A TextBlock control has DataContext bound to a static resource named Book. The ToolTipattribute of TextBlock displays the full book titles. You create a converter named TrimTitleConverterto shorten the book titles to three words in the Text attribute of the TextBox. You add the converter to the Resources section of the MainWindow.xaml file as follows. (Line numbers are included for reference only.)

clip_image014

You need to ensure that the shortened book titles appear only in the Text attribute of TextBlock. Which markup segment should you use to replace lines 06 through 09?

 

A.    clip_image016

B.    clip_image018

C.    clip_image020

D.    clip_image022

 

Correct Answer: D

 

 

QUESTION 118

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.)

clip_image024

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?

 

A.    <ListBox ItemTemplate=”{StaticResource WeekendSelector}” />

B.    <ListBox ItemTemplateSelector=”{StaticResource WeekendSelector}” />

C.    <ListBox ItemTemplate=”{Binding WeekendSelector}” />

D.    <ListBox ItemTemplateSelector=”{Binding WeekendSelector}” />

 

Correct Answer: B

 

 

QUESTION 119

You are developing a Windows Presentation Foundation (WPF) application to display service cases by category in a ListBox. You create a class named Case with the properties Descriptionand Category, as follows.

clip_image026

You bind to the IstServicecontrol a static resource named ServiceCases. You need to ensure that the service cases are grouped by category. What should you do in the MainWindow.xaml file?

 

A.    Add the following markup segment to ListBox.Binding.

clip_image028

B.    Add the following markup segment to DockPanel.Binding.

clip_image030

C.    Add the following markup segment to CollectionViewSource.

clip_image032

D.    Add the following markup segment to CollectionViewSource.

clip_image034

 

Correct Answer: D

 

 

QUESTION 120

You are developing a Windows Presentation Foundation (WPF) application. The application contains a converter named DateOutputConverterthat formats dates. The window is defined as follows. (Line numbers are included for reference only.)

clip_image036

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

 

A.    Insert the following code at line 07.

<m:DateOutputConverter x:Key=”DateOutputConverter”/>

 

B.    Insert the following code at line 10.

<TextBox text=”‘Binding OrderDate, Converter={StaticRescurce

internationalDateConverter)}”DataContext=”{StaticResource

ResourceKey=shippedOrder}”/>

 

C.    Insert the following code at line 07.

<m:DateOutputConverter x:Key=”internationalDateConverter”/>

 

D.    Insert the following code at line 10.

<TextBox text=”{Binding OrderDate}”/>

 

Correct Answer: BC

 

Download Latest MCTS 70-511 Real Free Tests , help you to pass exam 100%.

Comments are closed.