2014年2月28日星期五

Dernières Microsoft 070-506-VB de la pratique de l'examen questions et réponses téléchargement gratuit

Aujoud'hui, dans cette indutrie IT de plus en plus concurrentiel, le Certificat de Microsoft 070-506-VB peut bien prouver que vous avez une bonne concurrence et une space professionnelle plus grande à atteindre. Dans le site Pass4Test, vous pouvez trouver un outil de se former très pratique. Nos IT experts vous offrent les Q&As précises et détaillées pour faciliter votre cours de préparer le test Microsoft 070-506-VB qui vous amenera le succès du test Microsoft 070-506-VB, au lieu de traivailler avec peine et sans résultat.

Il y a nombreux façons à vous aider à réussir le test Microsoft 070-506-VB. Le bon choix est l'assurance du succès. Pass4Test peut vous offrir le bon outil de formation, lequel est une documentation de qualité. La Q&A de test Microsoft 070-506-VB est recherchée par les experts selon le résumé du test réel. Donc l'outil de formation est de qualité et aussi autorisé, votre succès du test Microsoft 070-506-VB peut bien assuré. Nous allons mettre le jour successivement juste pour répondre les demandes de tous candidats.

Est-que vous s'inquiétez encore à passer le test Certification 070-506-VB qui demande beaucoup d'efforts? Est-que vous travaillez nuit et jour juste pour préparer le test de Microsoft 070-506-VB? Si vous voulez réussir le test Microsoft 070-506-VB plus facilement? N'hésitez plus à nous choisir. Pass4Test vous aidera à réaliser votre rêve.

Avec l'aide du Pass4Test, vous allez passer le test de Certification Microsoft 070-506-VB plus facilement. Tout d'abord, vous pouvez choisir un outil de traîner de Microsoft 070-506-VB, et télécharger les Q&A. Bien que il y en a beaucoup de Q&A pour les tests de Certification IT, les nôtres peuvent vous donner non seulement plus de chances à s'exercer avant le test réel, mais encore vous feront plus confiant à réussir le test. La haute précision des réponses, la grande couverture des documentations, la mise à jour constamment vous assurent à réussir votre test. Vous dépensez moins de temps à préparer le test, mais vous allez obtenir votre certificat plus tôt.

Peut-être vous voyez les guides d'études similaires pour le test Microsoft 070-506-VB, mais nous avons la confiance que vous allez nous choisir finalement grâce à notre gravité d'état dans cette industrie et notre profession. Pass4Test se contribue à amérioler votre carrière. Vous saurez que vous êtes bien préparé à passer le test Microsoft 070-506-VB lorsque vous choisissez la Q&A de Pass4Test. De plus, un an de service gratuit en ligne après vendre est aussi disponible pour vous.

Code d'Examen: 070-506-VB
Nom d'Examen: Microsoft (TS: Microsoft Silverlight 4, Development)
Questions et réponses: 75 Q&As

Le Certificat Microsoft 070-506-VB est un passport rêvé par beaucoup de professionnels IT. Le test Microsoft 070-506-VB est une bonne examination pour les connaissances et techniques professionnelles. Il demande beaucoup de travaux et efforts pour passer le test Microsoft 070-506-VB. Pass4Test est le site qui peut vous aider à économiser le temps et l'effort pour réussir le test Microsoft 070-506-VB avec plus de possibilités. Si vous êtes intéressé par Pass4Test, vous pouvez télécharger la partie gratuite de Q&A Microsoft 070-506-VB pour prendre un essai.

Le produit de Pass4Test que vous choisissez vous met le pied sur la première marche du pic de l'Industrie IT, et vous serez plus proche de votre rêve. Les matériaux offerts par Pass4Test peut non seulement vous aider à réussir le test Microsoft 070-506-VB, mais encore vous aider à se renforcer les connaissances professionnelles. Le service de la mise à jour pendant un an est aussi gratuit pour vous.

070-506-VB Démo gratuit à télécharger: http://www.pass4test.fr/070-506-VB.html

NO.1 Private Sub worker_ProgressChanged(sender As Object, e As ProgressChangedEventArgs)

NO.2 End Sub
You attempt to run the application. You receive the following error message:
"Invalid cross-thread access."
You need to ensure that worker executes successfully.
What should you do?
A. Replace line 09 with the following code segment.
Dim b = CType(checkBox.GetValue(CheckBox.IsCheckedProperty), System.Nullable(Of Boolean))
Dim isChecked As Boolean = b.HasValue AndAlso b.Value
B. Replace line 09 with the following code segment.
Dim isChecked As Boolean = False
Dispatcher.BeginInvoke(Function()
isChecked = checkBox.IsChecked.HasValue AndAlso checkBox.IsChecked.Value
End Function)
C. Replace line 15 with the following code segment.
statusTextBlock.SetValue(TextBlock.TextProperty, (e.ProgressPercentage + "%"))
D. Replace line 15 with the following code segment.
Dispatcher.BeginInvoke(Function()
statusTextBlock.Text = e.ProgressPercentage + "%"
End Function)
Answer: B

Microsoft examen   070-506-VB examen   070-506-VB   070-506-VB examen
13. You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
You add the following code segment. (Line numbers are included for reference only.)
01 Public Class MyControl Inherits Control
02
03 Public Property Title() As String
04 Get
05 Return DirectCast(GetValue(TitleProperty), String)
06 End Get
07 Set
08 SetValue(TitleProperty, value)
09 End Set
10 End Property
11 End Class
You need to create a dependency property named TitleProperty that allows developers to set the Title.
You also need to ensure that the default value of the TitleProperty dependency property is set to Untitled.
Which code segment you add at line 02?
A. Public Shared ReadOnly TitleProperty As DependencyProperty =
DependencyProperty.Register("Untitled", GetType(System.String),
GetType(MyControl), Nothing)
B. Public Shared ReadOnly TitleProperty As DependencyProperty =
DependencyProperty.Register("Untitled", GetType(System.String),
GetType(MyControl), New PropertyMetadata("Title"))
C. Public Shared ReadOnly TitleProperty As DependencyProperty =
DependencyProperty.Register("Title", GetType(System.String),
GetType(MyControl), New PropertyMetadata("Untitled"))
D. Public Shared ReadOnly TitleProperty As DependencyProperty =
DependencyProperty.Register("Title", GetType(String),
GetType(MyControl), New PropertyMetadata(New PropertyChangedCallback(Sub(depObj, args)
depObj.SetValue(MyControl.TitleProperty, "Untitled")
End Sub)))
Answer: C

Microsoft examen   certification 070-506-VB   certification 070-506-VB   070-506-VB examen   070-506-VB
14. You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
You create a control named MyControl in the application. Each instance of the control contains a list of
FrameworkElement objects.
You add the following code segment. (Line numbers are included for reference only.)
01 Public Class MyControl
02 Inherits Control
03
04 Public ReadOnly Property ChildElements As List(Of FrameworkElement)
05 Get
06 Return DirectCast(GetValue(MyControl.ChildElementsProperty), List(Of FrameworkElement))
07 End Get
08 End Property
09 Public Sub New()
10
11 End Sub
12
13 Shared Sub New()
14
15 End Sub
16 End Class
You need to create the ChildElementsProperty dependency property. You also need to initialize the
property by using an empty list of FrameworkElement objects.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose
two.)
A. Add the following code segment at line 03.
Public Shared ReadOnly ChildElementsProperty As DependencyProperty =
DependencyProperty.Register("ChildElements", GetType(List(Of
FrameworkElement)), GetType(MyControl), New PropertyMetadata(New
List(Of FrameworkElement)()))
B. Add the following code segment at line 03.
Public Shared ReadOnly ChildElementsProperty As DependencyProperty =
DependencyProperty.Register("ChildElements", GetType(List(Of
FrameworkElement)), GetType(MyControl), New
PropertyMetadata(Nothing))
C. Add the following code segment at line 10.
SetValue(MyControl.ChildElementsProperty, New List(Of
FrameworkElement)())
D. Add the following code segment at line 14.
ChildElementsProperty = DependencyProperty.Register("ChildElements",
GetType(List(Of FrameworkElement)), GetType(MyControl), New
PropertyMetadata(New List(Of FrameworkElement)()))
Answer: BC

Microsoft   070-506-VB   certification 070-506-VB   070-506-VB examen   070-506-VB   070-506-VB examen
15. You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
You add the following code segment. (Line numbers are included for reference only.)
01 Dim outerCanvas = New Canvas()
02 Dim innerCanvas = New Canvas()
03 innerCanvas.Width = 200
04 innerCanvas.Height = 200
05 outerCanvas.Children.Add(innerCanvas)
06
You need to set the distance between the left of the innerCanvas element and the left of the outerCanvas
element to 150 pixels.
Which code segment should you add at line 06?
A. outerCanvas.Margin = New Thickness(0.0, 150.0, 0.0, 0.0)
B. innerCanvas.Margin = new Thickness(0.0, 150.0, 0.0, 0.0)
C. outerCanvas.SetValue(Canvas.LeftProperty, 150.0)
D. innerCanvas.SetValue(Canvas.LeftProperty, 150.0)
Answer: D

Microsoft   070-506-VB examen   certification 070-506-VB   certification 070-506-VB   070-506-VB

NO.3 You are developing a Silverlight 4 application.
You have a collection named ColPeople of the List<Person> type.
You define the Person class according to the following code segment.
Public Class Person
Public Property Name() As String
Public Property Description() As String
Public Property Gender() As String
Public Property Age() As Integer
Public Property Weight() as Integer
End Class
You need to bind ColPeople to a ComboBox so that only the Name property is displayed.
Which XAML fragment should you use?
A. <ComboBox DataContext="{Binding ColPeople}" ItemsSource="{Binding ColPeople}"
DisplayMemberPath="Name" />
B. <ComboBox DataContext="{Binding Person}" ItemsSource="{Binding Person}"
DisplayMemberPath="ColPeople" />
C. <ComboBox DataContext="{Binding ColPeople}" DisplayMemberPath="Name" />
D. <ComboBox DataContext="{Binding Person}" />
Answer: A

