PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You have a Visual Studio Team Foundation Server 2010 environment. Your build lab includes multiple build servers.
You configure the build servers, build controllers, and build agents for a team project collection. You customize the build process workflow file to include custom activities that you have compiled into an assembly.
You need to ensure that the assembly is loaded by the build service process on the build servers.
What should you do?

Which two actions should you perform?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You write the following code segment. (Line numbers are included for reference only.)
01public class Contact
02{
03private string _contactName;
04
05public string ContactName {
06get { return _contactName; }
07set { _contactName = value; }
08}
09
10}
You add the following code fragment within a WPF window control.
<TextBox>
<TextBox.Text>
<Binding Path=”ContactName” UpdateSourceTrigger=”PropertyChanged”>
<Binding.ValidationRules>
<DataErrorValidationRule />
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
The TextBox control is data-bound to an instance of the Contact class.
You need to ensure that the Contact class contains a business rule to ensure that the ContactName property is not empty or NULL.
You also need to ensure that the TextBox control validates the input data.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two).

What are two possible ways to achieve this goal?

You have a Visual Studio Team Foundation Server 2010 environment that has a build controller with ten associated build agents for a team project collection. You use the default build process template (DefaultTemplate.xaml) for all build definitions. When running multiple builds, you intermittently receive a build error on the AgentScope workflow activity indicating that an agent was not available in the allotted amount of time. These error messages occur during peak periods of heavy usage of the build lab. You need to troubleshoot the unavailability of the build agents during the peak periods. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

Which two actions should you perform?

You use Microsoft .NET Framework 4 to create a Windows Forms application.
You add a new class named Customer to the application.
You select the Customer class to create a new object data source.
You add the following components to a Windows Form:
* A BindingSource component named customerBindingSource that is data-bound to the Customer object data source.
* A set of TextBox controls to display and edit the Customer object properties.
* Each TextBox control is data-bound to a property of the customerBindingSource component.
* An ErrorProvider component named errorProvider that validates the input values for each TextBox control.
You need to ensure that the input data for each TextBox control is automatically validated by using the ErrorProvider component.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Which two actions should you perform?

You have a Visual Studio Team Foundation Server 2010 environment that is configured to support Visual Studio Lab Management 2010.
You intend to perform automated testing by using Microsoft Test Manager 2010. You need to install and configure a test controller and a test agent that will run Coded UI tests. Which two actions should you perform? (Each correct answer presents part of the solution.
Choose two.)

Which binding expression should you use?

You use Microsoft Visual Studio 2010 and Microsoft .
NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You create a WPF window in the application.
You add the following code segment to the application.
public class ViewModel
{
public CollectionView Data { get; set; }
}
public class BusinessObject
{
public string Name { get; set; }
}
The DataContext property of the window is set to an instance of the ViewModel class.
The Data property of the ViewModel instance is initialized with a collection of BusinessObject objects.
You add a TextBox control to the Window.
You need to bind the Text property of the TextBox control to the Name property of the current item of the CollectionView of the DataContext object.
You also need to ensure that when a binding error occurs, the Text property of the TextBox control is set to N/A .
Which binding expression should you use?

Which code segment should you add to the code-behind file?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You write the following code fragment.
<StackPanel>
<StackPanel.Resources>
<Style TargetType=”{x:Type Button}”>
<EventSetter Event=”Click” Handler=”ButtonHandler”/>
</Style>
</StackPanel.Resources>
<Button Name=”OkButton”>Ok</Button>
<Button Name=”CancelButton” Click=”CancelClicked”>Cancel</Button>
</StackPanel>
You need to ensure that the ButtonHandler method is not executed when the user clicks the CancelButton button.
Which code segment should you add to the code-behind file?

What should you do?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You want to add an audio player that plays .wav or .mp3 files when the user clicks a button.
You plan to store the name of the file to a variable named SoundFilePath.
You need to ensure that when a user clicks the button, the file provided by SoundFilePath plays.
What should you do?