PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

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 fragment should you insert at line 04?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You create a class named Person that has a FirstName property and a LastName property.
You create a resource that contains a collection of Person objects and assign the family key to it.
You add a ListBox control by using the following code fragment. (Line numbers are included for reference only.)
01<ListBox ItemsSource=”{StaticResource family}”>
02<ListBox.ItemTemplate>
03<DataTemplate>
04
05</DataTemplate>
06</ListBox.ItemTemplate>
07</ListBox>
You need to ensure that each item in the ListBox control meets the following requirements:
* Contains a TextBox that is data-bound to the FirstName property.
* Contains a TextBox that is data-bound to the LastName property.
Which code fragment should you insert at line 04?

What should you do?

You are creating a Windows Communication Foundation (WCF) service that is implemented as follows.
(Line numbers are included for reference only.)

01 [ServiceContract]
02 [ServiceBehavior(IncludeExceptionDetailsInFaults = true)]
03 public class OrderService
04 {
05 [OperationContract]
06 public void SubmitOrder(Order anOrder)
07 {
08 try
09 {
10 …
11 }
12 catch(DivideByZeroException ex)
13 {
14 …
15 }
16 }
17 }

You need to ensure that the stack trace details of the exception are not included in the error information sent to the client.
What should you do?

What should you do?

You have a Visual Studio Team Foundation Server 2010 environment. The Get Latest operation for a branch is running slowly. The branch includes a large documentation folder that the documentation team updates frequently. The documentation folder is not necessary for your current work.
You need to increase the performance of the Get Latest operation.
What should you do?

Which code fragment should you use?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You declare a class named PictureContainer that has a property named Photo.
The Photo property is of the byte[] type and contains an image in the JPEG format.
You assign a collection of the PictureContainer elements to the current DataContext.
You need to create a ListBox control that displays the images.
Which code fragment should you use?

What should you do next?

You perform a default installation of Visual Studio Team Foundation Server Proxy for use by a remote development team.
You need to configure Visual Studio Team Explorer 2010 to connect to Visual Studio Team Foundation Server 2010 through the proxy server.
In the Source Control node of the Team Explorer Options dialog box, you select the Use proxy server for file downloads check box.
What should you do next?

Which code fragment should you use?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
The application contains an ObservableCollection object named Pictures that contains several Picture objects.
Each Picture object contains the Name and PictureFilePath properties.
You add a ListBox control to the application.
You need to ensure that the pictures are displayed in the ListBox control.
Which code fragment should you use?

What should you do?

Your company has a main office and a branch office. Multiple Visual Studio Team Foundation Server 2010 environments are deployed in the main office. A Team Foundation Server 2010 Proxy server is deployed in the branch office.
You need to configure the proxy server to cache version control files for all current and future team project collections from each environment.
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 three text boxes named txtAddress, txtCity, and txtState.
You need to ensure that the postal code is automatically set based on the information typed by users in the text boxes.
You also need to ensure that the complete address is displayed in a TextBlock control.
Which code fragment should you use?