Microsoft   certification 070-506-VB   070-506-VB   070-506-VB   070-506-VB examen

NO.4 You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
The application contains the following XAML fragment.
<TextBlock x:Name="QuoteOfTheDay" />
The application calls a Windows Communication Foundation (WCF) service named MyService that
returns the quote of the day and assigns it to the QuoteOfTheDay TextBlock.
The application contains the following code segment. (Line numbers are included for reference only.)
01 Dim client = New MyService.MyServiceClient()
02 AddHandler client.GetQuoteOfTheDayCompleted, Sub(s, args) QuoteOfTheDay.Text = args.Result
03 client.GetQuoteOfTheDayAsync()
You need to handle errors that might occur as a result of the service call. You also need to provide a
default value of "Unavailable" when an error occurs.
Which code segment should you replace at lines 02 and 03?
A. QuoteOfTheDay.Text = "Unavailable"
AddHandler client.GetQuoteOfTheDayCompleted, Sub(s, args)
QuoteOfTheDay.Text = args.Result
End Sub
client.GetQuoteOfTheDayAsync()
B. AddHandler client.GetQuoteOfTheDayCompleted,Sub(s, args)
If args.Result IsNot Nothing Then
QuoteOfTheDay.Text = args.Result
Else
QuoteOfTheDay.Text = "Unavailable"
End If
End Sub
client.GetQuoteOfTheDayAsync()
C. AddHandler client.GetQuoteOfTheDayCompleted, Sub(s, args)
QuoteOfTheDay.Text = args.Result
End Sub
Try
client.GetQuoteOfTheDayAsync()
Catch ex As Exception
' TODO: handle exception
QuoteOfTheDay.Text = "Unavailable"
End Try
D. AddHandler client.GetQuoteOfTheDayCompleted, Sub(s, args)
If args.[Error] Is Nothing Then
QuoteOfTheDay.Text = args.Result
Else
' TODO: handle error
QuoteOfTheDay.Text = "Unavailable"
End If
End Sub
client.GetQuoteOfTheDayAsync()
Answer: D

Microsoft examen   certification 070-506-VB   070-506-VB examen   certification 070-506-VB

NO.5 You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
You add a BackgroundWorker object named worker to the application.
You add the following code segment. (Line numbers are included for reference only.)
01 Public Sub New()
02 InitializeComponent()
03 worker.WorkerSupportsCancellation = True
04 AddHandler worker.DoWork, New DoWorkEventHandler(AddressOf worker_DoWork)
05 AddHandler worker.RunWorkerCompleted, New RunWorkerCompletedEventHandler(AddressOf
worker_Completed)
06 End Sub
07 Private Sub worker_DoWork(sender As Object, e As DoWorkEventArgs)
08 For i As Integer = 0 To 99
09 InvokeLongRunningProcessStep()
10 Next
11 End Sub
You need to ensure that worker can be properly canceled.
Which code segment should you use to replace line 09?
A. Dim cancel = TryCast(sender, BackgroundWorker).CancellationPending
If cancel Then
TryCast(sender, BackgroundWorker).CancelAsync()
Else
InvokeLongRunningProcessStep()
End If
B. Dim cancel = TryCast(sender, BackgroundWorker).CancellationPending
If cancel Then
e.Cancel = True
Else
InvokeLongRunningProcessStep()
End If
C. Dim cancel = e.Cancel
If cancel Then
TryCast(sender, BackgroundWorker).CancelAsync()
Else
InvokeLongRunningProcessStep()
End If
D. Dim cancel = e.Cancel
If cancel Then
e.Cancel = True
Else
InvokeLongRunningProcessStep()
End If
Answer: B

Microsoft   070-506-VB   070-506-VB

NO.6 You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
You create a Windows Communication Foundation (WCF) Data Service. You add a service reference to
the WCF Data Service named NorthwindEntities in the Silverlight application. You also add a
CollectionViewSource object named ordersViewSource in the Silverlight application.
You add the following code segment. (Line numbers are included for reference only.)
01 Sub getOrders_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
02 Dim context As New NorthwindEntities()
03
04 Dim query = From order In context.Orders Select order
05
06 End Sub
You need to retrieve the Orders data from the WCF Data Service and bind the data to the
ordersViewSource object.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose
two.)
A. Add the following code segment at line 03.
Dim obsCollection = New ObservableCollection(Of Order)
B. Add the following code segment at line 03.
Dim dsOrders As New DataServiceCollection(Of Order)
AddHandler dsOrders.LoadCompleted, New EventHandler(Of LoadCompletedEventArgs)(Sub(dsc, args)
ordersViewSource.Source = dsOrders
End Sub)
C. Add the following code segment at line 05.
dsOrders.LoadAsync(query)
D. Add the following code segment at line 05.
dsOrders.Load(query)
E. Add the following code segment at line 05.
query.ToList().ForEach(Sub(o) obsCollection.Add(o))
ordersViewSource.Source = obsCollection
Answer: BC

Microsoft   070-506-VB   certification 070-506-VB   certification 070-506-VB   070-506-VB   070-506-VB

NO.7 You are developing a Silverlight 4 application.
The application defines the following three event handlers. (Line numbers are included for reference only.)
01 Private Sub HandleCheck(sender As Object, e As RoutedEventArgs)
02 MessageBox.Show("Checked")
03 End Sub
04
05 Private Sub HandleUnchecked(sender As Object, e As RoutedEventArgs)
06 MessageBox.Show("Unchecked")
07 End Sub
08
09 Private Sub HandleThirdState(sender As Object, e As RoutedEventArgs)
10 MessageBox.Show("Indeterminate")
11 End Sub
You need to allow a check box that can be selected, cleared, or set to Indeterminate. You also need to
ensure that the event handlers are invoked when the user changes the state of the control.
Which XAML fragment should you use?
A. <CheckBox x:Name="cb2" Content="Three State CheckBox"
IsChecked="True" Checked="HandleCheck"
Indeterminate="HandleUnchecked" Unchecked="HandleUnchecked" />
B. <CheckBox x:Name="cb2" Content="Three State CheckBox"
IsThreeState="True" Checked="HandleCheck"
Indeterminate="HandleThirdState" Unchecked="HandleUnchecked" />
C. <CheckBox x:Name="cb2" Content="Three State CheckBox"
IsHitTestVisible="True" Checked="HandleCheck"
Indeterminate="HandleThirdState" Unchecked="HandleUnchecked" />
D. <CheckBox x:Name="cb2" Content="Three State CheckBox"
IsEnabled="True" Checked="HandleCheck"
Indeterminate="HandleUnchecked" Unchecked="HandleUnchecked" />
Answer: B

Microsoft examen   070-506-VB   070-506-VB examen

NO.8 You are developing a Silverlight 4 application.
You define the visual behavior of a custom control in the ControlTemplate by defining a VisualState object
named Selected.
You need to change the visual state of the custom control to the Selected state.
Which code segment or XAML fragment should you use?
A. VisualStateManager.GoToState(Me, "Selected", True)
B. <VisualTransition To="Selected">
<Storyboard>
...
</Storyboard>
</VisualTransition>
C. <VisualTransition From="Selected">
<Storyboard>
...
</Storyboard>
</VisualTransition>
D. Public Shared ReadOnly SelectedProperty As DependencyProperty =
DependencyProperty.Register("Selected", GetType(VisualState), GetType(MyControl), Nothing)
Public Property Selected As VisualState
Get
Return GetValue(SelectedProperty)
End Get
Set(ByVal value As VisualState)
SetValue(SelectedProperty, value)
End Set
End Property
Answer: A

Microsoft examen   070-506-VB examen   070-506-VB

NO.9 End Sub

NO.10 You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4. The
application has a TextBox control named txtName.
You need to handle the event when txtName has the focus and the user presses the F2 key.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose
two.)
A. AddHandler txtName.KeyDown, New KeyEventHandler ( AddressOf txtName_KeyDown)
B. AddHandler txtName.LostFocus, New RoutedEventHandler(AddressOf txtName_LostFocus)
C. AddHandler txtName.TextChanged, New TextChangedEventHandler(AddressOf
txtName_TextChanged)
D. Private Sub txtName_TextChanged(sender As Object, e As TextChangedEventArgs)
'Custom logic
If DirectCast(e.OriginalSource, Key) = Key.F2 Then
End If
End Sub
E. Private Sub txtName_KeyDown(sender As Object, e As KeyEventArgs)
'Custom logic
If e.Key = Key.F2 Then
End If
End Sub
F. Private Sub txtName_LostFocus(sender As Object, e As RoutedEventArgs)
'Custom logic
If DirectCast(e.OriginalSource, Key) = Key.F2 Then
End If
End Sub
Answer: AE

Microsoft examen   070-506-VB   070-506-VB   070-506-VB

NO.11 You are developing a Silverlight 4 application.
You define an Invoice object according to the following code segment.
Public Class Invoice
Public Property InvoiceId() As Integer
Public Property Amount() As Double
Public Property Supplier() As Supplier
Public Property InvoiceDate() As DateTime
Public Property PayDate() As DateTime
Public Property InvoiceDescription() As String
End Class
You need to display a list of invoices that have the following properties displayed on each line: InvoiceId,
Amount, and InvoiceDate.
Which XAML fragment should you use?
A. <ListBox x:Name="InvoiceListBox">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Path=InvoiceId}" />
<TextBlock Text="{Binding Path=Amount}" />
<TextBlock Text="{Binding Path=InvoiceDate}" />
</StackPanel>
</ListBox>
B. <ListBox x:Name="InvoiceListBox">
<StackPanel Orientation="Horizontal">
<ListBoxItem>
<TextBlock Text="{Binding Path=InvoiceId}" />
</ListBoxItem>
<ListBoxItem>
<TextBlock Text="{Binding Path=Amount}" />
</ListBoxItem>
<ListBoxItem>
<TextBlock Text="{Binding Path=InvoiceDate}" />
</ListBoxItem>
</StackPanel>
</ListBox>
C. <ListBox x:Name="InvoiceListBox">
<ListBox.Items>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Path=InvoiceId}" />
<TextBlock Text="{Binding Path=Amount}" />
<TextBlock Text="{Binding Path=InvoiceDate}" />
</StackPanel>
</ItemsPanelTemplate>
</ListBox.Items>
</ListBox>
D. <ListBox x:Name="InvoiceListBox">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Path=InvoiceId}" />
<TextBlock Text="{Binding Path=Amount}" />
<TextBlock Text="{Binding Path=InvoiceDate}" />
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
Answer: D

