PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You have a Visual Studio Team Foundation Server 2010 environment. You have a team project with a branch structure that includes Main, Development, and Release branches, as shown in the following graphic.
You need to identify all merge operations that have occurred between only the Main and Development branches.
What should you do?

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.
The application contains a ListBox control named lbxItems that is data-bound to a collection of objects. Each object has a DisplayValue property.
You add a Button control to the application.
You need to ensure that the Content property of the Button control is data-bound to the DisplayValue property of the selected item of lbxItems.
Which binding expression should you use?

What should you do?

You have a Visual Studio Team Foundation Server 2010 environment. You have a team project that consists of a single application. The team project has the version control branching structure shown in the following graphic.

You release hotfixes to the current version of the application from the Release branch. You release new versions of the application from the Main branch. Your team is currently working in the Development branch. You develop a hotfix to the application in the Release branch.
You need to ensure that the hotfix changeset is in every future release of the application.
What should you do?

Which two actions should you perform?

You use Microsoft .NET Framework 4 to create a Windows application.
You plan to deploy the application by using Trusted Application Deployment.
The application can only be installed by users who have elevated permissions.
You need to ensure that users are not prompted for additional permissions when they install the application.
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. Your branching plan includes Main, Development, ServicePack, Hotfix, and Release branches, as shown in the exhibit. (Click the Exhibit button.)

Your team fixes a bug and checks in a code change to the Hotfix branch. You need to merge the code change into the Main and Development branches without performing a baseless merge.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

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?

What should you do?

You have a Visual Studio Team Foundation Server 2010 environment with a team project collection that has only one build definition. The build definition uses the default build process template (DefaultTemplate.xaml). The build definition trigger is set to Manual.
You have the following requirements:
Verify that a build will run successfully on a build server with the pending changes.
Do not commit the pending changes.
You need to perform a build that meets the requirements.
What should you do?

Which two actions should you perform?

You have a Visual Studio Team Foundation Server 2010 environment. All contractors in your organization are members of a Team Foundation Server security group named Contractors that has been granted only the Read version control permissions. Lead developers have been granted all version control permissions. You need to implement a workflow that requires lead developers to review the source code changes made by contractors before they are committed to version control. Which two actions should you perform? (Each correct answer presents part of the solution.
Choose two.)

What should you do?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You create a Button control for the application.
You need to ensure that the application meets the following requirements:
* When the mouse pointer is over the Button control, the background color of the button is set to red and the Button control appears bigger.
* When the mouse pointer is not over the Button control, the button returns to its original state.
What should you do?