[Download] 70-502(CSharp) Microsoft practice 17-32 (Mar 2016)

★ Pass on Your First TRY ★ 100% Money Back Guarantee ★ Realistic Practice Exam Questions

Free Instant Download NEW 70-502(CSharp) Exam Dumps (PDF & VCE):
Available on: https://www.certleader.com/70-502(CSharp)-dumps.html


70-502(CSharp) Product Description:
Exam Number/Code: 70-502(CSharp) vce
Exam name: TS: MS.NET Frmewrk3.5, Wndws Presentation Fndation App Dev
n questions with full explanations
Certification: Microsoft Certification
Last updated on Global synchronizing

Instant Access to Free VCE Files: Microsoft 70-502(CSharp) TS: MS.NET Frmewrk3.5, Wndws Presentation Fndation App Dev

70-502(CSharp) examcollection

Certified of 70-502(CSharp) vce materials and samples for Microsoft certification for customers, Real Success Guaranteed with Updated 70-502(CSharp) pdf dumps vce Materials. 100% PASS Today!

2016 Mar 70-502(CSharp) Study Guide Questions:

Q17. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5. 

You add textbox controls to the user interface of the application. 

You need to set the format for each textbox control in the following manner: 

 The font is Segoe UI. 

 The font size is 16. 

Which XAML code fragment should you use? 

A.

      <scm:SortDescription PropertyValue="CityName"/> 

    </CollectionViewSource.SortDescriptions> 

    <CollectionViewSource.GroupDescriptions> 

      <dat:PropertyGroupDescription PropertyValue="State"/> 

    </CollectionViewSource.GroupDescriptions>

  </CollectionViewSource>

</Window.Resources> 

B.

      <scm:SortDescription PropertyName="State"/> 

    </CollectionViewSource.SortDescriptions> 

    <CollectionViewSource.GroupDescriptions> 

      <dat:PropertyGroupDescription PropertyName="CityName"/> 

    </CollectionViewSource.GroupDescriptions> 

  </CollectionViewSource>

</Window.Resources> 

C.

      <scm:SortDescription PropertyName="CityName"/> 

    </CollectionViewSource.SortDescriptions> 

    <CollectionViewSource.GroupDescriptions> 

      <dat:PropertyGroupDescription PropertyName="State"/> 

    </CollectionViewSource.GroupDescriptions> 

  </CollectionViewSource>

</Window.Resources> 

D.

      <scm:SortDescription PropertyValue="State"/> 

    </CollectionViewSource.SortDescriptions> 

    <CollectionViewSource.GroupDescriptions> 

      <dat:PropertyGroupDescription PropertyValue="CityName"/> 

    </CollectionViewSource.GroupDescriptions>

  </CollectionViewSource>

</Window.Resources> 

Answer: C


Q26. Your team is creating a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 3.5.

You plan to deploy the application by using the ClickOnce technology. You need to ensure that the application can be used even when network access is unavailable. 

Which command should you use? 

A. The mage CUpdate App1.deploy CInstall true command 

B. The mage CUpdate App1.deploy CAppCodeBase C:\App1 command 

C. The mage CUpdate App1.deploy CProviderUrl C:\App1.deploy command 

D. The mage CUpdate App1.deploy CAppManifest C:\App1\application.manifest command 

Answer: A


70-502(CSharp) simulations

High value 70-502(CSharp) free practice exam:

Q27. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.

You use a template for button controls. The template is defined as a resource on the page that contains the button controls. The template has a key named tpCancel. You plan to add a button named Cancel to the user interface of the application. You need to ensure that the Cancel button uses the template. 

Which code segment should you use? 

A. <Button Template="tpCancel">Cancel</Button> 

B. <Button Template="{StaticResource tpCancel}">Cancel</Button> 

C. <Button>

  <Button.Template>

    <ControlTemplate x:Name="tpCancel" />

  </Button.Template>

  Cancel

</Button> 

D. <Button>

  <Button.Template>

    <ControlTemplate Resources="tpCancel" />

  </Button.Template>

  Cancel

</Button> 

Answer: B


Q28. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5. 

You write the following XAML code fragment. 

<Rectangle Name="SplineTest"> 

  <Rectangle.RenderTransform> 

    <TranslateTransform x:Name="SplineTestTrans" X="0" Y="0" /> 

  </Rectangle.RenderTransform> 

  <Rectangle.Triggers> 

    <EventTrigger RoutedEvent="Rectangle.MouseLeftButtonDown"> 

      <EventTrigger.Actions> 

        <BeginStoryboard> 

          <Storyboard>

            ... 

          </Storyboard> 

        </BeginStoryboard> 

      </EventTrigger.Actions> 

    </EventTrigger> 

  </Rectangle.Triggers> 