certification Microsoft   certification 070-506-VB   070-506-VB   070-506-VB examen   070-506-VB examen

NO.12 statusTextBlock.Text = Convert.ToString(e.ProgressPercentage) & "%"

NO.13 You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
You add a BackgroundWorker object named worker to the application. You also add a CheckBox control
named checkBox and a TextBlock control named statusTextBlock.
You add the following code segment. (Line numbers are included for reference only.)
01 Public Sub New()
02 InitializeComponent()
03 worker.WorkerReportsProgress = True
04 AddHandler worker.DoWork, New DoWorkEventHandler(AddressOf worker_DoWork)
05 AddHandler worker.ProgressChanged, New ProgressChangedEventHandler(AddressOf
worker_ProgressChanged)
06 End Sub
07 Private Sub worker_DoWork(sender As Object, e As DoWorkEventArgs)
08 For i As Integer = 0 To 99
09 Dim isChecked As Boolean = checkBox.IsChecked.HasValue AndAlso
checkBox.IsChecked.Value
10 ExecuteLongRunningProcessStep(isChecked)
11 worker.ReportProgress(i)
12 Next

NO.14 You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
You create a new user control in the application. You add the following XAML fragment to the control.
<StackPanel KeyDown="App_KeyDown" Orientation="Vertical">
<TextBox x:Name="firstName" />
<TextBox x:Name="lastName" />
<TextBox x:Name="address" />
</StackPanel>
You add the following code segment in the code-behind file of the control. (Line numbers are included for
reference only.)
01 Private Sub App_KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs)
02
03 End Sub
04
05 Private Sub FirstAndLastNameKeyDown()
06 '...
07 End Sub
You need to ensure that the FirstAndLastNameKeyDown method is invoked when a key is pressed while
the focus is on the firstName or lastName TextBox controls. You also need to ensure that the default
behavior of the controls remains unchanged.
Which code segment should you add at line 02?
A. If ((CType(sender,FrameworkElement).Name = "firstName") _
OrElse (CType(sender,FrameworkElement).Name = "lastName")) Then
FirstAndLastNameKeyDown
End If
e.Handled = false
B. If ((CType(sender,FrameworkElement).Name = "firstName") _
OrElse (CType(sender,FrameworkElement).Name = "lastName")) Then
FirstAndLastNameKeyDown
End If
e.Handled = true
C. If ((CType(e.OriginalSource,FrameworkElement).Name = "firstName") _
OrElse (CType(e.OriginalSource,FrameworkElement).Name = "lastName")) Then
FirstAndLastNameKeyDown
End If
e.Handled = false
D. If ((CType(e.OriginalSource,FrameworkElement).Name = "firstName") _
OrElse (CType(e.OriginalSource,FrameworkElement).Name = "lastName")) Then
FirstAndLastNameKeyDown
End If
e.Handled = true
Answer: C

Microsoft   070-506-VB   070-506-VB

NO.15 You are developing a Silverlight 4 application.
The application defines the following XAML fragment. (Line numbers are included for reference only.)
01 <ComboBox>
02 <ComboBoxItem Content="Item 1" />
03 <ComboBoxItem Content="Item 2" />
04 <ComboBoxItem Content="Item 3" />
05 </ComboBox>
The code-behind file contains the following code segment. (Line numbers are included for reference only.)
06 Private Sub PrintText(sender As Object, args As SelectionChangedEventArgs)
07
08 MessageBox.Show("You selected " + cbi.Content.ToString() + ".")
09 End Sub
You need to ensure that when the user selects an item in a ComboBox control, the content of the item is
displayed.
What should you do?
A. Replace the following XAML fragment at line 01.
<ComboBox SelectionChanged="PrintText">
Add the following code segment at line 07.
Dim cbi As ComboBoxItem = TryCast(TryCast(sender, ComboBox).SelectedItem, ComboBoxItem)
B. Replace the following XAML fragment at line 01.
<ComboBox SelectionChanged="PrintText">
Add the following code segment at line 07.
Dim cbi As ComboBoxItem = TryCast(TryCast(sender, ComboBox).SelectedIndex, ComboBoxItem)
C. Replace the following XAML fragment at line 01.
<ComboBox DropDownClosed="PrintText">
Add the following code segment at line 07.
Dim cbi As ComboBoxItem = TryCast(TryCast(sender, ComboBox).SelectedItem, ComboBoxItem)
D. Replace the following XAML fragment at line 01.
<ComboBox DropDownClosed="PrintText">
Add the following code segment at line 07.
Dim cbi As ComboBoxItem = TryCast(TryCast(sender, ComboBox).SelectedIndex, ComboBoxItem)
Answer: A

Microsoft   070-506-VB   070-506-VB   070-506-VB

NO.16 You are developing a Silverlight 4 application.
The application contains an XAML page that defines the following Grid control.
<Grid Name="gridBody" >
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock Text="Employee Info" />
<TextBlock Text="Please enter employee info" Grid.Row="1" Height="20" VerticalAlignment="Top" />
<TextBox x:Name="EmpInfo" Grid.Row="1" Margin="0,25,0,0" TextWrapping="Wrap" />
...
</Grid>
The code-behind file for myPage.xaml contains the following code segment. (Line numbers are included
for reference only.)
01 Public Sub New()
02 InitializeComponent()
03
04 Dim control As UserControl = New MyCustomControl()
05
06 End Sub
You need to replace the contents of the second row of gridBody with a user control of the
MyCustomControl type.
Which code segment should you insert at line 05?
A. gridBody.Children.Insert(1, control)
B. gridBody.RowDefinitions.Remove(gridBody.RowDefinitions(1))
gridBody.Children.Insert(1, control)
C. gridBody.RowDefinitions.Remove(gridBody.RowDefinitions(1))
gridBody.Children.Insert(1, control)
gridBody.Children.Clear()
Grid.SetRow(control, 1)
gridBody.Children.Add(control)
D. gridBody.RowDefinitions.Remove(gridBody.RowDefinitions(1))
gridBody.Children.Insert(1, control)
gridBody.Children.Clear()
Grid.SetRow(control, 1)
gridBody.Children.Add(control)
Answer: D

certification Microsoft   070-506-VB   certification 070-506-VB   070-506-VB

On doit faire un bon choix pour passer le test Microsoft 070-506-VB. C'est une bonne affaire à choisir la Q&A de Pass4Test comme le guide d'étude, parce que vous allez obtenir la Certification Microsoft 070-506-VB en dépensant d'un petit invertissement. D'ailleur, la mise à jour gratuite pendant un an est aussi gratuite pour vous. C'est vraiment un bon choix.

Le plus récent matériel de formation Microsoft 70-521-VB

Le test certification Microsoft 70-521-VB est une bonne preuve de connaissances professionnelles et la techniques. Dans l'Industrie IT, beaucoiup de humains ressource font l'accent de lesquels certificats que les volontiers obtiennent. C'est clairement que le certificat Microsoft 70-521-VB puisse augmenter la compétition dans ce marché.

Les produits de Pass4Test sont recherchés par les experts de Pass4Test qui se profitent de leurs connaissances et leurs expériences dans l'Idustrie IT. Si vous allez participer le test Microsoft 70-521-VB, vous devez choisir Pass4Test. La Q&A de Pass4Test peut vous aider à préparer mieux le test Microsoft 70-521-VB avec sa grande couiverture des questions. En face d'un test très difficile, vous pouvez obtenir le Certificat Microsoft 70-521-VB sans aucune doute.

L'importance de la position de Certificat Microsoft 70-521-VB dans l'industrie IT est bien claire pour tout le monde, mais c'est pas facile à obtenir ce Certificat. Il y a beaucoup de Q&As qui manquent une haute précision des réponses. Cependant, Pass4Test peut offrir des matériaux pratiques pour toutes les personnes à participer l'examen de Certification, et il peut aussi offrir à tout moment toutes les informations que vous auriez besoin à réussir l'examen Microsoft 70-521-VB par votre première fois.

Code d'Examen: 70-521-VB
Nom d'Examen: Microsoft (UPG:Trans MCPD.NET Frmwk 3.5 Dev Skil to .NET 4 Wndws App De)
Questions et réponses: 115 Q&As

Finalement, la Q&A Microsoft 70-521-VB plus nouvelle est lancé avec tous efforts des experts de Pass4Test. Aujourd'hui, dans l'Industrie de IT, si on veut se renforcer sa place, il faut se preuve la professionnalité aux les autres. Le test Microsoft 70-521-VB est une bonne examination des connaissances professionnelles. Avec le passport de la Certification Microsoft, vous aurez un meilleur salaire et une plus grande space à se développer.

70-521-VB Démo gratuit à télécharger: http://www.pass4test.fr/70-521-VB.html

Selon les feedbacks les professionnels bien réputés dans l'Industrie IT, Pass4Test est un bon catalyseur de leurs succès. L'outil de formation offert par Pass4Test leur aide d'économiser le temps et l'argent, le plus important est qu'ils aient passé le test Microsoft 70-521-VB avec succès. Pass4Test est un fournissur fiable. Vous allez réaliser votre rêve avec l'aide de Pass4Test.

Le plus récent matériel de formation Microsoft 070-693

Est-ce que vous vous souciez encore pour passer le test Microsoft 070-693? Pourquoi pas choisir la formation en Internet dans une société de l'informatique. Un bon choix de l'outil formation peut résoudre le problème de prendre grande quantité de connaissances demandées par le test Microsoft 070-693, et vous permet de préparer mieux avant le test. Les experts de Pass4Test travaillent avec tous efforts à produire une bonne Q&A ciblée au test Microsoft 070-693. La Q&A est un bon choix pour vous. Vous pouvez télécharger le démo grantuit tout d'abord en Internet.

