PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You manage a Visual Studio Team System 2008 Team Foundation Server environment that supports a Windows SharePoint Services (WSS) 2.0 SharePoint portal. You need to upgrade the current environment to Visual Studio Team Foundation Server 2010 on the existing hardware and support the existing SharePoint portal integration with no additional administrative steps.
What should you do?

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?

Which configuration wizard options should you use on Server2 and Server3?

You are upgrading a Visual Studio Team System 2008 Team Foundation Server environment to Visual Studio Team Foundation Server 2010.
The Team Foundation Server 2010 environment will consist of three new servers with the following configuration:
Server1 hosts the data tier
Server2 and Server3 host application tiers
You complete the prerequisite installations, restore the SQL Server databases onto Server1, and deploy Network Load Balancing. You need to install the Team Foundation Server components.
Which configuration wizard options should you use on Server2 and Server3?

Which code segment should you write in the constructor of the MainWindow class?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The
application has a window named MainWindow that has a StackPanel control named sp as the root element.
You want to create a Button control that contains a TextBlock control with the “Save” Text property.
You need to create the control dynamically and add the control to sp.
Which code segment should you write in the constructor of the MainWindow class?

What should you do?

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?

What should you do?

You manage a dual-tier Visual Studio Team Foundation Server 2010 environment using servers that run Windows Server 2008 R2. Your company has an Active Directory Domain Services (AD DS) domain. All servers and client computers are joined to the domain. You run Windows SharePoint Services 3.0 on the application tier server for the team project portal sites.
You need to ensure that Team Foundation Server uses the Kerberos authentication protocol.
What should you do?

Which of the following statments are TRUE ?

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:

AddHandler(TextBox.TextChangedEvent, new RoutedEventHandler(Audit_TextChanged), true);

Which of the following statments are TRUE ? (choose all that apply)

What should you do?

You have a single-tier Visual Studio Team Foundation Server 2010 environment. You create the DNS CNAME record that maps tfs.contoso.com as an alias for the application tier server name.
You receive alert e-mails for a Work Item Changed event. The alerts include Visual Studio 2010 Team Web Access links that use the server name instead of the alias. You need to ensure that Team Web Access links in alert e-mails use the alias instead of the server name.
What should you do?

Which code segment should you use?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You write the following code fragment.
<StackPanel TextBox.PreviewTextInput=”StackPanel_PreviewTextInput”>
<TextBox Name=”TxtBoxA”/>
<TextBox Name=”TxtBoxB”/>
<TextBox Name=”TxtBoxC”/>
</StackPanel>
You create an event handler named StackPanel_PreviewTextInput. You also have a collection of strings named Keywords.
You need to ensure that TxtBoxA and TxtBoxB do not contain any of the strings in the Keywords collections.
Which code segment should you use?