</Rectangle> 

You need to ensure that the Rectangle object shifts diagonally downwards when a user clicks it. 

Which XAML code fragment should you use? 

A. <DoubleAnimation Storyboard.TargetProperty="RenderTransform. (TranslateTransform.X)" From="0" To="200"/> 

B. <DoubleAnimation Storyboard.TargetName= "SplineTestTrans" Storyboard.TargetProperty="RenderTransform.Angle" From="0" To="360" Duration="0:0:1"/> 

C. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Trans" Storyboard.TargetProperty="Y" Duration="0:0:15"> 

  <LinearDoubleKeyFrame Value="350" KeyTime="0:0:7"/> 

  <LinearDoubleKeyFrame Value="50" KeyTime="0:0:5"/> 

  <LinearDoubleKeyFrame Value="200" KeyTime="0:0:3"/>

</DoubleAnimationUsingKeyFrames> 

D. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="SplineTestTrans" Storyboard.TargetProperty="X" Duration="0:0:15"> 

  <SplineDoubleKeyFrame Value="350" KeyTime="0:0:7" KeySpline="0.0,1.0, 1.0,0.0"/>

</DoubleAnimationUsingKeyFrames>

<DoubleAnimationUsingKeyFrames Storyboard.TargetName="SplineTestTrans"Storyboard.TargetProperty="Y" Duration="0:0:15"> 

  <SplineDoubleKeyFrame Value="350" KeyTime="0:0:7" KeySpline="0.0,1.0, 1.0,0.0"/>

</DoubleAnimationUsingKeyFrames> 

Answer: D


Q29. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5. 

You add a Slider control and two buttons to a window of the application. You write the following code fragment.

(Line numbers are included for reference only.) 

01 <StackPanel Orientation="Horizontal"> 

02   <RepeatButton 

03 

04     Content="Left"/> 

05   <Slider Name="slider"/> 

06   <RepeatButton 

07 

08     Content="Right"/> 

09 </StackPanel> 

You need to control the position of the slider thumb by clicking the buttons on the window. 

What should you do? 

A. Insert the following code fragment at line 03. 

Command="Slider.DecreaseSmall" CommandTarget="slider" 

Insert the following code fragment at line 07. 

Command="Slider.IncreaseSmall" CommandTarget="slider" 

B. Insert the following code fragment at line 03. 

Command="DecreaseSmall" CommandTarget="{Binding ElementName=slider}" 

Insert the following code fragment at line 07. 

Command="IncreaseSmall" CommandTarget="{Binding ElementName=slider}" 

C. Insert the following code fragment at line 03. 

Command="Slider.DecreaseSmall" CommandTarget="{Binding ElementName=slider}" 

Insert the following code fragment at line 07. 

Command="Slider.IncreaseSmall" CommandTarget="{Binding ElementName=slider}" 

D. Insert the following code fragment at line 03. 

Command="DecreaseSmall" CommandTarget="slider" 

Insert the following code fragment at line 07. 

Command="IncreaseSmall" CommandTarget="slider" 

Answer: C


Q30. You are creating Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.

The application has a TreeView class that builds the directory tree for a given directory. You write the following class that represents a directory. 

class Folder  

{

  public readonly string Name

  {

    get { ... ;} 

  }    

  public readonly List<Folder> Subfolders  

  {

    get { ... ;} 

  }

}

You write the following code segment. 

(Line numbers are included for reference only.) 

01 TreeView  tree = new TreeView() ;

02 Folder folder = new Folder("C:\\");

03 

04 FrameworkElementFactory labelFactory = new  FrameworkElementFactory(typeof(TextBlock)) ;

05 

06 template.VisualTree = labelFactory ;

07 tree.ItemTemplate = template;

08 tree.ItemsSource = folder.Subfolders; 

You need to ensure that the TreeView class displays nodes that correspond to the child folders of the C:\ drive. 

Which code segments should you insert at lines 03 and 05? 

A. 1. Insert the following code segment at line 03. 

HierarchicalDataTemplate template = new HierarchicalDataTemplate(folder);

template.ItemsSource = new Binding("Subfolders") ;

2. Insert the following code segment at line 05.

labelFactory.SetBinding(TextBlock.TextProperty, new Binding("Name")) ;

B. 1. Insert the following code segment at line 03. 

HierarchicalDataTemplate template = new HierarchicalDataTemplate(typeof(Folder));

template.ItemsSource = new Binding("Subfolders");

2. Insert the following code segment at line 05. 

labelFactory.SetBinding(TextBlock.TextProperty, new Binding("Name")) 