Le test Microsoft 070-693 est une examination de techniques professionnelles dans l'Industrie IT. Pass4Test est un site qui peut vous aider à réussir le test Microsoft 070-693 rapidement. Si vous utiliser l'outil de formation avant le test, vous apprendrez tous essences de test Certification Microsoft 070-693.

Code d'Examen: 070-693
Nom d'Examen: Microsoft (Windows Server 2008R2, Virtualization Administrator)
Questions et réponses: 140 Q&As

Il faut une bonne préparation et aussi une série de connaissances professionnelles complètes pour réussir le test Microsoft 070-693. La ressourece providée par Pass4Test peut juste s'accorder votre demande.

But que Pass4Test n'offre que les produits de qualité est pour vous aider à réussir le test Microsoft 070-693 100%. Le test simulation offert par Pass4Test est bien proche de test réel. Si vous ne pouvez pas passer le test Microsoft 070-693, votre argent sera tout rendu.

On peut télécharger quelques parties de Q&A gratuites dans le site Pass4Test à propos de test Certification Microsoft 070-693. Vous pouvez tester notre fiabilité via le démo. Choisir Pass4Test, c'est-à-dire que vous êtes proche d'un pic ensuite de l'Industrie IT.

Quand vous hésitez même à choisir Pass4Test, le démo gratuit dans le site Pass4Test est disponible pour vous à essayer avant d'acheter. Nos démos vous feront confiant à choisir Pass4Test. Pass4Test est votre meilleur choix à passer l'examen de Certification Microsoft 070-693, et aussi une meilleure assurance du succès du test 070-693. Vous choisissez Pass4Test, vous choisissez le succès.

070-693 Démo gratuit à télécharger: http://www.pass4test.fr/070-693.html

NO.1 Your network includes Windows Server 2008 R2 Hyper-V servers. Each Hyper-V server runs multiple
virtual machines (VMs). You need to detect performance issues and generate an alert when Hyper-V
server load exceeds specific thresholds.
Which tool should you use?
A. Microsoft System Center Capacity Planner 2007
B. Microsoft System Center Operations Manager 2007 R2
C. Microsoft System Center Configuration Manager 2007 R2
D. Microsoft System Center Virtual Machine Manager 2008 R2
Answer: B

Microsoft   070-693   070-693 examen   070-693   certification 070-693

NO.2 You are designing a test environment that uses Hyper-V. The test environment must enable testers to
perform the following tasks: Quickly switch between running states. Re-create a specific state or condition.
Return the state of the environment to a specific point in time. Recover from a faulty software update by
using the fastest method. You need to ensure that the test environment meets the requirements.
What are two possible tools that you can use to achieve this goal? (Each correct Answer presents a
complete solution. Choose two.)
A. Hyper-V Manager
B. Microsoft System Center Data Protection Manager (DPM) 2007 with SP1
C. Microsoft System Center Virtual Machine Manager (VMM) 2008 R2
D. Microsoft System Center Configuration Manager (SCCM) 2007 with SP3
Answer: AC

Microsoft   070-693   070-693

NO.3 All servers on your company's network run Windows Server 2008 R2. All client computers run Windows
Vista.
The company is planning to virtualize an application that is CPU intensive and that runs only on Windows
Vista and Windows 7. You need to recommend a virtualization solution that minimizes the use of CPU
resources on the server.
Which technology should you recommend?
A. Remote Desktop Services (RDS)
B. Microsoft Application Virtualization (App-V)
C. Microsoft Virtual Desktop Infrastructure (VDI)
D. Microsoft Enterprise Desktop Virtualization (MED-V)
Answer: B

certification Microsoft   certification 070-693   certification 070-693

NO.4 Your environment includes the virtual machines (VMs) shown in the following table. server Server1
and Server2 communicate with each other over a Hyper-V private virtual network. End-user connectivity
to the application server is provided by an external virtual network. You need to monitor network traffic
between Server1 and Server2 so that you can create a baseline to appropriately set thresholds for future
monitoring.
Which counter should you monitor?
A. Network Interface Bytes Total/sec
B. Hyper-V Virtual Switch Bytes/sec
C. Hyper-V Virtual Network Adapter Bytes Sent/sec
D. Hyper-V Virtual Network Adapter Bytes Received/sec
Answer: B

Microsoft   070-693 examen   070-693   certification 070-693

NO.5 You have a Windows Server 2008 R2 Hyper-V failover cluster. You manage the cluster by using
Microsoft System Center Virtual Machine Manager (VMM) 2008 R2. You plan to monitor the environment
by using Microsoft System Center Operations Manager 2007. You need to identify when Hyper-V server
load exceeds specific CPU and memory thresholds, and you must rebalance the environment
accordingly.
What should you do?
A. Configure the Placement settings to maximize resources for each of the Hyper-V servers
B. Configure Performance and Resource Optimization (PRO) to automatically implement PRO tips
C. Configure the Placement settings for CPU and Memory as Very Important for each of the Hyper-V
servers
D. Install the Windows Server Operating System Management Pack for Operations Manager 2007, and
set the thresholds
Answer: B

certification Microsoft   certification 070-693   070-693   certification 070-693   070-693

NO.6 You configure a Windows Server 2008 R2 Hyper-V server with several virtual machines (VMs). A
software vendor releases a software update for an application that runs on only one of the VMs. You need
to plan a strategy that enables you to install and test the update without interrupting business operations
and without corrupting data.
What should you do first?
A. Export the VM.
B. Create a snapshot of the affected VM.
C. Enable the Windows Volume Snapshot Service on the affected VM.
D. Enable the Windows Volume Snapshot Service on the Hyper-V server.
Answer: B

Microsoft   070-693   070-693   070-693   070-693

NO.7 All servers on your network run Windows Server 2008 R2. You plan to configure multiple highly
available virtual machines (HAVMs) on a Hyper-V failover cluster. You need to recommend a storage
solution that supports high availability.
Which storage solution should you recommend?
A. a direct-attached storage (DAS) device
B. a multipath serial-attached SCSI drive with a witness disk
C. a multipath Fibre Channel logical unit number (LUN) with a witness disk
D. a multipath iSCSI logical unit number (LUN) with Cluster Shared Volumes (CSVs)
Answer: D

Microsoft   070-693   070-693

NO.8 Your company has a main office in New York and branch offices in Chicago and Los Angeles. You plan
to use Microsoft Application Virtualization (App-V) 4.5 with SP1. You install an Application Virtualization
Management Server in the New York office. You need to provide application virtualization with active
upgrade support in the Chicago and Los Angeles offices. You must design your App-V solution so that it
minimizes WAN traffic.
What should you do?
A. Install Application Virtualization Streaming Servers in the Chicago and Los Angeles offices.
B. Install Application Virtualization Management Servers in the Chicago and Los Angeles offices.
C. Install the Application Virtualization \CONTENT folder on file shares in the Chicago and Los Angeles
offices.
D. Install the Application Virtualization \CONTENT folder on IIS 7 servers in the Chicago and Los Angeles
offices.
Answer: A

Microsoft examen   certification 070-693   certification 070-693   070-693

NO.9 All servers in your environment run Windows Server 2008 R2. You are planning a Microsoft System
Center Virtual Machine Manager (VMM) 2008 R2 Self-Service Portal deployment. You need to ensure
that members of the Security Compliance group can create new virtual machines (VMs). You install the
VMM 2008 R2 Self Service Portal and add the Security Compliance group to the Self Service host group.
What should you do next?
A. Assign the computer accounts for all Hyper-V servers the Read permission to the library share and
NTFS folders. Grant the Log on as a service right to the Security Compliance group.
B. Assign the service account for the Hyper-V Image Management Service the Read permission to the
library share and NTFS folders. Grant the Log on as a service right to the service account for the Hyper-V
Image Management Service.
C. Configure the self-service user role to create new VMs. Add the Security Compliance group to the
self-service user role. Grant members of the self-service user role access to the library share.
D. Configure constrained delegation for the Security Compliance group on the library server. Grant the
Log on as a service right to the service account for the Hyper-V Image Management Service.
Answer: C

Microsoft examen   certification 070-693   070-693   070-693 examen

NO.10 Your virtual environment includes Windows Server 2008 R2 Hyper-V servers. The test and
development teams are developing a distributed application. The application requires a domain controller,
a server that runs Microsoft SQL Server, an application server, and a client computer. The application
uses pass-through authentication. You need to ensure that at the time of a failure, the test team can
reproduce the error and provide the application in the state in which it existed when the error occurred to
the development team for continued analysis. You must achieve this goal while minimizing storage
requirements.
What should you do?
A. Snapshot and export all servers.
B. Snapshot and export only the application server.
C. Snapshot the application server, and back up the SQL Server database.
D. Snapshot and export only the domain controller and the client computer.
Answer: A

Microsoft examen   certification 070-693   070-693   070-693

NO.11 All servers on your company's network run Windows Server 2008 R2. All client computers run Windows
Vista.
The company is planning to virtualize an application that runs only on Windows 2000 Professional. You
need to recommend a virtualization solution that enables users to run the virtualized application while
their computers are disconnected from the corporate network.
Which technology should you recommend?
A. Remote Desktop Services (RDS)
B. Microsoft Application Virtualization (App-V)
C. Microsoft Virtual Desktop Infrastructure (VDI)
D. Microsoft Enterprise Desktop Virtualization (MED-V)
Answer: D

certification Microsoft   070-693   070-693   certification 070-693

NO.12 Your company has 300 portable computers that run Microsoft Office Enterprise 2007. The company
participates in the Microsoft Software Assurance program. You are designing a solution that enables
remote employees to use Office and to access their Home folders. You plan to implement a Remote
Desktop Services (RDS) infrastructure, and you plan to deploy Office Enterprise 2007 as a virtual
application on the RDS servers.
You need to choose the appropriate licenses. Which licensing solution should you choose?
A. 1 Office Enterprise 2007 license and 300 App-V for Terminal Services licenses
B. 300 Office Enterprise 2007 licenses and 300 App-V for Terminal Services licenses
C. 300 Office Enterprise 2007 licenses and 300 Microsoft Desktop Optimization Pack (MDOP) licenses
D. 300 Windows Server 2008 R2 RDS client access licenses (CALs)
Answer: D

Microsoft examen   070-693   070-693 examen

NO.13 You deploy two Windows Server 2008 R2 Hyper-V servers. You manage the servers by using
Microsoft System Center Virtual Machine Manager (VMM) 2008 R2. You need to ensure that you can
restore virtual machines (VMs) in the event of a hardware failure.
What should you do?
A. Use a PowerShell script to create a snapshot of each VM. Run the script every 60 minutes on each
Hyper-V server.
B. Use a PowerShell script to create a checkpoint of each VM. Run the script every 60 minutes on each
Hyper-V server.
C. Use a PowerShell script to pause, export, and start each VM, and then to copy the export to the
opposite Hyper-V server. Run the script once per day on each Hyper-V server.
D. Use a PowerShell script to shut down, export, and start each VM, and then to copy the export to the
opposite Hyper-V server. Run the script once per day on each Hyper-V server.
Answer: D

Microsoft   070-693   070-693   070-693 examen   070-693

NO.14 You deploy a Microsoft Hyper-V Server 2008 R2 server. You will back up the server by using Microsoft
System Center Data Protection Manager (DPM) 2007 with SP1. Your virtual environment includes the
virtual machines (VMs) shown in the following table. You need to configure the DPM protection group to
minimize server downtime during business hours and to provide the best recovery point objective (RPO).
What should you do?
A. Set synchronizations to run every 15 minutes during business hours.
B. Set synchronizations to run every 30 minutes during business hours.
C. Set synchronizations to run every 45 minutes during business hours.
D. Perform express full backups every 60 minutes during non-business hours.
Answer: A

certification Microsoft   070-693   070-693 examen

NO.15 You have a Windows Server 2008 R2 Hyper-V failover cluster. You manage the virtual environment by
using Microsoft System Center Virtual Machine Manager (VMM) 2008 R2. You need to find out whether
the failover cluster is properly configured to support highly available virtual machines (VMs).
Which PowerShell cmdlet should you run?
A. Test-Cluster
B. Enable-VMHost
C. Get-VMHostRating
D. Test-ClusterResourceFailure
Answer: A

Microsoft examen   070-693   certification 070-693   certification 070-693   070-693   070-693 examen

NO.16 You have a two-node Hyper-V failover cluster that uses SAN storage. You are designing storage for a
new virtualization environment by using Windows Server 2008 R2. You plan to deploy five virtual
machines (VMs) per logical unit number (LUN). You need to be able to perform a live migration of a single
VM while the other VMs continue to run on the host server.
What should you do?
A. Use Cluster Shared Volumes (CSVs).
B. Use fixed disks on the SAN storage.
C. Boot the virtual machines from iSCSI LUNs.
D. Use dynamically expanding disks on an iSCSI LUN.
Answer: A

Microsoft   certification 070-693   certification 070-693   070-693

NO.17 Your company uses Windows Server 2008 R2 Hyper-V servers to provide a Microsoft Virtual Desktop
Infrastructure (VDI) environment. Maintenance tasks result in reduced capacity on several servers. You
need to prevent servers from experiencing performance problems during maintenance.
What should you do?
A. Set the user logon mode on every server to Enabled.
B. Create additional DNS A records for the servers, and use DNS round-robin.
C. In Remote Desktop Connection Broker, assign a lower weight to the servers that will undergo
maintenance.
D. In Remote Desktop Connection Broker, assign a higher weight to the servers that will undergo
maintenance.
Answer: C

Microsoft   070-693   070-693   070-693   070-693   070-693

NO.18 Client computers on your network run either Windows Vista or Windows 7. You plan to use Microsoft
Application Virtualization (App-V) 4.5 with SP1 as an application virtualization platform. You need to
virtualize applications by using mount point installations (MNT).
What should you do?
A. Configure the App-V Sequencer to have two partitions.
B. Configure the App-V Sequencer on a Windows 7 client computer.
C. Configure virtualized applications to check for updates during installation.
D. On the reference computer, install all software that typically runs on client computers.
Answer: A

Microsoft examen   070-693   070-693   070-693

NO.19 All servers on your company's network run Windows Server 2008 R2. All users have thin client
computers. You need to recommend a virtualization solution that allows users to use applications that run
only on Windows 7.
Which technology should you recommend?
A. Windows Virtual PC
B. Microsoft Application Virtualization (App-V)
C. Microsoft Virtual Desktop Infrastructure (VDI)
D. Microsoft Enterprise Desktop Virtualization (MED-V)
Answer: C

Microsoft examen   070-693   070-693   certification 070-693   070-693 examen   certification 070-693

NO.20 You are planning to deploy two Windows Server 2008 R2 Hyper-V servers. You need to design the
storage of VHD files for maximum security.
What should you do?
A. Store the VHD files on a dedicated NTFS volume.
B. Store unencrypted VHD files on a volume that uses Windows BitLocker drive encryption.
C. Encrypt the VHD files by using EFS on a volume that uses Windows BitLocker drive encryption.
D. Encrypt the VHD files by using EFS on a volume that does not use Windows BitLocker drive
encryption.
Answer: B

Microsoft   070-693   070-693 examen   certification 070-693

Pass4Test est un fournisseur important de résume du test Certification IT dans tous les fournissurs. Les experts de Pass4Test travaillent sans arrêt juste pour augmenter la qualité de l'outil formation et vous aider à économiser le temps et l'argent. D'ailleur, le servie en ligne après vendre est toujours disponible pour vous.

2014年2月27日星期四

Le meilleur matériel de formation examen Microsoft 070-506

Le Certificat de Microsoft 070-506 signifie aussi un nouveau jalon de la carrière, le travail aura une space plus grande à augmenter, et tout le monde dans l'industrie IT sont désireux de l'obtenir. En face d'une grande passion pour le test Certification Microsoft 070-506, le contrariété est le taux très faible à réussir. Bien sûr que l'on ne passe pas le test 070-506 sans aucun éffort, en même temps, le test de Microsoft 070-506 demande les connaissances bien professionnelles. Le guide d'étude dans le site Pass4Test peut vous fournir un raccourci à réussir le test Microsoft 070-506 et à obtenir le Certificat de ce test. Choisissez le guide d'étude de Pass4Test, vous verrez moins de temps dépensés, moins d'efforts contribués, mais plus de chances à réussir le test. Ça c'est une solution bien rentable pour vous.

Dans cette société, il y a plein de gens talentueux, surtout les professionnels de l'informatique. Beaucoup de gens IT se battent dans ce domaine pour améliorer l'état de la carrière. Le test 070-506 est lequel très important dans les tests de Certification Microsoft. Pour être qualifié de Microsoft, on doit obtenir le passport de test Microsoft 070-506.

Selon les feedbacks les professionnels bien réputés dans l'Industrie IT, Pass4Test est un bon catalyseur de leurs succès. L'outil de formation offert par Pass4Test leur aide d'économiser le temps et l'argent, le plus important est qu'ils aient passé le test Microsoft 070-506 avec succès. Pass4Test est un fournissur fiable. Vous allez réaliser votre rêve avec l'aide de Pass4Test.

Chaque expert dans l'équipe de Pass4Test ont son autorité dans cette industrie. Ils profitent ses expériences et ses connaissances professionnelles à préparer les documentations pour les candidats de test Certification IT. Les Q&As produites par Pass4Test ont une haute couverture des questions et une bonne précision des réponses qui vous permettent la réussie de test par une seule fois. D'ailleurs, un an de service gratuit en ligne après vendre est aussi disponible pour vous.

C'est sûr que le Certificat Microsoft 070-506 puisse améliorer le lendemain de votre carrière. Parce que si vous pouvez passer le test Microsoft 070-506, c'est une meilleure preuve de vos connaissances professionnelles et de votre bonne capacité à être qualifié d'un bon boulot. Le Certificat Microsoft 070-506 peut bien tester la professionnalité de IT.

Dans cette société bien intense, c'est avantage si quelque'un a une technique particulère, donc c'est pourquoi beaucoup de gens ont envie de dépnenser les efforts et le temps à préparer le test Microsoft 070-506, mais ils ne peuvaient pas réussir finalement. C'est juste parce que ils ont pas bien choisi une bonne formation. L'outil de formation lancé par les experts de Pass4Test vous permet à passer le test Microsoft 070-506 coûtant un peu d'argent.

Pass4Test possède un l'outil de formation particulier à propos de test Microsoft 070-506. Vous pouvez améliorer les techniques et connaissances professionnelles en coûtant un peu d'argent à courte terme, et vous preuver la professionnalité dans le future proche. L'outil de formation Microsoft 070-506 offert par Pass4Test est recherché par les experts de Pass4Test en profitant les expériences et les connaissances riches.

Code d'Examen: 070-506
Nom d'Examen: Microsoft (Microsoft Silverlight 4, Development)
Questions et réponses: 153 Q&As

070-506 Démo gratuit à télécharger: http://www.pass4test.fr/070-506.html

NO.1 You are developing a Silverlight 4 application. You define the visual behavior of a custom control in the
ControlTemplate by defining a VisualState object named Selected.
You need to change the visual state of the custom control to the Selected state.
Which code segment or XAML fragment should you use?
A. VisualStateManager.GoToState( this, "Selected", true )
B. <VisualTransition To="Selected">
<Storyboard>
...
</Storyboard>
</VisualTransition>
C. <VisualTransition From="Selected">
<Storyboard>
...
</Storyboard>
</VisualTransition>
D. public static readonly DependencyProperty SelectedProperty =
DependencyProperty.Register("Selected", typeof(VisualState), typeof(MyControl), null)
public VisualState Selected
{
get { return (VisualState)GetValue(SelectedProperty)
}
set { SetValue(SelectedProperty, value)
}
}
Answer: A

certification Microsoft   070-506   070-506 examen   certification 070-506   070-506

NO.2 }