C. 1. Insert the following code segment at line 03. 

HierarchicalDataTemplate  template = new HierarchicalDataTemplate("Folder");

template.ItemsSource = new Binding("Name");

2. Insert the following code segment at line 05. 

labelFactory.SetBinding(TextBlock.TextProperty, new Binding("Subfolders")) 

D. 1. Insert the following code segment at line 03. 

HierarchicalDataTemplate template = new HierarchicalDataTemplate("Folder");

template.ItemsSource = new Binding("Folder.Subfolders");

2. Insert the following code segment at line 05.

labelFactory.SetBinding(TextBlock.TextProperty, new Binding("Folder.Name")) 

Answer: B


Q31. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5. You create a window for the application. You need to ensure that the following requirements are met: 

 An array of strings is displayed by using a ListBox control in a two-column format. 

 The data in the ListBox control flows from left to right and from top to bottom. 

Which ListBox control would you use?

A. <ListBox Name="myList"> 

  <ListBox.ItemsPanel> 

    <ItemsPanelTemplate> 

      <UniformGrid Columns="2"/> 

    </ItemsPanelTemplate> 

  </ListBox.ItemsPanel>

</ListBox> 

Use the following C# code to associate the array of strings to the ListBox control. 

myList.ItemsSource = arrayOfString 

B. <ListBox Name="myList"> 

  <ListBox.ItemsPanel> 

    <ItemsPanelTemplate> 

      <StackPanel /> 

    </ItemsPanelTemplate> 

  </ListBox.ItemsPanel>

</ListBox>

Use the following C# code to associate the array of strings to the ListBox control. 

myList.ItemsSource = arrayOfString 

C. <ListBox Name="myList"> 

  <ListBox.ItemsPanel>

    <ItemsPanelTemplate>

      <WrapPanel /> 

    </ItemsPanelTemplate> 

  </ListBox.ItemsPanel>

</ListBox>

Use the following C# code to associate the array of strings to the ListBox control. 

myListView.ItemsSource = arrayOfString 

D. <ListBox Name="myList"> 

  <ListBox.ItemsPanel> 

    <ItemsPanelTemplate> 

      <Grid> 

        <Grid.ColumnDefinitions> 

          <ColumnDefinition /> 

          <ColumnDefinition /> 

        </Grid.ColumnDefinitions>

       </Grid> 

    </ItemsPanelTemplate> 

  </ListBox.ItemsPanel>

</ListBox>

Use the following C# code to associate the array of strings to the ListBox control. 

myList.ItemsSource = arrayOfString 

Answer: A


Q32. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5. 

You write the following XAML code fragment. 

(Line numbers are included for reference only.) 

01 <DockPanel> 

02   <DockPanel.Resources> 

03     <Style TargetType="Button"> 

04       <Style.Triggers> 

05 

06       </Style.Triggers> 

07     </Style> 

08   </DockPanel.Resources> 

09   <Button Content="Cut"> 

10     <Button.Triggers> 

11 

12     </Button.Triggers> 

13   </Button> 

14 </DockPanel> 

You need to ensure that the following requirements are met: 

 When the mouse is over the button, the foreground of the button turns yellow. 

 When the button is pressed, the foreground of the button turns green. 

What should you do? 

A. Insert the following XAML code fragment at line 11. 

<Trigger Property="Button.IsMouseOver" Value="True"> 

  <Setter Property="Button.Foreground" Value="Yellow"/>

</Trigger>

<Trigger Property="Button.IsPressed" Value="True"> 

  <Setter Property="Button.Foreground" Value="Green"/>

</Trigger> 

B. Insert the following XAML code fragment at line 11. 

<Trigger Property="Button.IsPressed" Value="True"> 

  <Setter Property="Button.Foreground" Value="Green"/>

</Trigger>

<Trigger Property="Button.IsMouseOver" Value="True"> 

  <Setter Property="Button.Foreground" Value="Yellow"/>

</Trigger> 

C. Insert the following XAML code fragment at line 05. 

<Trigger Property="IsMouseOver" Value="True"> 

  <Setter Property="Foreground" Value="Yellow"/>

</Trigger>

<Trigger Property="IsPressed" Value="True"> 

  <Setter Property="Foreground" Value="Green"/>

</Trigger> 

D. Insert the following XAML code fragment at line 05. 

<Trigger Property="IsPressed" Value="True"> 

  <Setter Property="Foreground" Value="Green"/>

</Trigger>

<Trigger Property="IsMouseOver" Value="True"> 

  <Setter Property="Foreground" Value="Yellow"/>

</Trigger> 

Answer: C