NO.3 You are developing a Silverlight 4 application.
The application defines the following three event handlers. (Line numbers are included for reference
only.)
01 private void HandleCheck(object sender, RoutedEventArgs e)
02 {
03 MessageBox.Show("Checked")
04 }
05
06 private void HandleUnchecked(object sender, RoutedEventArgs e)
07 {
08 MessageBox.Show("Unchecked")
09 }
10
11 private void HandleThirdState(object sender, RoutedEventArgs e)
12 {
13 MessageBox.Show("Indeterminate")
14 }
You need to allow a check box that can be selected, cleared, or set to Indeterminate. You also need to
ensure that the event handlers are invoked when the user changes the state of the control.
Which XAML fragment should you use?
A. <CheckBox x:Name="cb2" Content="Three State CheckBox"
IsChecked="True" Checked="HandleCheck"
Indeterminate="HandleUnchecked" Unchecked="HandleUnchecked" />
B. <CheckBox x:Name="cb2" Content="Three State CheckBox"
IsThreeState="True" Checked="HandleCheck"
Indeterminate="HandleThirdState" Unchecked="HandleUnchecked" />
C. <CheckBox x:Name="cb2" Content="Three State CheckBox"
IsHitTestVisible="True" Checked="HandleCheck"
Indeterminate="HandleThirdState" Unchecked="HandleUnchecked" />
D. <CheckBox x:Name="cb2" Content="Three State CheckBox"
IsEnabled="True" Checked="HandleCheck"
Indeterminate="HandleUnchecked" Unchecked="HandleUnchecked" />
Answer: B

Microsoft examen   070-506   070-506   070-506

NO.4 private void worker_ProgressChanged(object sender, ProgressChangedEventArgs e)

NO.5 You are developing a Silverlight 4 application.
You have a collection named ColPeople of the List<Person> type. You define the Person class according
to the following code segment.
public class Person
{
public string Name {get
set }
public string Description { get
set
}
public string Gender { get
set
}
public int Age { get
set
}
public int Weight { get
set
}
}
You need to bind ColPeople to a ComboBox so that only the Name property is displayed.
Which XAML fragment should you use?
A. <ComboBox DataContext="{Binding ColPeople}" ItemsSource="{Binding ColPeople}"
DisplayMemberPath="Name" />
B. <ComboBox DataContext="{Binding Person}" ItemsSource="{Binding Person}"
DisplayMemberPath="ColPeople" />
C. <ComboBox DataContext="{Binding ColPeople}" DisplayMemberPath="Name" />
D. <ComboBox DataContext="{Binding Person}" />
Answer: A

Microsoft   070-506   070-506 examen   certification 070-506   070-506 examen   certification 070-506

NO.6 You are developing an application by using Silverlight 4 and Microsoft.NET Framework 4. The
application has a TextBox control named txtName.
You need to handle the event when txtName has the focus and the user presses the F2 key.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. txtName.KeyDown += new KeyEventHandler(txtName_KeyDown)
B. txtName.LostFocus += new RoutedEventHandler(txtName_LostFocus)
C. txtName.TextChanged += new TextChangedEventHandler(txtName_TextChanged)
D. void txtName_TextChanged(object sender, TextChangedEventArgs e)
{
if ((Key)e.OriginalSource == Key.F2)
{
//Custom logic
}
}
E. void txtName_KeyDown(object sender, KeyEventArgs e)
{
if (e.Key == Key.F2)
{
//Custom logic
}
}
F. void txtName_LostFocus(object sender, RoutedEventArgs e)
{
if ((Key)e.OriginalSource == Key.F2)
{
//Custom logic
}
}
Answer: A, E

certification Microsoft   070-506   070-506   070-506 examen   certification 070-506

NO.7 You are developing a Silverlight 4 application.
The application defines the following XAML fragment. (Line numbers are included for reference only.)
01 <ComboBox>
02 <ComboBoxItem Content="Item 1" />
03 <ComboBoxItem Content="Item 2" />
04 <ComboBoxItem Content="Item 3" />
05 </ComboBox>
The codebehind file contains the following code segment. (Line numbers are included for reference only.)
06 void PrintText(object sender, SelectionChangedEventArgs args){
07
08 MessageBox.Show( "You selected " + cbi.Content.ToString() + ".")
09 }
You need to ensure that when the user selects an item in a ComboBox control, the content of the item is
displayed.
What should you do?
A. Replace the following XAML fragment at line 01.
<ComboBox SelectionChanged="PrintText">
Add the following code segment at line 07.
ComboBoxItem cbi = ((sender as ComboBox).SelectedItem as ComboBoxItem)
B. Replace the following XAML fragment at line 01.
<ComboBox SelectionChanged="PrintText">
Add the following code segment at line 07.
ComboBoxItem cbi = ((sender as ComboBox).SelectedIndex as ComboBoxItem)
C. Replace the following XAML fragment at line 01.
<ComboBox DropDownClosed="PrintText">
Add the following code segment at line 07.
ComboBoxItem cbi = ((sender as ComboBox).SelectedItem as ComboBoxItem)
D. Replace the following XAML fragment at line 01.
<ComboBox DropDownClosed="PrintText">
Add the following code segment at line 07.
ComboBoxItem cbi = ((sender as ComboBox).SelectedIndex as ComboBoxItem)
Answer: A

Microsoft   certification 070-506   070-506 examen   070-506

NO.8 }
You need to ensure that worker can be properly canceled.
Which code segment should you use to replace line 11?
A. var cancel = (sender as BackgroundWorker).CancellationPending
if(cancel) {
(sender as BackgroundWorker).CancelAsync()
break
}
else {
InvokeLongRunningProcessStep()
}
B. var cancel = (sender as BackgroundWorker).CancellationPending
if(cancel) {
e.Cancel = true
break
}
else {
InvokeLongRunningProcessStep()
}
C. var cancel = e.Cancel
if(cancel) {
(sender as BackgroundWorker).CancelAsync()
break
}
else {
InvokeLongRunningProcessStep()
}
D. var cancel = e.Cancel
if(cancel) {
e.Cancel = true
break
}
else {
InvokeLongRunningProcessStep()
}
Answer: B

Microsoft   certification 070-506   certification 070-506   070-506   070-506 examen
12.You are developing an application by using Silverlight 4 and Microsoft.NET Framework 4.
You add a BackgroundWorker object named worker to the application. You also add a CheckBox control
named checkBox and a TextBlock control named statusTextBlock.
You add the following code segment. (Line numbers are included for reference only.)
01 public MainPage()
02 {
03 InitializeComponent()
04 worker.WorkerReportsProgress = true
05 worker.DoWork += new DoWorkEventHandler(worker_DoWork)
06 worker.ProgressChanged += new ProgressChangedEventHandler(worker_ProgressChanged)
07 }
08 private void worker_DoWork(object sender, DoWorkEventArgs e)
09 {
10 for (int i = 0
i < 100
i++) {
11 bool isChecked = checkBox.IsChecked.HasValue && checkBox.IsChecked.Value
12 ExecuteLongRunningProcessStep(isChecked)
13 worker.ReportProgress(i)

NO.9 You are developing an application by using Silverlight 4 and Microsoft.NET Framework 4.
You create a Windows Communication Foundation (WCF) Data Service. You add a service reference to
the WCF Data Service named NorthwindEntities in the Silverlight application. You also add a
CollectionViewSource object named ordersViewSource in the Silverlight application.
You add the following code segment. (Line numbers are included for reference only.)
01 void getOrders_Click(object sender, RoutedEventArgs e)
02 {
03 var context = new NorthwindEntities()
04
05 var query = from order in context.Orders
06 select order
07
08 }
You need to retrieve the Orders data from the WCF Data Service and bind the data to the
ordersViewSource object.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Add the following code segment at line 04.
var obsCollection = new ObservableCollection<Order>()
B. Add the following code segment at line 04.
var dsOrders = new DataServiceCollection<Order>()
dsOrders.LoadCompleted += new EventHandler<LoadCompletedEventArgs>(
(dsc, args) =>
{
ordersViewSource.Source = dsOrders
})
C. Add the following code segment at line 07.
dsOrders.LoadAsync(query)
D. Add the following code segment at line 07.
dsOrders.Load(query)
E. Add the following code segment at line 07.
query.ToList().ForEach(o => obsCollection.Add(o))
ordersViewSource.Source = obsCollection
Answer: B, C

Microsoft examen   070-506   070-506 examen   070-506 examen   070-506 examen

NO.10 statusTextBlock.Text = e.ProgressPercentage + "%"

NO.11 {

NO.12 You have a Silverlight 4 application that uses isolated storage. You create an application that has a 5
MB file that must be saved to isolated storage.
Currently, the application has not allocated enough isolated storage to save the file.
You need to ensure that the application prompts the user to increase the isolated storage allocation. You
also need to ensure that only the minimum amount of space needed to save the 5 MB file is requested.
Which code segment should you use?
A. using (var store = IsolatedStorageFile.GetUserStoreForApplication())
{
var neededSpace = 5242880
if (store.IncreaseQuotaTo(neededSpace))
{
...
}
}
B. using (var store = IsolatedStorageFile.GetUserStoreForApplication())
{
var neededSpace = 5242880
if (store.IncreaseQuotaTo(store.Quota + neededSpace))
{
...
}
}
C. using (var store = IsolatedStorageFile.GetUserStoreForApplication())
{
var neededSpace = 5242880
if (store.IncreaseQuotaTo(
store.AvailableFreeSpace + neededSpace
))
{
...
}
}
D. using (var store = IsolatedStorageFile.GetUserStoreForApplication())
{
var neededSpace = 5242880
if (store.IncreaseQuotaTo(
store.UsedSize + neededSpace
))
{
...
}
}
Answer: D

Microsoft   070-506 examen   070-506

NO.13 You are developing an application by using Silverlight 4 and Microsoft.NET Framework 4.
You create a new user control in the application. You add the following XAML fragment to the control.
<StackPanel KeyDown="App_KeyDown"
Orientation="Vertical">
<TextBox x:Name="firstName" />
<TextBox x:Name="lastName" />
<TextBox x:Name="address" />
</StackPanel>
You add the following code segment in the codebehind file of the control. (Line numbers are included for
reference only.)
01 private void App_KeyDown(object sender, KeyEventArgs e)
02 {
03
04 }
05
06 private void FirstAndLastNameKeyDown()
07 {
08...
09 }
You need to ensure that the FirstAndLastNameKeyDown method is invoked when a key is pressed while
the focus is on the firstName or lastName TextBox controls. You also need to ensure that the default
behavior of the controls remains unchanged.
Which code segment should you add at line 03?
A. if (((FrameworkElement)sender).Name == "firstName" ||
((FrameworkElement)sender).Name == "lastName")
{
FirstAndLastNameKeyDown()
}
e.Handled = false
B. if (((FrameworkElement)sender).Name == "firstName" ||
((FrameworkElement)sender).Name == "lastName")
{
FirstAndLastNameKeyDown()
}
e.Handled = true
C. if (((FrameworkElement)e.OriginalSource).Name == "firstName" ||
((FrameworkElement)e.OriginalSource).Name == "lastName")
{
FirstAndLastNameKeyDown()
}
e.Handled = false
D. if (((FrameworkElement)e.OriginalSource).Name == "firstName" ||
((FrameworkElement)e.OriginalSource).Name == "lastName")
{
FirstAndLastNameKeyDown()
}
e.Handled = true
Answer: C

certification Microsoft   070-506   070-506

NO.14 You are developing a Silverlight 4 application. You define an Invoice object according to the following
code segment.
public class Invoice
{
public int InvoiceId { get
set
}
public double Amount { get
set
}
public Supplier Supplier { get
set
}
public DateTime InvoiceDate { get
set
}
public DateTime PayDate { get
set
}
public string InvoiceDescription { get
set
}
}
You need to display a list of invoices that have the following properties displayed on each line: InvoiceId,
Amount, and InvoiceDate.
Which XAML fragment should you use?
A. <ListBox x:Name="InvoiceListBox">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Path=InvoiceId}" />
<TextBlock Text="{Binding Path=Amount}" />
<TextBlock Text="{Binding Path=InvoiceDate}" />
</StackPanel>
</ListBox>
B. <ListBox x:Name="InvoiceListBox">
<StackPanel Orientation="Horizontal">
<ListBoxItem>
<TextBlock Text="{Binding Path=InvoiceId}" />
</ListBoxItem>
<ListBoxItem>
<TextBlock Text="{Binding Path=Amount}" />
</ListBoxItem>
<ListBoxItem>
<TextBlock Text="{Binding Path=InvoiceDate}" />
</ListBoxItem>
</StackPanel>
</ListBox>
C. <ListBox x:Name="InvoiceListBox">
<ListBox.Items>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Path=InvoiceId}" />
<TextBlock Text="{Binding Path=Amount}" />
<TextBlock Text="{Binding Path=InvoiceDate}" />
</StackPanel>
</ItemsPanelTemplate>
</ListBox.Items>
</ListBox>
D. <ListBox x:Name="InvoiceListBox">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Path=InvoiceId}" />
<TextBlock Text="{Binding Path=Amount}" />
<TextBlock Text="{Binding Path=InvoiceDate}" />
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
Answer: D

Microsoft   070-506 examen   070-506 examen   certification 070-506   070-506 examen

NO.15 }

NO.16 You are developing an application by using Silverlight 4 and Microsoft.NET Framework 4.
The application contains the following XAML fragment.
<TextBlock x:Name="QuoteOfTheDay" />
The application calls a Windows Communication Foundation (WCF) service named MyService that
returns the quote of the day and assigns it to the QuoteOfTheDay TextBlock.
The application contains the following code segment. (Line numbers are included for reference only.)
01 var client = new MyService.MyServiceClient()
02 client.GetQuoteOfTheDayCompleted += (s, args) => QuoteOfTheDay.Text = args.Result
03 client.GetQuoteOfTheDayAsync()
You need to handle errors that might occur as a result of the service call. You also need to provide a
default value of "Unavailable" when an error occurs.
Which code segment should you replace at lines 02 and 03?
A. QuoteOfTheDay.Text = "Unavailable"
client.GetQuoteOfTheDayCompleted += (s, args) => QuoteOfTheDay.Text = args.Result
client.GetQuoteOfTheDayAsync()
B. client.GetQuoteOfTheDayCompleted += (s, args) =>
{
if (args.Result != null)
{
QuoteOfTheDay.Text = args.Result
}
else
{
QuoteOfTheDay.Text = "Unavailable"
}
}
client.GetQuoteOfTheDayAsync()
C. client.GetQuoteOfTheDayCompleted += (s, args) => QuoteOfTheDay.Text = args.Result
try
{
client.GetQuoteOfTheDayAsync()
}
catch (Exception ex)
{
// TODO: handle exception
QuoteOfTheDay.Text = "Unavailable"
}
D. client.GetQuoteOfTheDayCompleted += (s, args) =>
{
if (args.Error == null)
{
QuoteOfTheDay.Text = args.Result
}
else
{
// TODO: handle error
QuoteOfTheDay.Text = "Unavailable"
}
}
client.GetQuoteOfTheDayAsync()
Answer: D

Microsoft examen   certification 070-506   070-506 examen   070-506   070-506 examen

NO.17 You are developing a Silverlight 4 application.
The application contains an XAML page that defines the following Grid control.
<Grid Name="gridBody" >
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock Text="Employee Info" />
<TextBlock Text="Please enter employee info" Grid.Row="1" Height="20" VerticalAlignment="Top" />
<TextBox x:Name="EmpInfo" Grid.Row="1" Margin="0,25,0,0" TextWrapping="Wrap" />
...
</Grid>
The codebehind file for myPage.xaml contains the following code segment. (Line numbers are included
for reference only.)
01 public myPage()
02 {
03 InitializeComponent()
04
05 UserControl control = new MyCustomControl()
06
07 }
You need to replace the contents of the second row of gridBody with a user control of the
MyCustomControl type.
Which code segment should you insert at line 06?
A. gridBody.Children.Insert(1, control)
B. gridBody.RowDefinitions.Remove(gridBody.RowDefinitions[1])
gridBody.Children.Insert(1, control)
C. gridBody.Children.Clear()
Grid.SetRow(control, 1)
gridBody.Children.Add(control)
D. List<UIElement> remove = gridBody.Children.Where(c => c is FrameworkElement &&
Grid.GetRow((FrameworkElement)c) == 1).ToList()
foreach (UIElement element in remove)
{
gridBody.Children.Remove(element)
}
Grid.SetRow(control, 1)
gridBody.Children.Add(control)
Answer: D

Microsoft   070-506   070-506   070-506

NO.18 }

NO.19 You are developing an application by using Silverlight 4 and Microsoft.NET Framework 4.
You add a BackgroundWorker object named worker to the application.
You add the following code segment. (Line numbers are included for reference only.)
01 public MainPage()
02 {
03 InitializeComponent()
04 worker.WorkerSupportsCancellation = true
05 worker.DoWork += new DoWorkEventHandler(worker_DoWork)
06 worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_Completed)
07 }
08 private void worker_DoWork(object sender, DoWorkEventArgs e)
09 {
10 for (int i = 0
i < 100
i++) {
11 InvokeLongRunningProcessStep()

NO.20 }
You attempt to run the application. You receive the following error message:
"Invalid crossthread access."
You need to ensure that worker executes successfully.
What should you do?
A. Replace line 11 with the following code segment.
var b = (bool )checkBox.GetValue(CheckBox.IsCheckedProperty)
bool isChecked = b.HasValue && b.Value
B. Replace line 11 with the following code segment.
bool isChecked = false
Dispatcher.BeginInvoke(() =>
{
isChecked = checkBox.IsChecked.HasValue && checkBox.IsChecked.Value
})
C. Replace line 18 with the following code segment.
statusTextBlock.SetValue(TextBlock.TextProperty, e.ProgressPercentage + "%")
D. Replace line 18 with the following code segment.
Dispatcher.BeginInvoke(() =>
{
statusTextBlock.Text = e.ProgressPercentage + "%"
})
Answer: B

Microsoft   070-506 examen   070-506   certification 070-506
13.You are developing an application by using Silverlight 4 and Microsoft.NET Framework 4.
You add the following code segment. (Line numbers are included for reference only.)
01 public class MyControl : Control
02 {
03
04 public string Title
05 {
06 get { return (string)GetValue(TitleProperty)
}
07 set { SetValue(TitleProperty, value)
}
08 }
09 }
You need to create a dependency property named TitleProperty that allows developers to set the Title.
You also need to ensure that the default value of the TitleProperty dependency property is set to Untitled.
Which code segment you add at line 03?
A. public static readonly DependencyProperty TitleProperty =
DependencyProperty.Register("Untitled",
typeof(string),
typeof(MyControl),
null)
B. public static readonly DependencyProperty TitleProperty =
DependencyProperty.Register("Untitled",
typeof(string),
typeof(MyControl),
new PropertyMetadata("Title"))
C. public static readonly DependencyProperty TitleProperty =
DependencyProperty.Register("Title",
typeof(string),
typeof(MyControl),
new PropertyMetadata("Untitled"))
D. public static readonly DependencyProperty TitleProperty =
DependencyProperty.Register("Title",
typeof(string),
typeof(MyControl),
new PropertyMetadata(new PropertyChangedCallback((depObj, args) =>
{
depObj.SetValue(MyControl.TitleProperty, "Untitled")
})))
Answer: C

Microsoft   certification 070-506   070-506   070-506 examen
14.You are developing an application by using Silverlight 4 and Microsoft.NET Framework 4.
You create a control named MyControl in the application. Each instance of the control contains a list of
FrameworkElement objects.
You add the following code segment. (Line numbers are included for reference only.)
01 public class MyControl : Control
02 {
03
04 public List<FrameworkElement> ChildElements
05 {
06 get {
07 return List<FrameworkElement>)GetValue(MyControl.ChildElementsProperty)
08 }
09 }
10
11 public MyControl()
12 {
13
14 }
15 static MyControl()
16 {
17
18 }
19 }
You need to create the ChildElementsProperty dependency property. You also need to initialize the
property by using an empty list of FrameworkElement objects.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Add the following code segment at line 03.
public static readonly DependencyProperty ChildElementsProperty =
DependencyProperty.Register("ChildElements", typeof(List<FrameworkElement>), typeof(MyControl),
new PropertyMetadata(new List<FrameworkElement>()))
B. Add the following code segment at line 03.
public static readonly DependencyProperty ChildElementsProperty =
DependencyProperty.Register("ChildElements", typeof(List<FrameworkElement>), typeof(MyControl),
new PropertyMetadata(null))
C. Add the following code segment at line 13.
SetValue(MyControl.ChildElementsProperty, new List<FrameworkElement>())
D. Add the following code segment at line 17.
ChildElementsProperty =
DependencyProperty.Register("ChildElements", typeof(List<FrameworkElement>), typeof(MyControl),
new PropertyMetadata(new List<FrameworkElement>()))
Answer: B, C

certification Microsoft   certification 070-506   070-506
15.You are developing an application by using Silverlight 4 and Microsoft.NET Framework 4.
You add the following code segment. (Line numbers are included for reference only.)
01 var outerCanvas = new Canvas()
02 var innerCanvas = new Canvas()
03 innerCanvas.Width = 200
04 innerCanvas.Height = 200
05 outerCanvas.Children.Add(innerCanvas)
06
You need to set the distance between the left of the innerCanvas element and the left of the outerCanvas
element to 150 pixels.
Which code segment should you add at line 06?
A. outerCanvas.Margin = new Thickness(0.0, 150.0, 0.0, 0.0)
B. innerCanvas.Margin = new Thickness(0.0, 150.0, 0.0, 0.0)
C. outerCanvas.SetValue(Canvas.LeftProperty, 150.0)
D. innerCanvas.SetValue(Canvas.LeftProperty, 150.0)
Answer: D

Microsoft examen   070-506   070-506 examen
16.You are developing a Silverlight 4 application. The application contains a Product class that has a
public Boolean property named IsAvailable.
You need to create a value converter that binds data to the Visibility property of a Button control.
Which code segment should you use?
A. public class BoolToVisibilityConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo
culture)
{
bool result = System.Convert.ToBoolean(parameter)
return result Visibility.Visible : Visibility.Collapsed
}
public object ConvertBack(object value, Type targetType, object parameter,
System.Globalization.CultureInfo culture)
{
throw new NotImplementedException()
}
}
B. public class BoolToVisibilityConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo
culture)
{
bool result = System.Convert.ToBoolean(value)
return result Visibility.Visible : Visibility.Collapsed
}
public object ConvertBack(object value, Type targetType, object parameter,
System.Globalization.CultureInfo culture)
{
throw new NotImplementedException()
}
}
C. public class BoolToVisibilityConverter : PropertyPathConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo
culture)
{
return this.ConvertTo(value, typeof(Visibility))
}
public object ConvertBack(object value, Type targetType, object parameter,
System.Globalization.CultureInfo culture)
{
throw new NotImplementedException()
}
}
D. public class BoolToVisibilityConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo
culture)
{
bool result = System.Convert.ToBoolean(value)
return result Visibility. Visible : Visibility. Collapsed
}
public object ConvertBack(object value, Type targetType, object parameter,
System.Globalization.CultureInfo culture)
{
throw new NotImplementedException()
}
}
Answer: B

Microsoft   070-506 examen   certification 070-506   070-506
17.You are developing a Silverlight 4 application. The application contains a Product class that has a
public string property named Name.
You create a TextBox control by using the following XAML fragment.
<TextBox Text="{Binding Name, ValidatesOnDataErrors=True}" />
You need to ensure that validation errors are reported to the user interface. You also need to ensure that
a validation error will occur when the TextBox control is empty.
Which code segment should you use?
A. public class Product
{
[Required()]
public string Name { get
set
}
}
B. public class Product : IDataErrorInfo
{
public string Name { get
set
}
public string Error { get { return null
} }
public string this[string columnName]
{
get
{
if (columnName == "Name" && string.IsNullOrEmpty(Name))
{
throw new ValidationException("Name should not be empty!")
}
return string.Empty
}
}
}
C. public class Product : IDataErrorInfo
{
public string Name { get
set
}
public string Error { get { return null
} }
public string this[string columnName]
{
get
{
if (columnName == "Name" && string.IsNullOrEmpty(Name))
{
return "Name should not be empty!"
}
return string.Empty
}
}
}
D. public class Product
{
private string _name
public string Name
{
get { return _name
}
set
{
if (string.IsNullOrEmpty(value))
throw new ValidationException("Name should not be empty!")
_name = value
}
}
}
Answer: C

Microsoft   070-506   certification 070-506   070-506   070-506
18.You are developing a ticketing application by using Silverlight 4. You have a listbox named lstTickets
that contains a list of the tickets. The page contains a button that allows the user to print the tickets. The
PrintView UserControl binds to the type in lstTickets and is designed to fit a standard sheet of paper.
You add the following code segment to the button event handler. (Line numbers are included for
reference only.)
01 var doc = new PrintDocument()
02 var view = new PrintView()
03 doc.PrintPage += (s, args) =>
04 {
05 var ppc = doc.PrintedPageCount
06 if (ppc < lstTickets.Items.Count)
07 {
08 var data = lstTickets.Items[ppc]
09 view.DataContext = data
10 args.PageVisual = view
11
12
13 }
14 }
15 doc.Print("tickets")
You need to use the Silverlight printing API to print each ticket on its own page. You also need to ensure
that all tickets in the listbox are printed.
Which code segment should you insert at lines 11 and 12?
A. if (args.HasMorePages == false)
return
B. if (args.HasMorePages == true)
return
C. if (doc.PrintedPageCount < this.lstTickets.Items.Count 1)
args.HasMorePages = true
D. if (ppc == this.lstTickets.Items.Count 1)
doc.EndPrint += (o, p) => { return
}
Answer: C

Microsoft examen   070-506 examen   070-506 examen   070-506   070-506 examen
19.You are developing an outofbrowser
application by using Silverlight 4.
The main page of the application contains the following code segment.
public MainPage()
{
InitializeComponent()
NetworkChange.NetworkAddressChanged += (s, e) => CheckNetworkStatusAndRaiseToast()
CheckNetworkStatusAndRaiseToast()
}
You need to ensure that the application will raise a toast notification when network connectivity changes.
Which two actions should you perform in the CheckNetworkStatusAndRaiseToast method? (Each correct
answer presents part of the solution. Choose two.)
A. Verify that App.Current.IsRunningOutOfBrowser is true.
B. Verify that App.Current.IsRunningOutOfBrowser is false.
C. Verify that App.Current.HasElevatedPermissions is true.
D. Verify that App.Current.HasElevatedPermissions is false.
E. Examine NetworkInterface.GetIsNetworkAvailable().
F. Call App.Current.CheckAndDownloadUpdateAsync() in a try/catch block.
Answer: A, E

certification Microsoft   070-506 examen   certification 070-506   070-506 examen   070-506 examen

Les produits de Pass4Test sont préparés pour le test Certification Microsoft 070-506, y compris les formations et les informations ciblées au test Microsoft 070-506. D'ailleurs, la Q&A de Pass4Test qui est impressionnée par la grande couverture des questions et la haute précision des réponses vous permet à réussir le test avec une haute note.

Le plus récent matériel de formation Microsoft 77-883

77-883 est un test de Microsoft Certification, donc réussir 77-883 est le premier pas à mettre le pied sur la Certifiction Microsoft. Ça peut expliquer certiainement pourquoi le test Microsoft 77-883 devient de plus en plus chaud, et il y a de plus en plus de gens qui veulent participer le test 77-883. Au contraire, il n'y a que pas beaucoup de gens qui pourrait réussir ce test. Dans ce cas, si vous vous réfléchissez étudier avec une bonne Q&A?

Pass4Test est un site web qui vous donne plus de chances à passer le test de Certification Microsoft 77-883. Le résultat de recherche sortis par les experts de Pass4Test peut assurer que ce sera vous ensuite qui réussirez le test Microsoft 77-883. Choisissez Pass4Test, choisissez le succès. L'outil de se former de Pass4Test est bien efficace. Parmi les gens qui ont déjà passé le test, la majorité a préparé le test avec la Q&A de Pass4Test.

Est-ce que vous vous souciez encore de réussir le test Microsoft 77-883? Est-ce que vous attendez plus le guide de formation plus nouveaux? Le guide de formation vient de lancer par Pass4Test peut vous donner la solution. Vous pouvez télécharger la partie de guide gratuite pour prendre un essai, et vous allez découvrir que le test n'est pas aussi dur que l'imaginer. Pass4Test vous permet à réussir 100% le test. Votre argent sera tout rendu si vous échouez le test.

Pass4Test est un site de vous ramener au succès. Pass4Test peut vous aider à promouvoir les connaissances essentielles pour le test Microsoft 77-883 et passer le test à la première fois.

Code d'Examen: 77-883
Nom d'Examen: Microsoft (Microsoft Office PowerPoint 2010 Practice Test)
Questions et réponses: 172 Q&As

La population de la Certification Microsoft 77-883 est très claire dans l'Industrie IT. Pass4Test se contribue à vous aider à réussir le test, de plus, un an de la mise à jour gratuite pendant est gratuite pour vous. Pass4Test sera le catalyseur de la réalisation de votre rêve. Pour le succès demain, Pass4Test est votre von choix. Vous serez le prochain talent de l'Indutrie IT sous l'aide de Pass4Test.

77-883 Démo gratuit à télécharger: http://www.pass4test.fr/77-883.html

Pass4Test est un site professionnel qui répondre les demandes de beaucoup clients. Les candidats qui ont déjà passer leurs premiers test Certification IT ont devenus les suivis de Pass4Test. Grâce à la bonne qualité des documentations, Pass4Test peut aider tous candidats à réussir le test Microsoft 77-883.