2013年10月1日星期二

Certification Microsoft de téléchargement gratuit pratique d'examen 70-502, questions et réponses

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

Il y a nombreux façons à vous aider à réussir le test Microsoft 70-502. 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 70-502 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 70-502 peut bien assuré. Nous allons mettre le jour successivement juste pour répondre les demandes de tous candidats.

Code d'Examen: 70-502
Nom d'Examen: Microsoft (TS: Microsoft .NET Framework 3.5 – Windows Presentation Foundation)
Questions et réponses: 128 Q&As

Certification Microsoft 70-502 est un des tests plus importants dans le système de Certification Microsoft. Les experts de Pass4Test profitent leurs expériences et connaissances professionnelles à rechercher les guides d'étude à aider les candidats du test Microsoft 70-502 à réussir le test. Les Q&As offertes par Pass4Test vous assurent 100% à passer le test. D'ailleurs, la mise à jour pendant un an est gratuite.

Si vous voulez se prouver une compétition et s'enraciner le statut dans l'industrie IT à travers de test Certification Microsoft 70-502, c'est obligatoire que vous devez avior les connaissances professionnelles. Mais il demande pas mal de travaux à passer le test Certification Microsoft 70-502. Peut-être d'obtenir le Certificat Microsoft 70-502 peut promouvoir le tremplin vers l'Industrie IT, mais vous n'avez pas besoin de travailler autant dur à préparer le test. Vous avez un autre choix à faire toutes les choses plus facile : prendre le produit de Pass4Test comme vos matériaux avec qui vous vous pratiquez avant le test réel. La Q&A de Pass4Test est recherchée particulièrement pour le test IT.

Si vous voulez ne se soucier plus à passer le test Microsoft 70-502, donc vous devez prendre la Q&A de Pass4Test comme le guide d'étude pendant la préparation de test Microsoft 70-502. C'est une bonne affaire parce que un petit invertissement peut vous rendre beaucoup. Utiliser la Q&A Microsoft 70-502 offerte par Pass4Test peut vous assurer à réussir le test 100%. Pass4Test a toujours une bonne réputation dans l'Industrie IT.

Selon les feedbacks offerts par les candidats, c'est facile à réussir le test Microsoft 70-502 avec l'aide de la Q&A de Pass4Test qui est recherché particulièrement pour le test Certification Microsoft 70-502. C'est une bonne preuve que notre produit est bien effective. Le produit de Pass4Test peut vous aider à renforcer les connaissances demandées par le test Microsoft 70-502, vous aurez une meilleure préparation avec l'aide de Pass4Test.

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

NO.1 5.
You add a CommandBinding element to the Window element. The command has a keyboard gesture
CTRL+H. The Window contains the following MenuItem control.
<MenuItem Header="Highlight Content"
Command="local:CustomCommands.Highlight" />
You need to ensure that the MenuItem control is disabled and the command is not executable when the
focus shifts to a TextBox control that does not contain any text.
What should you do?
A. Set the IsEnabled property for the MenuItem control in the GotFocus event handler for the TextBox
controls.
B. Set the CanExecute property of the command to Highlight_CanExecute.
Add the following method to the code-behind file for the window.
Private Sub Highlight_CanExecute(ByVal sender As Object, _
ByVal e As CanExecuteRoutedEventArgs)
Dim txtBox As TextBox = CType(sender, TextBox)
e.CanExecute = (txtBox.Text.Length > 0)
End Sub
C. Set the CanExecute property of the command to Highlight_CanExecute.
Add the following method to the code-behind file for the window.
Private Sub Highlight_CanExecute(ByVal sender As Object, _
ByVal e As CanExecuteRoutedEventArgs)
Dim txtBox As TextBox
txtBox = CType(e.Source, TextBox)
e.CanExecute = (txtBox.Text.Length > 0)
End Sub
D. Set the CanExecute property of the command to Highlight_CanExecute.
Add the following method to the code-behind file for the window.
Private Sub Highlight_CanExecute(ByVal sender As Object, _
?ByVal e As CanExecuteRoutedEventArgs)
Dim Menu As MenuItem = CType(e.Source, MenuItem)
Dim txtBox As TextBox = CType(Menu.CommandTarget, TextBox)
Menu.IsEnabled = (txtBox.Text.Length > 0)
End Sub
Answer: C

Microsoft   certification 70-502   70-502
3. You create a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application is named EnterpriseApplication.exe.
You add the WindowSize parameter and the WindowPosition parameter to the Settings.settings file by
using the designer at the User Scope Level. The dimensions and position of the window are read from the
user configuration file.
The application must retain the original window size and position for each user who executes the
application.
You need to ensure that the following requirements are met:
?The window dimensions for each user are saved in the user configuration file.
?The user settings persist when a user exits the application.
Which configuration setting should you use?
A. private void OnClosing(object sender,
System.ComponentModel.CancelEventArgs e){
Settings.Default.WindowPosition = new Point (this.Left,
this.Top);
Settings.Default.WindowSize = new Size (this.Width,
this.Height);
Settings.Default.Save();
B. private void OnClosing(object sender,
System.ComponentModel.CancelEventArgs e){
RegistryKey appKey =
Registry.CurrentUser.CreateSubKey("Software\\EnterpriseApplication");
RegistryKey settingsKey = appKey.CreateSubKey("WindowSettings");
RegistryKey windowPositionKey =
settingsKey.CreateSubKey("WindowPosition");
RegistryKey windowSizeKey = settingsKey.CreateSubKey("WindowSize");
windowPositionKey.SetValue("X", this.Left);
windowPositionKey.SetValue("Y", this.Top);
windowSizeKey.SetValue("Width", this.Width);
windowSizeKey.SetValue("Height", this.Height);
C. private void OnClosing(object sender,
System.ComponentModel.CancelEventArgs e){
XmlDocument doc = new XmlDocument();
doc.Load("EnterpriseApplication.exe.config");
XmlNode nodePosition =
doc.SelectSingleNode("//setting[@name=\'WindowPosition\']");
nodePosition.ChildNodes[0].InnerText = String.Format("{0},{1}",
this.Left, this.Top);
XmlNode nodeSize =
doc.SelectSingleNode("//setting[@name=\'WindowSize\']");
nodeSize.ChildNodes[0].InnerText = String.Format("{0},{1}",
this.Width, this.Height);
doc.Save("UserConfigDistractor2.exe.config");
D. private void Window_Closing(object sender,
System.ComponentModel.CancelEventArgs e){
StreamWriter sw =
new StreamWriter("EnterpriseApplication.exe.config", true);
sw.WriteLine("<EnterpriseApplication.Properties.Settings>");
sw.WriteLine("<setting name=
\"WindowSize\" serializeAs=\"String\">");
sw.WriteLine(String.Format("<value>{0},{1}</value>",
this.Width, this.Height));
sw.WriteLine("</setting>");
sw.WriteLine("<setting name=
\"WindowPosition\" serializeAs=\"String\">");
sw.WriteLine(String.Format("<value>{0},{1}</value>", this.Left,
this.Top));
sw.WriteLine("</setting>");
sw.WriteLine("</UserConfigProblem.Properties.Settings>");
sw.Close();
Answer: A

certification Microsoft   70-502   70-502 examen

NO.2 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application defines a BrowserWindow class. Each instance of the BrowserWindow class allows the
user to browse a Web site in a separate window. When a new browser window is opened, the user is
redirected to a predefined URL.
You write the following code segment.
01 private void OpenNewWindow(object sender, RoutedEventArgs e)
02 {
03 Thread newWindowThread = new Thread(new
ThreadStart(NewThreadProc));
04
05 newWindowThread.Start();
06 }
07 private void NewThreadProc()
08 {
09 10 ?}
You need to ensure that the following requirements are met:
?The main window of the application is not blocked when an additional browser window is created.
?The application completes execution when the main window of the application is closed.
What should you do?
A. Insert the following code segment at line 04.
newWindowThread.SetApartmentState(ApartmentState.STA);
newWindowThread.IsBackground = true;
Insert the following code segment at line 09.
BrowserWindow newWindow = new BrowserWindow();
newWindow.Show();
Application app = new Application();
app.Run(newWindow);
B. Insert the following code segment at line 04.
newWindowThread.IsBackground = true;
Insert the following code segment at line 09.
newWindowThread.SetApartmentState(ApartmentState.STA);
BrowserWindow newWindow = new BrowserWindow();
newWindow.Show();
Application app = new Application();
app.Run(newWindow);
C. Insert the following code segment at line 04.
newWindowThread.SetApartmentState(ApartmentState.STA);
newWindowThread.IsBackground = false;
Insert the following code segment at line 09.
BrowserWindow newWindow = new BrowserWindow();
System.Windows.Threading.Dispatcher.Run();
newWindow.Show();
D. Insert the following code segment at line 04.
newWindowThread.SetApartmentState(ApartmentState.STA);
newWindowThread.IsBackground = true;
Insert the following code segment at line 09.
BrowserWindow newWindow = new BrowserWindow();
newWindow.Show();
System.Windows.Threading.Dispatcher.Run();
Answer: D

Microsoft examen   70-502 examen   certification 70-502   70-502   certification 70-502

NO.3 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework

NO.4 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application defines a BrowserWindow class. Each instance of the BrowserWindow class allows the
user to browse a Web site in a separate window. When a new browser window is opened, the user is
redirected to a predefined URL.
You write the following code segment.
01 Private Sub OpenNewWindow(ByVal sender As Object, _
02 ?ByVal e As RoutedEventArgs)
03 Dim newWindowThread As New Thread(New _
04 ThreadStart(AddressOf NewThreadProc))
05
06 newWindowThread.Start()
07 End Sub
08 Private Sub NewThreadProc()
09 10 End Sub
You need to ensure that the following requirements are met:
?The main window of the application is not blocked when an additional browser window is created.
?The application completes execution when the main window of the application is closed.
What should you do?
A. Insert the following code segment at line 05.
newWindowThread.SetApartmentState(ApartmentState.STA)
newWindowThread.IsBackground = True
Insert the following code segment at line 09.
Dim newWindow As New BrowserWindow()
newWindow.Show()
Dim app As New Application()
app.Run(newWindow)
B. Insert the following code segment at line 05.
newWindowThread.IsBackground = True
Insert the following code segment at line 09.
newWindowThread.SetApartmentState(ApartmentState.STA)
Dim newWindow As New BrowserWindow()
newWindow.Show()
Dim app As New Application()
app.Run(newWindow)
C. Insert the following code segment at line 05.
newWindowThread.SetApartmentState(ApartmentState.STA)
newWindowThread.IsBackground = False
Insert the following code segment at line 09.
Dim newWindow As New BrowserWindow()
System.Windows.Threading.Dispatcher.Run()
newWindow.Show()
D. Insert the following code segment at line 05.
newWindowThread.SetApartmentState(ApartmentState.STA)
newWindowThread.IsBackground = True
Insert the following code segment at line 09.
Dim newWindow As New BrowserWindow()
newWindow.Show()
System.Windows.Threading.Dispatcher.Run()
Answer: D 7. You are creating a Windows Presentation Foundation application by using Microsoft .NET
Framework 3.5.
The application uses several asynchronous operations to calculate data that is displayed to the user. An
operation named tommorowsWeather performs calculations that will be used by other operations.
You need to ensure that tommorowsWeather runs at the highest possible priority.
Which code segment should you use?
A. tomorrowsWeather.Dispatcher.BeginInvoke(
System.Windows.Threading.DispatcherPriority.Normal,
new OneArgDelegate(UpdateUserInterface),
weather);
B. tomorrowsWeather.Dispatcher.BeginInvoke(
System.Windows.Threading.DispatcherPriority.DataBind,
new OneArgDelegate(UpdateUserInterface),
weather);
C. tomorrowsWeather.Dispatcher.BeginInvoke(
System.Windows.Threading.DispatcherPriority.Send,
new OneArgDelegate(UpdateUserInterface),
weather);
D. tomorrowsWeather.Dispatcher.BeginInvoke(
System.Windows.Threading.DispatcherPriority.Render,
new OneArgDelegate(UpdateUserInterface),
weather);
Answer: C 8. You are creating a Windows Presentation Foundation application by using Microsoft .NET
Framework 3.5.
The application uses several asynchronous operations to calculate data that is displayed to the user. An
operation named tommorowsWeather performs calculations that will be used by other operations.
You need to ensure that tommorowsWeather runs at the highest possible priority.
Which code segment should you use?
A. tomorrowsWeather.Dispatcher.BeginInvoke( _
System.Windows.Threading.DispatcherPriority.Normal, _
New OneArgDelegate(AddressOf UpdateUserInterface), weather)
B. tomorrowsWeather.Dispatcher.BeginInvoke( _
?System.Windows.Threading.DispatcherPriority.DataBind, _
?New OneArgDelegate(AddressOf UpdateUserInterface), weather)
C. tomorrowsWeather.Dispatcher.BeginInvoke( _
System.Windows.Threading.DispatcherPriority.Send, _
New OneArgDelegate(AddressOf UpdateUserInterface), weather)
D. tomorrowsWeather.Dispatcher.BeginInvoke( _
System.Windows.Threading.DispatcherPriority.Render, _
New OneArgDelegate(AddressOf UpdateUserInterface), weather)
Answer: C 9. 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.
What should you do?
A. Use a ListBox control defined in the following manner.
<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. Use a ListBox control defined in the following manner.
<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. Use a ListBox control defined in the following manner.
<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. Use a ListBox control defined in the following manner.
<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

certification Microsoft   70-502 examen   70-502 examen   70-502   70-502
10. 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.
What should you do?
A. Use a ListBox control defined in the following manner.
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Columns="2"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Use the following VB.net code to associate the array of strings to the ListBox control.
myList.ItemsSource = arrayOfString
B. Use a ListBox control defined in the following manner.
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Use the following vb.net code to associate the array of strings to the ListBox control.
myList.ItemsSource = arrayOfString
C. Use a ListBox control defined in the following manner.
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Use the following vb.net code to associate the array of strings to the ListBox control.
myListView.ItemsSource = arrayOfString
D. Use a ListBox control defined in the following manner.
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
</Grid>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Use the following vb.net code to associate the array of strings to the ListBox control.
myList.ItemsSource = arrayOfString
Answer: A

Microsoft examen   70-502   certification 70-502
11. You create a form by using Windows Presentation Foundation and Microsoft .NET Framework 3.5.
The form contains a status bar.
You plan to add a ProgressBar control to the status bar.
You need to ensure that the ProgressBar control displays the progress of a task for which you cannot
predict the completion time.
Which code segment should you use?
A. progbar.IsIndeterminate = true;
B. progbar.IsIndeterminate = false;
C. progbar.HasAnimatedProperties = true;
D. progbar.HasAnimatedProperties = false;
Answer: A

Microsoft examen   70-502   certification 70-502   70-502
12. You create a form by using Windows Presentation Foundation and Microsoft .NET Framework 3.5.
The form contains a status bar.
You plan to add a ProgressBar control to the status bar.
You need to ensure that the ProgressBar control displays the progress of a task for which you cannot
predict the completion time.
Which code segment should you use?
A. progbar.IsIndeterminate = True
B. progbar.IsIndeterminate = False
C. progbar.HasAnimatedProperties = True
D. progbar.HasAnimatedProperties = False
Answer: A

Microsoft   certification 70-502   70-502   70-502   70-502 examen
13. You are converting a Windows Forms application to a Windows Presentation Foundation (WPF)
application. You use Microsoft .NET Framework 3.5 to create the WPF application.
The WPF application will reuse 30 forms of the Windows Forms application.
The WPF application contains the following class definition.
public class OwnerWindow :
System.Windows.Forms.IWin32Window
private IntPtr handle;
public IntPtr Handle
get { return handle; }
set { handle=value; }
}
}
You write the following code segment in the WPF application. (Line numbers are included for reference
only.)
01 public DialogResult LaunchWindowsFormsDialog(
02 ?Form dialog, Window wpfParent)
03 {
04 WindowInteropHelper helper=new
05 ?WindowInteropHelper(wpfParent);
06 OwnerWindow owner=new OwnerWindow();
07
08 }
You need to ensure that the application can launch the reusable forms as modal dialogs.
Which code segment should you insert at line 07?
A.owner.Handle = helper.Owner;
return dialog.ShowDialog(owner);
B. owner.Handle = helper.Handle;
return dialog.ShowDialog(owner);
C. owner.Handle = helper.Owner;
bool? result = wpfParent.ShowDialog();
if (result.HasValue)
return result.Value ? System.Windows.Forms.DialogResult.OK :
System.Windows.Forms.DialogResult.Cancel;
else
return System.Windows.Forms.DialogResult.Cancel;
D. owner.Handle = helper.Handle;
bool? result = wpfParent.ShowDialog();
if (result.HasValue)
return result.Value ? System.Windows.Forms.DialogResult.OK :
System.Windows.Forms.DialogResult.Cancel;
else
return System.Windows.Forms.DialogResult.Cancel;
Answer: B

Microsoft   certification 70-502   70-502 examen   certification 70-502
14. You are converting a Windows Forms application to a Windows Presentation Foundation (WPF)
application. You use Microsoft .NET Framework 3.5 to create the WPF application.
The WPF application will reuse 30 forms of the Windows Forms application.
The WPF application contains the following class definition.
Public Class OwnerWindow
Implements System.Windows.Forms.IWin32Window
Private handle_Renamed As IntPtr
Public Property Handle() As IntPtr _
Implements System.Windows.Forms.IWin32Window.Handle
Get
Return handle_Renamed
End Get
Set(ByVal value As IntPtr)
handle_Renamed = value
End Set
End Property
End Class
You write the following code segment in the WPF application. (Line numbers are included for reference
only.)
01 Public Function LaunchWindowsFormsDialog(ByVal dialog As _
02 ?System.Windows.Forms.Form, ByVal wpfParent As Window) As _
03 ?System.Windows.Forms.DialogResult
04 Dim helper As New
05 System.Windows.Interop.WindowInteropHelper(wpfParent)
07 Dim owner As New OwnerWindow()
08
09 End Function
You need to ensure that the application can launch the reusable forms as modal dialogs.
Which code segment should you insert at line 08?
Aowner.Handle = helper.Owner
Dim db As New System.Windows.Forms.DialogResult()
Return db
B. owner.Handle = helper.Owner
Return dialog.ShowDialog(owner)
C. owner.Handle = helper.Owner
Dim result As Nullable(Of Boolean) = wpfParent.ShowDialog()
If result.HasValue Then
eturn If(result.Value, System.Windows.Forms.DialogResult.OK, _
?System.Windows.Forms.DialogResult.Cancel)
Else
Return System.Windows.Forms.DialogResult.Cancel
End If
D. owner.Handle = helper.Handle
Dim result As Nullable(Of Boolean) = wpfParent.ShowDialog()
If result.HasValue Then
Return If(result.Value, System.Windows.Forms.DialogResult.OK, _
?System.Windows.Forms.DialogResult.Cancel)
Else
Return System.Windows.Forms.DialogResult.Cancel
End If
Answer: B 15. You are creating a Windows Presentation Foundation (WPF) application by using
Microsoft .NET Framework 3.5.
The WPF application has a Grid control named rootGrid.
You write the following XAML code fragment.
<Window x:Class="MCP.HostingWinFormsControls"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/
presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="HostingWinFormsControls"
Loaded="Window_Loaded">
<Grid x:Name="rootGrid">
</Grid>
</Window>
You need to ensure that each time the WPF window opens, a Windows Forms control named
MyCustomFormsControl is added to rootGrid.
Which code segment should you use?
A.private void Window_Loaded(object sender, RoutedEventArgs e)
WindowsFormsHost host = new WindowsFormsHost();
MyCustomFormsControl formsControl = new MyCustomFormsControl();
host.Child = formsControl;
rootGrid.Children.Add(host);
B. private void Window_Loaded(object sender, RoutedEventArgs e)
ElementHost host = new ElementHost();
MyCustomFormsControl formsControl=new MyCustomFormsControl();
host.Child=formsControl;
rootGrid.Children.Add(host);
C. private void Window_Loaded(object sender, RoutedEventArgs e)
MyCustomFormsControl formsControl=new MyCustomFormsControl();
formsControl.CreateControl();
HwndSource source = HwndSource.FromHwnd(formsControl.Handle);
UIElement formsElement = source.RootVisual as UIElement;
rootGrid.Children.Add(formsElement);
D. private void Window_Loaded(object sender, RoutedEventArgs e)
MyCustomFormsControl formsControl=new MyCustomFormsControl();
formsControl.CreateControl();
HwndTarget target = new HwndTarget(formsControl.Handle);
UIElement formsElement = target.RootVisual as UIElement;
rootGrid.Children.Add(formsElement);
Answer: A

Microsoft examen   70-502 examen   70-502 examen
16.You are creating a Windows Presentation Foundation (WPF) application by using Microsoft .NET
Framework 3.5.
The WPF application has a Grid control named rootGrid.
You write the following XAML code fragment.
<Window x:Class="MCP.HostingWinFormsControls"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/
presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="HostingWinFormsControls"
Loaded="Window_Loaded">
<Grid x:Name="rootGrid">
</Grid>
</Window>
You need to ensure that each time the WPF window opens, a Windows Forms control named
MyCustomFormsControl is added to rootGrid.
Which code segment should you use?
APrivate Sub Window_Loaded(ByVal sender As Object, ByVal e As _
RoutedEventArgs)
Dim host As New WindowsFormsHost()
Dim formsControl As New MyCustomFormsControl()
host.Child = formsControl;
rootGrid.Children.Add(host);
End Sub
B. Private Sub Window_Loaded(ByVal sender As Object, ByVal e As _
RoutedEventArgs)
Dim host As New ElementHost()
Dim formsControl As New MyCustomFormsControl()
host.Child = formsControl;
rootGrid.Children.Add(host);
End Sub
C. Private Sub Window_Loaded(ByVal sender As Object, ByVal e As _
RoutedEventArgs)
Dim formsControl As New MyCustomFormsControl()
formsControl.CreateControl()
Dim target As New HwndTarget(formsControl.Handle)
Dim formsElement As UIElement = TryCast(target.RootVisual, _
UIElement)
rootGrid.Children.Add(formsElement)
End Sub
D. Private Sub Window_Loaded(ByVal sender As Object, ByVal e As _
RoutedEventArgs)
Dim formsControl As New MyCustomFormsControl()
formsControl.CreateControl()
Dim source As HwndSource = HwndSource.FromHwnd(formsControl.Handle)
Dim formsElement As UIElement = TryCast(source.RootVisual, _
UIElement)
rootGrid.Children.Add(formsElement)
End Sub
Answer: A

Microsoft   70-502   certification 70-502   70-502
17. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You include functionality in the application to troubleshoot the window behavior.
You need to display a list of UI elements at a position in the window that is decided by the mouse click.
You also need to ensure that the list of elements is displayed in a message box.
Which code segment should you include in the code-behind file?
Astring controlsToDisplay = string.Empty;
private void Window_MouseDown(object sender, MouseButtonEventArgs e) {
controlsToDisplay = ((UIElement)sender).ToString();
MessageBox.Show(controlsToDisplay);
B. string controlsToDisplay = string.Empty;
private void Window_MouseDown(object sender, MouseButtonEventArgs e) {
for (int i = 0; i < this.VisualChildrenCount; i++) {
controlsToDisplay + = this.GetVisualChild(i).ToString() + "\r\n";
MessageBox.Show(controlsToDisplay);
C. string controlsToDisplay = string.Empty;
private void Window_MouseDown (object sender, MouseButtonEventArgs e)
Visual myVisual;
for (int i = 0; i < VisualTreeHelper.GetChildrenCount(sender as
Visual); i++) {
myVisual = (Visual)VisualTreeHelper.GetChild(sender as Visual, i);
controlsToDisplay += myVisual.GetType().ToString() + "\r\n";
MessageBox.Show(controlsToDisplay);
D. string controlsToDisplay = string.Empty;
private void Window_MouseDown(object sender, MouseButtonEventArgs e) {
Point pt = e.GetPosition(this);
VisualTreeHelper.HitTest(this, null, new
HitTestResultCallback(HitTestCallback), new
PointHitTestParameters(pt));
MessageBox.Show(controlsToDisplay);
private HitTestResultBehavior HitTestCallback(HitTestResult result) {
controlsToDisplay += result.VisualHit.GetType().ToString() + "\r\n";
return HitTestResultBehavior.Continue;
Answer: D

Microsoft   certification 70-502   70-502 examen   70-502   70-502
18. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You include functionality in the application to troubleshoot the window behavior.
You need to display a list of UI elements at a position in the window that is decided by the mouse click.
You also need to ensure that the list of elements is displayed in a message box.
Which code segment should you include in the code-behind file?
A.Dim controlsToDisplay As String = String.Empty
Private Sub Window_MouseDown(ByVal sender As Object, _
ByVal e As MouseButtonEventArgs)
controlsToDisplay = CType(sender, UIElement).ToString()
MessageBox.Show(controlsToDisplay)
End Sub
B. Dim controlsToDisplay As String = String.Empty
Private Sub Window_MouseDown(ByVal sender As Object, _
ByVal e As MouseButtonEventArgs)
For i = 0 To VisualChildrenCount - 1
controlsToDisplay += GetVisualChild(i).ToString() + "\r\n"
Next
MessageBox.Show(controlsToDisplay)
End Sub
C. Dim controlsToDisplay As String = String.Empty
Private Sub Window_MouseDown(ByVal sender As Object, _
ByVal e As MouseButtonEventArgs)
Dim myVisual As Visual()
For i = 0 To VisualTreeHelper.GetChildrenCount(CType(sender, _
Visual)) - 1
myVisual(i) = CType(VisualTreeHelper.GetChild(CType(sender, _
Visual), i), Visual)
controlsToDisplay += myVisual.GetType().ToString() + "\r\n"
Next
MessageBox.Show(controlsToDisplay)
End Sub
D. Dim controlsToDisplay As String = String.Empty
Private Sub Window_MouseDown(ByVal sender As Object, _
ByVal e As MouseButtonEventArgs)
Dim pt As Point = e.GetPosition(Me)
VisualTreeHelper.HitTest(Me, Nothing, _
New HitTestResultCallback(AddressOf HitTestCallback), _
New PointHitTestParameters(pt))
MessageBox.Show(controlsToDisplay)
End Sub
Private Function HitTestCallback(ByVal result As HitTestResult) As _
HitTestResultBehavior
controlsToDisplay += result.VisualHit.GetType().ToString() + "\r\n"
Return HitTestResultBehavior.Continue
End Function
Answer: D

Microsoft examen   70-502 examen   certification 70-502   70-502
19. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You write the following code segment (Line numbers are included for reference only).
01 Dim content As Object
02 Dim fileName As String = "theFile"
03 Using xamlFile As New FileStream(fileName & ".xaml", _
04 FileMode.Open, FileAccess.Read)
06 content = TryCast(XamlReader.Load(xamlFile), Object)
07 End Using
08 Using container As Package = Package.Open(fileName & ".xps", _
09 FileMode.Create)1011 End Using
You need to ensure that the following requirements are met:
The application converts an existing flow document into an XPS document.
The XPS document is generated by using the flow document format.
The XPS document has the minimum possible size.
Which code segment should you insert at line 10?
A
Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As XpsSerializationManager = New _
System.Windows.Xps.XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
rsm.SaveAsXaml(paginator)
End Using
B. Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
rsm.Commit()
End Using
C. Using xpsDoc As New XpsDocument(container, _
CompressionOption.Maximum)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
Dim paginator As DocumentPaginator = (CType(content, _
IDocumentPaginatorSource)).DocumentPaginator
rsm.SaveAsXaml(paginator)
End Using
D. Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
Dim paginator As DocumentPaginator = (CType(content, _
IDocumentPaginatorSource)).DocumentPaginator
rsm.SaveAsXaml(paginator)
End Using
Answer: C

Microsoft   70-502 examen   70-502 examen
20. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You write the following code segment (Line numbers are included for reference only).
01 Dim content As Object
02 Dim fileName As String = "theFile"
03 Using xamlFile As New FileStream(fileName & ".xaml", _
04 ?FileMode.Open, FileAccess.Read)
06 content = TryCast(XamlReader.Load(xamlFile), Object)
07 End Using
08 Using container As Package = Package.Open(fileName & ".xps", _
09 ?FileMode.Create)10 11 End Using
You need to ensure that the following requirements are met:
The application converts an existing flow document into an XPS document.
The XPS document is generated by using the flow document format.
The XPS document has the minimum possible size.
Which code segment should you insert at line 10?
A.Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As XpsSerializationManager = New _
System.Windows.Xps.XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
rsm.SaveAsXaml(paginator)
End Using
B. Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
rsm.Commit()
End Using
C. Using xpsDoc As New XpsDocument(container, _
CompressionOption.Maximum)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
Dim paginator As DocumentPaginator = (CType(content, _
IDocumentPaginatorSource)).DocumentPaginator
rsm.SaveAsXaml(paginator)
End Using
D. Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
Dim paginator As DocumentPaginator = (CType(content, _
IDocumentPaginatorSource)).DocumentPaginator
rsm.SaveAsXaml(paginator)
End Using
Answer: C

Microsoft   70-502 examen   certification 70-502
21. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application displays documents by using an instance of the FlowDocumentPageViewer class. The
instance is named fdpv. Users can highlight and annotate the content of the documents.
You need to ensure that annotations made to a document are saved and rendered when the document is
displayed again.
Which code segment should you use?
A.protected void OnTextInput(object sender, RoutedEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service == null) {
AnnotationStream = new FileStream("annotations.xml",
FileMode.Open, FileAccess.ReadWrite);
service = new AnnotationService(fdpv);
AnnotationStore store = new XmlStreamStore(AnnotationStream);
service.Enable(store);
}
}
private void OnClosing(object sender,
System.ComponentModel.CancelEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service != null && service.IsEnabled) {
service.Store.Flush();
service.Disable();
AnnotationStream.Close();
}
}
B. protected void OnLoaded(object sender, RoutedEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service == null) {
AnnotationStream = new FileStream("annotations.xml",
FileMode.Open, FileAccess.ReadWrite);
service = new AnnotationService(fdpv);
}
}
private void OnClosing(object sender,
?System.ComponentModel.CancelEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service != null && service.IsEnabled) {
service.Store.Flush();
service.Disable();
AnnotationStream.Close();
}
}
C. protected void OnLoaded(object sender, RoutedEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service == null) {
AnnotationStream = new FileStream("annotations.xml",
FileMode.Open, FileAccess.ReadWrite);
service = new AnnotationService(fdpv);
AnnotationStore store = new XmlStreamStore(AnnotationStream);
service.Enable(store);
}
}
private void OnClosing(object sender,
System.ComponentModel.CancelEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service != null && service.IsEnabled) {
service.Store.Flush();
service.Disable();
AnnotationStream.Close();
}
}
D. protected void OnLoaded(object sender, RoutedEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service == null) {
AnnotationStream = new FileStream("annotations.xml",
FileMode.Open, FileAccess.ReadWrite);
service = new AnnotationService(fdpv);
AnnotationStore store = new XmlStreamStore(AnnotationStream);
service.Enable(store);
}
}
private void OnClosing(object sender,
System.ComponentModel.CancelEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service != null && service.IsEnabled) {
service.Disable();
AnnotationStream.Close();
}
}
Answer: C

Microsoft   certification 70-502   certification 70-502   70-502 examen   70-502
22. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application will display documents by using an instance of the FlowDocumentPageViewer class. The
instance is named fdpv. Users can highlight and annotate the content of the documents.
You need to ensure that annotations made to a document are saved and rendered when the document is
displayed again.
Which code segment should you use?
A. Protected Sub OnTextInput(ByVal sender As Object, _
ByVal e As RoutedEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If service Is Nothing Then
AnnotationStream = New FileStream("annotations.xml", _
FileMode.Open, FileAccess.ReadWrite)
service = New AnnotationService(fdpv)
Dim store As AnnotationStore = _
New XmlStreamStore(AnnotationStream)
service.Enable(store)
End If
End Sub
Private Sub OnClosing(ByVal sender As Object, _
ByVal e As System.ComponentModel.CancelEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If Not service Is Nothing AndAlso service.IsEnabled Then
service.Store.Flush()
srvice.Disable()
AnnotationStream.Close()
End If
End Sub
B. Protected Sub OnLoaded(ByVal sender As Object, _
ByVal e As RoutedEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If service Is Nothing Then
AnnotationStream = New FileStream("annotations.xml", _
FileMode.Open, FileAccess.ReadWrite)
service = New AnnotationService(fdpv)
End If
End Sub
Private Sub OnClosing(ByVal sender As Object, _
ByVal e As System.ComponentModel.CancelEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If Not service Is Nothing AndAlso service.IsEnabled Then
service.Store.Flush()
service.Disable()
AnnotationStream.Close()
End If
End Sub
C. Protected Sub OnLoaded(ByVal sender As Object, _
ByVal e As RoutedEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If service Is Nothing Then
AnnotationStream = New FileStream("annotations.xml", _
FileMode.Open, FileAccess.ReadWrite)
service = New AnnotationService(fdpv)
Dim store As AnnotationStore = New _
XmlStreamStore(AnnotationStream)
service.Enable(store)
End If
End Sub
Private Sub OnClosing(ByVal sender As Object, _
ByVal e As System.ComponentModel.CancelEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If Not service Is Nothing AndAlso service.IsEnabled Then
service.Store.Flush()
service.Disable()
AnnotationStream.Close()
End If
End Sub
D. Protected Sub OnLoaded(ByVal sender As Object, _
ByVal e As RoutedEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If service Is Nothing Then
AnnotationStream = New FileStream("annotations.xml", _
FileMode.Open, FileAccess.ReadWrite)
service = New AnnotationService(fdpv)
Dim store As AnnotationStore = New _
XmlStreamStore(AnnotationStream)
service.Enable(store)
End If
End Sub
Private Sub OnClosing(ByVal sender As Object, _
ByVal e As System.ComponentModel.CancelEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If Not service Is Nothing AndAlso service.IsEnabled Then
service.Disable()
AnnotationStream.Close()
End If
End Sub
Answer: C

Microsoft   certification 70-502   70-502   70-502   70-502
23. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You plan to use the application to preview video files.
You write the following XAML code fragment.
01 <Window
01 x:Class="myClass" xmlns=
01 "http://schemas.microsoft.com/winfx/2006/xaml/presentation"
01 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
01 Title="myWindow" Height="300" Width="300">
02 <StackPanel Background="Black">
03
04 <StackPanel HorizontalAlignment="Center"
04 Orientation="Horizontal">
05 ?<Button Name="btnPlay" Margin="10" Content="Play" />
06 </StackPanel>
07
08 </StackPanel>
09 </Window>
You need to ensure that the application plays only the first 10 seconds of a video that you want to preview.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Insert the following XAML fragment at line 03.
<MediaElement Name="myMediaElement" Stretch="Fill" />
B. Insert the following XAML fragment at line 03.
<MediaElement Name="myMediaElement"
Source="MediaFileSelected.wmv" Stretch="Fill" />
C. Create the following method in the code-behind file.
public void PlayMedia(object sender, RoutedEventArgs args) {
myMediaElement.Play();
}
D. Insert the following XAML fragment at line 07.
<StackPanel.Triggers>
<EventTrigger RoutedEvent="Button.Click" SourceName="btnPlay">
<EventTrigger.Actions>
<BeginStoryboard Name= "myBegin">
<Storyboard SlipBehavior="Slip">
<MediaTimeline Source="MediaFileSelected.wmv"
Storyboard.TargetName="myMediaElement"
BeginTime="0:0:0" Duration="0:0:10" />
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</StackPanel.Triggers>
E. Insert the following XAML fragment at line 07.
<StackPanel.Triggers>
<EventTrigger RoutedEvent="Button.Click" SourceName="btnPlay">
<EventTrigger.Actions>
<BeginStoryboard Name= "myBegin">
<Storyboard SlipBehavior="Slip">
<MediaTimeline
Storyboard.TargetName="myMediaElement"
BeginTime="0:0:0" Duration="0:0:10" />
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</StackPanel.Triggers>
Answer: A AND D

Microsoft   70-502 examen   70-502   70-502 examen
24. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You plan to use the application to preview video files.
You write the following XAML code fragment.
01 <Window
01 x:Class="myClass" xmlns=
01 "http://schemas.microsoft.com/winfx/2006/xaml/presentation"
01 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
01 Title="myWindow" Height="300" Width="300">
02 <StackPanel Background="Black">
03
04 <StackPanel HorizontalAlignment="Center"
04 Orientation="Horizontal">
05 ?<Button Name="btnPlay" Margin="10" Content="Play" />
06 </StackPanel>
07
08 </StackPanel>
09 </Window>
You need to ensure that the application plays only the first 10 seconds of a video that you want to preview.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Insert the following XAML fragment at line 03.
<MediaElement Name="myMediaElement" Stretch="Fill" />
B. Insert the following XAML fragment at line 03.
<MediaElement Name="myMediaElement"
Source="MediaFileSelected.wmv" Stretch="Fill" />
C. Create the following method in the code-behind file.
Public Sub PlayMedia(ByVal sender As Object, _
ByVal args As RoutedEventArgs)
myMediaElement.Play()
End Sub
D. Insert the following XAML fragment at line 07.
<StackPanel.Triggers>
<EventTrigger RoutedEvent="Button.Click" SourceName="btnPlay">
<EventTrigger.Actions>
<BeginStoryboard Name= "myBegin">
<Storyboard SlipBehavior="Slip">
<MediaTimeline Source="MediaFileSelected.wmv"
Storyboard.TargetName="myMediaElement"
BeginTime="0:0:0" Duration="0:0:10" />
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</StackPanel.Triggers>
E. Insert the following XAML fragment at line 07.
<StackPanel.Triggers>
<EventTrigger RoutedEvent="Button.Click" SourceName="btnPlay">
<EventTrigger.Actions>
<BeginStoryboard Name= "myBegin">
<Storyboard SlipBehavior="Slip">
<MediaTimeline
Storyboard.TargetName="myMediaElement"
BeginTime="0:0:0" Duration="0:0:10" />
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</StackPanel.Triggers>
Answer: A AND D

Microsoft   70-502 examen   70-502 examen   70-502   70-502   70-502
25. You are creating a Windows Presentation Foundation application.
You create a window for the application. The application contains an audio file named
AudioFileToPlay.wav.
You need to ensure that the audio file is played each time you click the client area of the window.
What should you do?
A. Add the following XAML line of code to the window.
<MediaElement Source="AudioFileToPlay.wav" />
B. Add the following code segment to the window constructor method in the code-behind file.
SoundPlayer player = new SoundPlayer();
player.SoundLocation = "AudioFileToPlay.wav";
player.Play();
C. Add the following code segment to the window MouseDown method in the code-behind file.
MediaPlayer player = new MediaPlayer();
player.SetValue(MediaElement.SourceProperty,new Uri("AudioFileToPlay.wav", UriKind.Relative));
player.Play();
D. Add the following XAML code fragment to the window.
<Window.Triggers>
<EventTrigger RoutedEvent="Window.MouseDown">
<EventTrigger.Actions>
<SoundPlayerAction Source="AudioFileToPlay.wav"/>
</EventTrigger.Actions>
</EventTrigger>
</Window.Triggers>
Answer: D

certification Microsoft   70-502   70-502 examen   70-502   70-502
26. You are creating a Windows Presentation Foundation application.
You create a window for the application. The application contains an audio file named
AudioFileToPlay.wav.
You need to ensure that the following requirements are met:
The audio file is played each time you click the client area of the window.
The window provides optimal performance when the audio file is being played.
What should you do?
A
Add the following XAML line of code to the window.
<MediaElement Source="AudioFileToPlay.wav" />
B. Add the following code segment to the window constructor method in the code-behind file.
Dim player As New SoundPlayer()
player.SoundLocation = "AudioFileToPlay.wav"
player.Play()
C. Add the following code segment to the window MouseDown method in the code-behind file.
Dim player As New MediaElement()
player.Source = New Uri("AudioFileToPlay.wav", UriKind.Relative)
player.LoadedBehavior = MediaState.Manual
player.Play()
D. Add the following XAML code fragment to the window.
<Window.Triggers>
<EventTrigger RoutedEvent="Window.MouseDown">
<EventTrigger.Actions>
<SoundPlayerAction Source="AudioFileToPlay.wav"/>
</EventTrigger.Actions>
</EventTrigger>
</Window.Triggers>
Answer: D

Microsoft   70-502   certification 70-502
27. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5. Your project contains a folder named Data.
You add an MP3 file named song.mp3 in the Data folder. You set the Build Action property of the MP3 file
to Resource.
You need to access the MP3 file from the application.
Which code segment should you use?
A. Uri uri = new Uri("/Data/song.mp3", UriKind.Relative);
StreamResourceInfo sri=Application.GetContentStream(uri);
Stream stream=sri.Stream;
B. Uri uri = new Uri("/Data/song.mp3", UriKind.Relative);
StreamResourceInfo sri=Application.LoadComponent(uri);
Stream stream=sri.Stream;
C. Uri uri = new Uri("/Data/song.mp3", UriKind.Relative);
StreamResourceInfo sri=Application.GetRemoteStream(uri);
Stream stream=sri.Stream;
D. Uri uri = new Uri("/Data/song.mp3", UriKind.Relative);
StreamResourceInfo sri=Application.GetResourceStream(uri);
Stream stream=sri.Stream;
Answer: D

Microsoft examen   70-502   70-502
28. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5. Your project contains a folder named Data.
You add a .MP3 file named song.mp3 in the Data folder. You set the Build Action property of the
application to Resource.
You need to access the .MP3 file from one of the application classes.
Which code segment should you use?
A. Dim uri As New Uri("/Data/song.mp3", UriKind.Relative)
Dim sri As StreamResourceInfo = Application.GetContentStream(uri)
Dim stream As Stream = sri.Stream
B. Dim uri As New Uri("/Data/song.mp3", UriKind.Relative)
Dim sri As StreamResourceInfo = Application.LoadComponent(uri)
Dim stream As Stream = sri.Stream
C. Dim uri As New Uri("/Data/song.mp3", UriKind.Relative)
Dim sri As StreamResourceInfo = Application.GetRemoteStream(uri)
Dim stream As Stream = sri.Stream
D. Dim uri As New Uri("/Data/song.mp3", UriKind.Relative)
Dim sri As StreamResourceInfo = Application.GetResourceStream(uri)
Dim stream As Stream = sri.Stream
Answer: D

Microsoft   70-502 examen   70-502 examen   70-502
29. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application has a window that programatically displays an image. The window contains a grid named
theGrid.
The window displays images in their actual size of 1024 pixels wide or larger. You want the images to be
200 pixels wide.
You write the following code segment. (Line numbers are included for reference only.)
01 Image theImage=new Image();
02 theImage.Width=200;
03 BitmapImage theBitmapImage=new BitmapImage();
04
05 theImage.Source=theBitmapImage;
06 theGrid.Children.Add(theImage);
You need to ensure that the application meets the following requirements:
The window uses the least amount of memory to display the image.
The image is not skewed.
Which code segment should you insert at line 04?
A. theBitmapImage.UriSource=new Uri(@"imageToDisplay.jpg");
theBitmapImage.DecodePixelWidth=200;
B. theBitmapImage.BeginInit();
theBitmapImage.UriSource=new Uri(@"imageToDisplay.jpg");
theBitmapImage.EndInit();
C. theBitmapImage.BeginInit();
theBitmapImage.UriSource=new Uri(@"imageToDisplay.jpg");
theBitmapImage.DecodePixelWidth=200;
theBitmapImage.EndInit();
D. theBitmapImage.BeginInit();
theBitmapImage.UriSource=new Uri(@"imageToDisplay.jpg");
theBitmapImage.DecodePixelWidth=200;
theBitmapImage.DecodePixelHeight=200;
theBitmapImage.EndInit();
Answer: C

certification Microsoft   70-502 examen   70-502   70-502 examen
30. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application has a window that programatically displays an image. The window contains a grid named
theGrid.
The window displays images in their actual size. You want the images to be 200 pixels wide. You write the
following code segment.
01 Dim theImage As New Image()
02 theImage.Width = 200
03 Dim theBitmapImage As New BitmapImage()
04
05 theImage.Source = theBitmapImage
06 theGrid.Children.Add(theImage)
You need to ensure that the application meets the following requirements:
The window uses the least amount of memory to display the image.
The image is not skewed.
Which code segment should you insert at line 04?
A. theBitmapImage.UriSource = New Uri("imageToDisplay.jpg")
theBitmapImage.DecodePixelWidth = 200
B. theBitmapImage.BeginInit()
theBitmapImage.UriSource = New Uri("imageToDisplay.jpg")
theBitmapImage.EndInit()
C. theBitmapImage.BeginInit()
theBitmapImage.UriSource = New Uri("imageToDisplay.jpg")
theBitmapImage.DecodePixelWidth = 200
theBitmapImage.EndInit()
D. theBitmapImage.BeginInit()
theBitmapImage.UriSource = New Uri("imageToDisplay.jpg")
theBitmapImage.EndInit()
theBitmapImage.DecodePixelWidth = 200
theBitmapImage.DecodePixelHeight = 200
Answer: C

Microsoft examen   70-502   certification 70-502   70-502

NO.5 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You add a CommandBinding element to the Window element. The command has a keyboard gesture
CTRL+H. The Window contains the following MenuItem control.
<MenuItem Header="Highlight Content"
Command="local:CustomCommands.Highlight" />
You need to ensure that the MenuItem control is disabled and the command is not executable when the
focus shifts to a TextBox control that does not contain any text.
What should you do?
A. Set the IsEnabled property for the MenuItem control in the GotFocus event handler for the TextBox
controls.
B. Set the CanExecute property of the command to Highlight_CanExecute.
Add the following method to the code-behind file for the window.
private void Highlight_CanExecute(object sender, CanExecuteEventArgs e) {
TextBox txtBox = sender as TextBox;
e.CanExecute = (txtBox.Text.Length > 0);
}
C. Set the CanExecute property of the command to Highlight_CanExecute.
Add the following method to the code behind file for the window.
private void Highlight_CanExecute(object sender, CanExecuteEventArgs e) {
TextBox txtBox = e.Source as TextBox;
e.CanExecute = (txtBox.Text.Length > 0);
}
D. Set the CanExecute property of the command to Highlight_CanExecute.
Add the following method to the code behind file for the window.
private void Highlight_CanExecute(object sender, CanExecuteEventArgs e) {
MenuItem menu = e.Source as MenuItem;
TextBox txtBox = menu.CommandTarget as TextBox;
Menu.IsEnabled = (txtBox.Text.Length > 0);
}
Answer: C

Microsoft   70-502 examen   70-502 examen   70-502

NO.6 You have created a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5. The application, named EnterpriseApplication.exe, runs over the network.
You add the WindowSize parameter and the WindowPosition parameter to the Settings.settings file by
using the designer at the User Scope Level. The dimensions and position of the window are read from the
user configuration file.
The application must retain the original window size and position for users executing the application.
You need to ensure that the following requirements are met:
?The window dimensions for each user are saved in the user configuration file.
?User settings persist when a user exits the application.
Which configuration setting should you use?
A. Private Sub OnClosing(ByVal sender As Object, ByVal e _
As System.ComponentModel.CancelEventArgs)
My.Settings.Default.WindowPosition = New Point(Me.Left, Me.Top)
My.Settings.Default.WindowSize = New Size(Me.Width, Me.Height)
My.Settings.Default.Save()
End Sub
B. Private Sub OnClosing(ByVal sender As Object, ByVal e As _
System.ComponentModel.CancelEventArgs)
Dim appKey As RegistryKey = _
Registry.CurrentUser.CreateSubKey("Software\EnterpriseApplication")
Dim settingsKey As RegistryKey = _
appKey.CreateSubKey("WindowSettings")
Dim windowPositionKey As RegistryKey = _
settingsKey.CreateSubKey("WindowPosition")
Dim windowSizeKey As RegistryKey = _
settingsKey.CreateSubKey("WindowSize")
windowPositionKey.SetValue("X", Me.Left)
windowPositionKey.SetValue("Y", Me.Top)
windowSizeKey.SetValue("Width", Me.Width)
windowSizeKey.SetValue("Height", Me.Height)
End Sub
C. Private Sub OnClosing(ByVal sender As Object, ByVal e As _
System.ComponentModel.CancelEventArgs)
Dim doc As New System.Xml.XmlDocument()
doc.Load("EnterpriseApplication.exe.config")
Dim nodePosition As System.Xml.XmlNode = _
doc.SelectSingleNode("//setting[@name='WindowPosition']")
nodePosition.ChildNodes(0).InnerText = String.Format("{0},{1}", _
Me.Left, Me.Top)
Dim nodeSize As System.Xml.XmlNode = _
doc.SelectSingleNode("//setting[@name='WindowSize']")
nodeSize.ChildNodes(0).InnerText = String.Format("{0},{1}", _
Me.Width, Me.Height)
doc.Save("UserConfigDistractor2.exe.config")
End Sub
D. Private Sub Window_Closing(ByVal sender As Object, ByVal e As _
System.ComponentModel.CancelEventArgs)
Dim sw As New StreamWriter("EnterpriseApplication.exe.config", True)
sw.WriteLine("<EnterpriseApplication.Properties.Settings>")
sw.WriteLine("<setting name=""WindowSize"" serializeAs=""String"">")
sw.WriteLine(String.Format("<value>{0},{1}</value>", Me.Width, _
Me.Height))
sw.WriteLine("</setting>")
sw.WriteLine("<setting name=""WindowPosition"" _
serializeAs=""String"">")
sw.WriteLine(String.Format("<value>{0},{1}</value>", Me.Left, _
Me.Top))
sw.WriteLine("</setting>")
sw.WriteLine("</UserConfigProblem.Properties.Settings>")
sw.Close()
End Sub
Answer: A

Microsoft   certification 70-502   70-502   70-502   70-502

Les experts de Pass4Test profitent de leurs expériences et connaissances à augmenter successivement la qualité des docmentations pour répondre une grande demande des candidats, juste pour que les candidats soient permis à réussir le test Microsoft 70-502 par une seule fois. Vous allez avoir les infos plus proches de test réel à travers d'acheter le produti de Pass4Test. Notre confiance sont venue de la grande couverture et la haute précision de nos Q&As. 100% précision des réponses vous donnent une confiance 100%. Vous n'auriez pas aucun soucis avant de participer le test.

Certification Microsoft de téléchargement gratuit pratique d'examen MB7-841, questions et réponses

Pass4Test vous permet à réussir le test Certification sans beaucoup d'argents et de temps dépensés. La Q&A Microsoft MB7-841 est recherchée par Pass4Test selon les résumés de test réel auparavant, laquelle est bien liée avec le test réel.

Pass4Test est un fournisseur de formation pour une courte terme, et Pass4Test peut vous assurer le succès de test Microsoft MB7-841. Si malheureusement, vous échouez le test, votre argent sera tout rendu. Vous pouvez télécharger le démo gratuit avant de choisir Pass4Test. Au moment là, vous serez confiant sur Pass4Test.

Code d'Examen: MB7-841
Nom d'Examen: Microsoft (NAV 2009 C/SIDE Solution Development)
Questions et réponses: 95 Q&As

Le test de Certification Microsoft MB7-841 devient de plus en plus chaud dans l'Industrie IT. En fait, ce test demande beaucoup de travaux pour passer. Généralement, les gens doivent travailler très dur pour réussir.

Les experts de Pass4Test ont fait sortir un nouveau guide d'étude de Certification Microsoft MB7-841, avec ce guide d'étude, réussir ce test a devenu une chose pas difficile. Pass4Test vous permet à réussir 100% le test Microsoft MB7-841 à la première fois. Les questions et réponses vont apparaître dans le test réel. Pass4Test peut vous donner une Q&A plus complète une fois que vous choisissez nous. D'ailleurs, la mise à jour gratuite pendant un an est aussi disponible pour vous.

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

NO.1 You work in an international company which is called Wiikigo. And you're employed as the Developer for
Microsoft Dynamics NAV. The company assigns a task to you. You have to train the users to use the
C/SIDE report writer to write reports. Of the following options, which describes correctly that you can use
of the OnInitReport trigger in a report?
A.The Request Form has not been processed.
B.Data from Data Item tables can be accessed.
C.The OnPreReport trigger can be called from a single instance codeunit.
D.You cannot call a private function cannot be called in the same report object.
Answer:A

Microsoft   MB7-841   MB7-841

NO.2 You work in an international company which is called Wiikigo. And you're employed as the Developer for
Microsoft Dynamics NAV. A code has been written by you. For the Customer table which is called
Customer, a record variable is created by you. Now you are asked to identify which Customers reside in
one of the regions that supported by your company, hence you intend to loop through the table. Now you
are using a record variable which is to be filtered, before the record variable is filtered, what function do
you called?
A.Customer.FINDSET()
B.Customer.SETRANGE()
C.Customer.SETCURRENTKEY()
D.Customer.SETPERMISSIONFILTER
Answer:C

Microsoft   certification MB7-841   MB7-841 examen   MB7-841   MB7-841 examen   MB7-841 examen

NO.3 You work in an international company which is called Wiikigo. And you're employed as the Developer
for Microsoft Dynamics NAV. Another programmer has written a report. But it is not producing any output.
Therefore, your company asks you to find out the reason. So what may cause this?
A.The request form was not used.
B.Calcsums was not called in the OnAfterGetRecord trigger.
C.The report has been filtered with code so that no records match the filter(s).
D.The PrintOnlyIfDetail property has been set to true on the outermost indented DataItem.
Answer:D

Microsoft examen   MB7-841 examen   MB7-841 examen   MB7-841

NO.4 You work in an international company which is called Wiikigo. And you're employed as the Developer for
Microsoft Dynamics NAV. There is a colleague who is named John in the company. From the options
below, he is asked to identify the one that is a use for FlowFields in Microsoft Dynamics NAV 2009. But he
is not clear about the answer. Since you are the IT professional, he asks for your answer. So what should
you reply to him?
A.Calculate time between events.
B.Modify the sign of data in a table
C.Write replacement records to a Master table.
D.Lookup information in a related table.
Answer:D

Microsoft   MB7-841   MB7-841   certification MB7-841

NO.5 You work in an international company which is called Wiikigo. And you're employed as the Developer
for Microsoft Dynamics NAV. A client of your company wants to know the use of Web services in Microsoft
Dynamics NAV 2009 and the most important reason that you recommend Web services. So what is your
answer?
A.It is because the client has to read data from Microsoft Dynamics NAV 2009.
B.It is because the client has to write data directly to Microsoft Dynamics NAV 2009.
C.It is because the client already has a Web page and a staff to maintain it.
D.It is because the client needs to have the ability of executing business logic within Microsoft Dynamics
NAV 2009 from an external application.
Answer:D

Microsoft   MB7-841   MB7-841 examen   MB7-841   MB7-841   MB7-841 examen

NO.6 You work in an international company which is called Wiikigo. And you're employed as the Developer for
Microsoft Dynamics NAV. There is a colleague who is named John in the company. A function is created in
a codeunit by him. He chose VAR when he sets up a parameter. But he is not clear about its meaning.
Since you are the IT professional, he asks for your answer. So what do you reply to him?
A.It means that the parameter is a variable while not a text constant.
B.It means that the parameter is passed as a variant.
C.It means that the parameter is passed by reference rather than value.
D.It means that the parameter is passed as a static copy.
Answer:C

Microsoft   MB7-841 examen   MB7-841   certification MB7-841   MB7-841

NO.7 You work in an international company which is called Wiikigo. And you're employed as the Developer
for Microsoft Dynamics NAV. Now you are modifying a function in a standard C/SIDE codeunit. The
function has a record variable passed to it by reference and is usually called from a report. In order to
check the filters that the user may have applied to the record variable, you need to have code added to
the function to perform this. Is this possible to do this? Why?
A.It is impossible since it is passed by reference and the information passed does not include filters.
B.It is impossible, the report keeps the set of records the user selected unless the variable is passed by
value.
C.It is possible, even though the record variable only gives you access to one record, there is a system
variable which contains all filters that the user has applied.
D.It is possible since the record variable represents a set of records from the associated table including
the filters and key.
Answer:D

Microsoft   certification MB7-841   certification MB7-841   MB7-841 examen   MB7-841

NO.8 You work in an international company which is called Wiikigo. And you're employed as the Developer
for Microsoft Dynamics NAV. In order to look at detail information in the Ledger table, a FlowField has
been designed in a Master table. Someone asked you to have a FlowFilter field added to the table as well.
Do you know what is a FlowFilter field used for?
A.It is used to filter the form view of the FlowField in the Microsoft SQL Server only.
B.It is used to limit write access to data in the FlowField detail table.
C.It is used to include in the CalcFormula of a FlowField, which will permit programmer- defined filters to
modify the SumIndexFields during the FlowField calculation.
D.It is used to include in the CalcFormula of a FlowField, which will permit user- defined filters to be
applied in the Flow Field calculation.
Answer:C

Microsoft   MB7-841 examen   MB7-841

NO.9 You work in an international company which is called Wiikigo. And you're employed as the Developer for
Microsoft Dynamics NAV. An export XMLPort has been created by you. Now you are asked to run this
export XMLPort. Of the following options, which one is required to be instantiated to process the XMLPort?
(choose more than one)
A.The XMLPort is required to be instantiated to process the XMLPort.
B.A MESSAGE function is required to be instantiated to process the XMLPort.
C.A file to receive the data is required to be instantiated to process the XMLPort.
D.An OUTSTREAM object is required to be instantiated to process the XMLPort.
Answer:A C D

Microsoft   MB7-841 examen   MB7-841 examen

NO.10 You work in an international company which is called Wiikigo. And you're employed as the Developer
for Microsoft Dynamics NAV. You are appointed to work with a client of your company. The client wants to
store information outside the standard Microsoft Dynamics NAV 2009 ledger tables. According to the
requirement of the client, you have to create a solution. You have selected a master table and created a
ledger table to support. Your solution must conform to Microsoft Dynamics NAV 2009 posting standards.
Of the following codeunits, which one will have to be created? (choose more than one)
A.Post Batch will have to be created.
B.Check-Line will have to be created.
C.Post Line will have to be created.
D.Sales-Post will have to be created.
Answer:A B C

certification Microsoft   certification MB7-841   MB7-841

NO.11 You work in an international company which is called Wiikigo. And you're employed as the Developer for
Microsoft Dynamics NAV. There is a colleague who is named John in the company. He wants to know why
it is a good idea to have a separate codeunit created for code that uses automation. (choose more than
one)
A.It is because an object using automation can only be compiled on a machine on which the automation
server is installed.
B.It is because of better performance.
C.It is because processing of records on the client machine will be enhanced.
D.It is because the automation type cannot be exported across the network.
Answer:A B

Microsoft examen   MB7-841   MB7-841   MB7-841 examen   MB7-841

NO.12 You work in an international company which is called Wiikigo. And you're employed as the Developer
for Microsoft Dynamics NAV. There is a colleague who is named John in the company. From the options
below, he is asked to identify C/SIDE standards for a Check Line codeunit. But he is not clear about it.
Since you are the technical support, he asks for your answer. So what is your answer? (choose more than
one)
A.It is called from both Post Batch and Post Line.
B.It writes to the Register table to track posting statistics.
C.It calls the Post Line function to write the record after it is checked.
D.After the first call, it has no interaction with the server.
Answer:A D

Microsoft examen   MB7-841   MB7-841 examen   MB7-841

NO.13 You work in an international company which is called Wiikigo. And you're employed as the Developer for
Microsoft Dynamics NAV. There is a page object. A number of familiar methods are exposed when the
page object is published as a Web service. Do you know which of the following belongs to the methods?
A.One of the methods is OnOpenPage
B.One of the methods is READ.
C.One of the methods is VALIDATE
D.One of the methods is OnAfterGetRecord
Answer:B

Microsoft   MB7-841   MB7-841 examen   MB7-841   certification MB7-841

NO.14 You work in an international company which is called Wiikigo. And you're employed as the Developer for
Microsoft Dynamics NAV. You are appointed to work with a client of your company. Now you are asked to
create a custom report which groups Customers by Sales representative. Of the following options, which
is the reason for applying grouping in a Microsoft Dynamics NAV 2009 report? (choose more than one)
A.It is for causing the report to print a sub-heading each time the salesperson code changes when printing
a list of customers.
B.It is for allowing the user to filter the report on the date of the transactions.
C.It is for causing the report to print a new page for each salesperson when printing a list of customers.
D.It is for causing two or more customer reports to print simultaneously for each salesperson.
Answer:A C

certification Microsoft   MB7-841   certification MB7-841

NO.15 You work in an international company which is called Wiikigo. And you're employed as the Developer
for Microsoft Dynamics NAV. As you know, either the Classic Database Server or SQL Server can be used
by Microsoft Dynamics NAV 2009. You know how the Classic Database Server implements keys. Do you
know how key(indexes) are implemented in SQL Server?(choose more than one)
A.Non-unique indexes are forbidden.
B.The primary key index is clustered by default.
C.A table is required to have a clustered index.
D.The remainder of the primary key is added to every secondary index, making the indexes unique.
Answer:B D

Microsoft   certification MB7-841   certification MB7-841   MB7-841 examen   MB7-841 examen   MB7-841 examen

NO.16 You work in an international company which is called Wiikigo. And you're employed as the Developer
for Microsoft Dynamics NAV. There is a colleague who is named John in the company. He is asked to
consider the snippet of code below: WITH RentalEquipment DO BEGIN
VALIDATE(Amount,RentalContractLine.Amount); "Late Fee" :=
CalcLateFee(EquipmentRentalContractLine); MODIFY; END; John is asked to describe the purpose of
the VALIDATE statement. But he is not clear about the purpose. Since you are the technical support, he
asks for your answer. So what do you reply to him?
A.The purpose is to decrement the value of the Amount field.
B.The purpose is to run any code in the field's ONValidate trigger.
C.The purpose is to avoid having to use the scope operator when addressing the field.
D.The purpose is to make sure that the RentalContractLine.Amount field is a decimal type.
Answer:B

certification Microsoft   MB7-841 examen   MB7-841   MB7-841

NO.17 You work in an international company which is called Wiikigo. And you're employed as the Developer for
Microsoft Dynamics NAV. There is a colleague who is named John in the company. He does not know the
reason of using a Virtual table in Microsoft Dynamics NAV 2009. Since you are the IT professional, he
asks for your answer. So what should you reply to him?
A.As a Dataitem in a report.
B.To store global information from C/AL variables.
C.To maintain current user statistics.
D.To know when to use the COMMIT statement.
Answer:A

Microsoft   certification MB7-841   MB7-841   MB7-841   MB7-841

NO.18 You work in an international company which is called Wiikigo. And you're employed as the Developer
for Microsoft Dynamics NAV. You have created an XMLPort. You want to run the XMLPort to export a list
of customers for sales representative in C/SIDE. Besides the XMLPort, which do you need to instantiate
to process the XMLPort?
A.A READSTREAM object
B.A MESSAGE object
C.An OUTSTREAM object
D.An INSTREAM object
Answer:C

certification Microsoft   MB7-841   certification MB7-841   MB7-841 examen   MB7-841 examen   MB7-841

NO.19 You work in an international company which is called Wiikigo. And you're employed as the Developer
for Microsoft Dynamics NAV. At present you are working on a project with your working team. You work as
the programmer for the part of data conversion. Of the following methods, which can be used to convert
the current customer balances? (this area is complete and the data has been tested)
A.An XMLPort should be written to have the data imported into the Gen. Journal Line table.
B.After an XMLPort is written to have the data imported into a Gen. Journal Line record, call the Gen.
Jnl.-Post Line code unit by using it.
C.After an XMLPort is written to have the data imported into a Gen. Journal Line record, call the Gen.
Jnl.-Check Line code unit by using it.
D.After an XMLPort is written to have the data imported into the Gen. Ledger Entry table, call the
appropriate posting routing to validate the data.
Answer:B

certification Microsoft   certification MB7-841   MB7-841   MB7-841

NO.20 You work in an international company which is called Wiikigo. And you're employed as the Developer
for Microsoft Dynamics NAV. According to company requirement, you have created a Rental Equipment
add-on. This add-on needs a Card page for the master table. In Microsoft Dynamics NAV, most Card
pages have FactBoxes attached to them. Do you know the reason?
A.It is for using in the place of a CardPart so that the data is displayed more clearly to the user.
B.It is for making sure that all validation routines are located in the same place and run as the data is
entered.
C.It is for enabling you to make adjustments to transaction information after it is posted.
D.It is for viewing additional information associated with a selected entity in the primary page.
Answer:D

Microsoft   certification MB7-841   MB7-841 examen   MB7-841

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.

070-642 dernières questions d'examen certification Microsoft et réponses publiés

Dans cette société de l'information technologies, c'est bien populaire que l'on prenne la formation en Internet, Pass4Test est l'un des sites d'offrir la formation particulère pour le test Microsoft 070-642. Pass4Test a une expérience riche pour répondre les demandes des candidats.

C'est pas facile à passer le test Certification Microsoft 070-642, choisir une bonne formation est le premier bas de réussir, donc choisir une bonne resource des informations de test Microsoft 070-642 est l'assurance du succès. Pass4Test est une assurance comme ça. Une fois que vous choisissez le test Microsoft 070-642, vous allez passer le test Microsoft 070-642 avec succès, de plus, un an de service en ligne après vendre est gratuit pour vous.

Code d'Examen: 070-642
Nom d'Examen: Microsoft (TS: Windows Server 2008 Network Infrastructure, Configuring Certification )
Questions et réponses: 350 Q&As

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-642 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-642.

Il y a beaucoup de gans ambitieux dansn l'Industrie IT. Pour monter à une autre hauteur dans la carrière, et être plus proche du pic de l'Industrie IT. On peut choisir le test Microsoft 070-642 à se preuver. Mais le taux du succès et bien bas. Participer le test Microsoft 070-642 est un choix intelligent. Dans l'Industrie IT de plus en plus intense, on doit trouver une façon à s'améliorer. Vous pouvez chercher plusieurs façons à vous aider pour réussir le test.

Le guide d'étude sorti de Pass4Test comprend les expériences résumées par nos experts, les matériaux et les Q&As à propos de test Certification Microsoft 070-642. Notre bonne réputation dans l'industrie IT sera une assurance 100% à réussir le test Microsoft 070-642. Afin de vous permettre de choisir Pass4Test, vous pouvez télécharger gratuitement le démo de Q&A tout d'abord.

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

NO.1 Your company has computers in multiple locations that use IPv4 and IPv6. Each location is protected
by a firewall that performs symmetric NAT.
You need to allow peer-to-peer communication between all locations. What should you do?
A. Configure dynamic NAT on the firewall.
B. Configure the firewall to allow the use of Teredo.
C. Configure a link local IPv6 address for the internal interface of the firewall.
D. Configure a global IPv6 address for the external interface of the firewall.
Answer: B

Microsoft   070-642   070-642 examen   070-642   certification 070-642   certification 070-642

NO.2 Your company is designing its network. The network will use an IPv6 prefix of
2001:DB8:BBCC:0000::/53. You need to identify an IPv6 addressing scheme that will support 2000
subnets.
Which network mask should you use?
A. /61
B. /62
C. /63
D. /64
Answer: D

Microsoft examen   070-642   070-642   070-642 examen   certification 070-642

NO.3 Your network contains 100 servers that run Windows Server 2008 R2. A server named Server1 is
deployed on the network. Server1 will be used to collect events from the Security event logs of the other
servers on the network.
You need to define the Custom Event Delivery Optimization settings on Server1.
Which tool should you use?
A. Event Viewer
B. Task Scheduler
C. Wecutil
D. Wevtutil
Answer: C

Microsoft examen   070-642 examen   certification 070-642   certification 070-642

NO.4 Your network contains a server named Server1 that runs Windows Server 2008 R2. Server1 is
configured as a DNS server.
You need to ensure that Server1 only resolves queries issued from client computers in the same subnet
as Server1. The solution must ensure that Server1 can resolve Internet host names.
What should you do on Server1?
A. Configure Windows Firewall.
B. Create a conditional forwarder.
C. Modify the routing table.
D. Create a trust anchor.
Answer: A

Microsoft   certification 070-642   070-642   certification 070-642   070-642 examen   070-642 examen

NO.5 Your network contains a server named Server1 that runs Windows Server 2008 R2. Server1 has the
SNMP Service installed.
You perform an SNMP query against Server1 and discover that the query returns the incorrect
identification information.
You need to change the identification information returned by Server1. What should you do?
A. From the properties of the SNMP Service, modify the Agent settings.
B. From the properties of the SNMP Service, modify the General settings.
C. From the properties of the SNMP Trap Service, modify the Logon settings.
D. From the properties of the SNMP Trap Service, modify the General settings.
Answer: A

Microsoft examen   070-642   070-642   070-642   070-642

NO.6 Your company is designing its public network. The network will use an IPv4 range of 131.107.40.0/22.
The network must be configured as shown in the following exhibit.
You need to configure subnets for each segment.
Which network addresses should you assign?
A. Segment A: 131.107.40.0/23
Segment B: 131.107.42.0/24
Segment C: 131.107.43.0/25
Segment D: 131.107.43.128/27
B. Segment A: 131.107.40.0/25
Segment B: 131.107.40.128/26
Segment C: 131.107.43.192/27
Segment D: 131.107.43.224/30
C. Segment A: 131.107.40.0/23
Segment B: 131.107.41.0/24
Segment C: 131.107.41.128/25
Segment D: 131.107.43.0/27
D. Segment A: 131.107.40.128/23
Segment B: 131.107.43.0/24
Segment C: 131.107.44.0/25
Segment D: 131.107.44.128/27
Answer: A

certification Microsoft   070-642   070-642   070-642

NO.7 Your network uses IPv4.
You install a server that runs Windows Server 2008 R2 at a branch office. The server is configured with
two network interfaces.
You need to configure routing on the server at the branch office. Which two actions should you perform?
(Each correct answer presents part of the solution. Choose two.)
A. Install the Routing and Remote Access Services role service.
B. Run the netsh ras ip set access ALL command.
C. Run the netsh interface ipv4 enable command.
D. Enable the IPv4 Router Routing and Remote Access option.
Answer: A, D

Microsoft   certification 070-642   certification 070-642   certification 070-642   certification 070-642

NO.8 Your company uses DHCP to lease IPv4 addresses to computers at the main office. A WAN link
connects the main office to a branch office. All computers in the branch office are configured with static IP
addresses. The branch office does not use DHCP and uses a different subnet.
You need to ensure that the portable computers can connect to network resources at the main office and
the branch office.
How should you configure each portable computer?
A. Use a static IPv4 address in the range used at the branch office.
B. Use an alternate configuration that contains a static IP address in the range used at the main office.
C. Use the address that was assigned by the DHCP server as a static IP address.
D. Use an alternate configuration that contains a static IP address in the range used at the branch office.
Answer: D

certification Microsoft   070-642   070-642 examen   certification 070-642

NO.9 Your network contains a server that runs Windows Server 2008 R2. You plan to create a custom script.
You need to ensure that each time the script runs, an entry is added to the Application event log.
Which tool should you use.?
A. Eventcreate
B. Eventvwr
C. Wecutil
D. Wevtutil
Answer: A

Microsoft   070-642   certification 070-642   070-642   070-642   070-642

NO.10 Your network contains a DHCP server named DHCP1 that runs Windows Server 2008 R2. All client
computers on the network obtain their network configurations from DHCP1. You have a client computer
named Client1 that runs Windows 7 Enterprise. You need to configure Client1 to use a different DNS
server than the other client computers on the network. What should you do?
A. Configure the scope options.
B. Create a reservation.
C. Create a DHCP filter.
D. Define a user class.
Answer: B

Microsoft examen   070-642   070-642 examen

NO.11 You have a Windows Server 2008 R2 computer that has an IP address of 172.16.45.9/21. The server
is configured to use IPv6 addressing.
You need to test IPv6 communication to a server that has an IP address of 172.16.40.18/21.
What should you do from a command prompt?
A. Type ping 172.16.45.9:::::.
B. Type ping ::9.45.16.172.
C. Type ping followed by the Link-local address of the server.
D. Type ping followed by the Site-local address of the server.
Answer: C

Microsoft   070-642   070-642   certification 070-642

NO.12 Your network contains a domain controller named DC1 and a member server named Server1.
You save a copy of the Active Directory Web Services (ADWS) event log on DC1. You copy the log to
Server1.
You open the event log file on Server1 and discover that the event description information is unavailable.
You need to ensure that the event log file displays the same information when the file is open on Server1
and on DC1.
What should you do on Server1?
A. Import a custom view.
B. Copy the SYSVOL folder from DC1.
C. Copy the LocaleMetaData folder from DC1.
D. Create a custom view.
Answer: C

Microsoft examen   070-642   certification 070-642   070-642 examen   070-642 examen   certification 070-642

NO.13 Your company has an IPv6 network that has 25 segments. You deploy a server on the IPv6 network.
You need to ensure that the server can communicate with all segments on the IPv6 network.
What should you do?
A. Configure the IPv6 address as fd00::2b0:d0ff:fee9:4143/8.
B. Configure the IPv6 address as fe80::2b0:d0ff:fee9:4143/64.
C. Configure the IPv6 address as ff80::2b0:d0ff:fee9:4143/64.
D. Configure the IPv6 address as 0000::2b0:d0ff:fee9:4143/64.
Answer: A

Microsoft examen   070-642   070-642

NO.14 Your network contains a server that has the SNMP Service installed.
You need to configure the SNMP security settings on the server.
Which tool should you use?
A. Local Security Policy
B. Scw
C. Secedit
D. Services console
Answer: D

certification Microsoft   070-642 examen   070-642   070-642

NO.15 You have a DHCP server that runs Windows Server 2008 R2. You need to reduce the size of the
DHCP database.
What should you do?
A. From the DHCP snap-in, reconcile the database.
B. From the folder that contains the DHCP database, run jetpack.exe dhcp.mdb temp.mdb.
C. From the properties of the dhcp.mdb file, enable the File is ready for archiving attribute.
D. From the properties of the dhcp.mdb file, enable the Compress contents to save disk space attribute.
Answer: B

Microsoft   070-642   certification 070-642   070-642

NO.16 You have a DHCP server that runs Windows Server 2008 R2. The DHCP server has two network
connections named LAN1 and LAN2.
You need to prevent the DHCP server from responding to DHCP client requests on LAN2. The server
must continue to respond to non-DHCP client requests on LAN2.
What should you do?
A. From the DHCP snap-in, modify the bindings to associate only LAN1 with the DHCP service.
B. From the DHCP snap-in, create a new multicast scope.
C. From the properties of the LAN1 network connection, set the metric value to 1.
D. From the properties of the LAN2 network connection, set the metric value to 1.
Answer: A

Microsoft   certification 070-642   070-642   070-642   070-642

NO.17 Your company has an IPv4 Ethernet network.
A router named R1 connects your segment to the Internet. A router named R2 joins your subnet with a
segment named Private1. The Private1 segment has a network address of 10.128.4.0/26. Your computer
named WKS1 requires access to servers on the Private1 network. The WKS1 computer configuration is
as shown in the following table.
WKS1 is unable to connect to the Private1 network by using the current configuration. You need to add a
persistent route for the Private1 network to the routing table on WKS1.
Which command should you run on WKS1?
A. Route add -p 10.128.4.0/22 10.128.4.1
B. Route add -p 10.128.4.0/26 10.128.64.10
C. Route add -p 10.128.4.0 mask 255.255.255.192 10.128.64.1
D. Route add -p 10.128.64.10 mask 255.255.255.192 10.128.4.0
Answer: B

certification Microsoft   070-642   070-642   070-642 examen

NO.18 Your network contains a server named Server1 that runs Windows Server 2008 R2. Server1 has the
Routing and Remote Access service (RRAS) role service installed. You need to view all inbound VPN
packets. The solution must minimize the amount of data collected.
What should you do?
A. From RRAS, create an inbound packet filter.
B. From Network Monitor, create a capture filter.
C. From the Registry Editor, configure file tracing for RRAS.
D. At the command prompt, run netsh.exe ras set tracing rasauth enabled.
Answer: B

Microsoft   certification 070-642   certification 070-642   070-642   070-642

NO.19 You need to capture the HTTP traffic to and from a server every day between 09:00 and 10:00.
What should you do?
A. Create a scheduled task that runs the Netsh tool.
B. Create a scheduled task that runs the Nmcap tool.
C. From Network Monitor, configure the General options.
D. From Network Monitor, configure the Capture options.
Answer: B

Microsoft   070-642   070-642   070-642   certification 070-642

NO.20 Your network contains a single Active Directory domain. All servers run Windows Server 2008 R2. A
DHCP server is deployed on the network and configured to provide IPv6 prefixes. You need to ensure that
when you monitor network traffic, you see the interface identifiers derived from the Extended Unique
Identifier (EUI)-64 address. Which command should you run?
A. netsh.exe interface ipv6 set global addressmaskreply=disabled
B. netsh.exe interface ipv6 set global dhcpmediasense=enabled
C. netsh.exe interface ipv6 set global randomizeidentifiers=disabled
D. netsh.exe interface ipv6 set privacy state=enabled
Answer: C

Microsoft   070-642   070-642   070-642

Après une longue attente, les documentations de test Microsoft 070-642 qui combinent tous les efforts des experts de Pas4Test sont finalement sorties. Les documentations de Pass4Test sont bien répandues pendant les candidats. L'outil de formation est réputée par sa haute précision et grade couverture des questions, d'ailleurs, il est bien proche que test réel. Vous pouvez réussir le test Microsoft 070-642 à la première fois.

2013年9月29日星期日

Le plus récent matériel de formation Avaya 132-S-911-3

Pass4Test vous offre un choix meilleur pour faire votre préparation de test Avaya 132-S-911-3 plus éfficace. Si vous voulez réussir le test plus tôt, il ne faut que ajouter la Q&A de Avaya 132-S-911-3 à votre cahier. Pass4Test serait votre guide pendant la préparation et vous permet à réussir le test Avaya 132-S-911-3 sans aucun doute. Vous pouvez obtenir le Certificat comme vous voulez.

Selon les feedbacks offerts par les candidats, c'est facile à réussir le test Avaya 132-S-911-3 avec l'aide de la Q&A de Pass4Test qui est recherché particulièrement pour le test Certification Avaya 132-S-911-3. C'est une bonne preuve que notre produit est bien effective. Le produit de Pass4Test peut vous aider à renforcer les connaissances demandées par le test Avaya 132-S-911-3, vous aurez une meilleure préparation avec l'aide de Pass4Test.

Code d'Examen: 132-S-911-3
Nom d'Examen: Avaya (Specialist IP Telephony Implement and Support Elective Exam)
Questions et réponses: 103 Q&As

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 Avaya 132-S-911-3, et aussi une meilleure assurance du succès du test 132-S-911-3. Vous choisissez Pass4Test, vous choisissez le succès.

Vous pouvez comparer un peu les Q&As dans les autres sites web que lesquelles de Pass4Test, c'est pas difficile à trouver que la Q&A Avaya 132-S-911-3 est plus complète. Vous pouvez télécharger le démo gratuit à prendre un essai de la qualité de Pass4Test. La raison de la grande couverture des questions et la haute qualité des réponses vient de l'expérience riche et la connaissances professionnelles des experts de Pass4Test. La nouvelle Q&A de Avaya 132-S-911-3 lancée par l'équipe de Pass4Test sont bien populaire par les candidats.

Pas besoin de beaucoup d'argent et de temps, vous pouvez passer le test Avaya 132-S-911-3 juste avec la Q&A de Avaya 132-S-911-3 offerte par Pass4Test qui vous offre le test simulation bien proche de test réel.

132-S-911-3 Démo gratuit à télécharger: http://www.pass4test.fr/132-S-911-3.html

NO.1 A company purchases the right to use Avaya IP Softphone for 100 stations. The users
complain that
the call center buttons (AUX, After-Call, Login, and Logout) programmed on their stations no
longer work
as expected. What is the most likely cause of this problem?
A.TCP/UDP port blockage in the corporate WAN
B.improper administration of the stations in the PBX
C.users trying to use the application for non-supported functions
D.improper installation of the Avaya IP Softphone application on the users' PCs
Answer:C

Avaya   132-S-911-3   132-S-911-3

NO.2 An Avaya IP phone is connected over a WAN link to the main office where the TN799
CLAN and
TN2302 IP Media Processor are located. The Avaya IP phone is registered properly on the
CLAN. A DCP
phone calls the Avaya IP phone and the call is answered. The audio quality is poor in both
directions, but
the call stays up until one of the users disconnects. Which two conditions cause this audio
quality problem?
(Choose two.)
A.insufficient IP media processor resources
B.use of the G.711 codec to transmit audio over the WAN link
C.implementing Weighted Fair Queuing (WFQ) on the edge router
D.intermittent connectivity between the Avaya IP phone and the CLAN
Answer:B C

Avaya   132-S-911-3   132-S-911-3   certification 132-S-911-3   132-S-911-3   certification 132-S-911-3

NO.3 Which is a characteristic of a global VLAN ID?
A.must have at least five digits
B.can vary from one device to another
C.supports QoS between multi-vendor WAN/LANs
D.remains consistent across all VLAN tagging schemes
Answer:D

certification Avaya   132-S-911-3 examen   132-S-911-3 examen   132-S-911-3   132-S-911-3

NO.4 In an Enterprise Survivable Server (ESS) scenario, how do you save translations to
your ESS server?
A.save trans
B.save trans all
C.save ESS settings
D.save trans cluster ESS
Answer:B

Avaya   certification 132-S-911-3   132-S-911-3   certification 132-S-911-3   132-S-911-3

NO.5 Which two statements about VoIP Monitoring Manager are true? (Choose two.)
A.VoIP Monitoring Manager is a GUI-based tool that can chart historical graphs of audio
performance on
VoIP endpoints
B.VoIP Monitoring Manager can be used to troubleshoot VoIP endpoints registration
problems and call
signaling problems
C.the reporting interval of VoIP Monitoring Manager can be varied depending on the required
granularity
of the performance statistics
D.VoIP Monitoring Manager is a text-based tool that has the look and feel of a CLI and can
be embedded
into Cajun switches as an add-on feature
Answer:A C

Avaya   132-S-911-3   132-S-911-3 examen   132-S-911-3 examen

NO.6 What color is the LED when a TN circuit pack is executing a test?
A.red
B.green
C.yellow
D.amber
Answer:C

Avaya examen   132-S-911-3   132-S-911-3   132-S-911-3

NO.7 Which two Avaya Communication Manager commands display the VoIP statistics of a
specific extension
active on call? (Choose two.)
A.status station
B.display station
C.list trace station
D.display trace station
Answer:A C

Avaya   132-S-911-3   132-S-911-3 examen   certification 132-S-911-3

NO.8 A customer has purchased 20 Avaya IP telephones over a period of three years.
Knowing that the IEEE
802.3af standard has been ratified, the customer decided to purchase a C360-PWR switch to
provide
in-line power to the IP telephones. However, only 15 of the phones power up when they are
connected to
the C360-PWR. Upon investigation you discover the five phones which would not receive
power from
C360-PWR are Generation 1 models that are not 802.3af compliant. Which three methods
should you
use to power these phones? (Choose three.)
A.356A adapter
B.individual power brick
C.1152A1 mid-span unit with adapter
D.other vendor 802.3af compliant device
E.IP phone 4600 Ethernet 30A base switch
Answer:B C E

Avaya examen   132-S-911-3   132-S-911-3   132-S-911-3 examen

NO.9 Which two parameters are found in an H.323 Signaling Group form? (Choose two.)
A.QoS parameters
B.a default gateway
C.the far-end network region
D.a TN799 C-LAN for call signaling
Answer:C D

Avaya   132-S-911-3 examen   132-S-911-3   132-S-911-3

NO.10 Your customer asks you to verify the current subnet mask assigned to a remote Avaya
G700 Media
Gateway P330 stack management interface. Which command should you use to obtain this
information?
A.session stack
B.show interface
C.show interface mgp
D.show interface stack manager
Answer:B

Avaya   132-S-911-3   132-S-911-3 examen   132-S-911-3

NO.11 Your customer is unable to light message waiting lights at a small branch office using
a shared Intuity
voice mail system on a QSIG network running DCS. What is the first command you should
execute?
A.list ip-interfaces
B.list media-gateway
C.display-ip-network-region
D.status station
Answer:D

Avaya examen   certification 132-S-911-3   132-S-911-3

NO.12 DHCP option codes 128 to 254 are reserved for site-specific options. A single number
out of this range
is commonly utilized by vendors to configure their Avaya IP phones via DHCP (Option 176).
Which
additional option code supports vendor-specific options?
A.3
B.23
C.43
D.63
Answer:C

Avaya   certification 132-S-911-3   132-S-911-3

NO.13 Which two statements are true about DHCP? (Choose two.)
A.a DHCP server is required to configure all Avaya IP telephones
B.a DHCP server can be used to send the DNS server address to the client
C.one DHCP server is required for each subnet containing clients that require the service
D.a DHCP server is used to send an IP address, subnet mask, and default gateway address
to the client
Answer:B D

Avaya examen   certification 132-S-911-3   132-S-911-3   132-S-911-3   132-S-911-3

NO.14 You are working with the powerful concept of a network region section. Which three
parameters can be
set on the IP network region screen? (Choose three.)
A.H.323 endpoint
B.SIP enabled endpoints
C.hairpinning and shuffling
D.UDP port range parameters
E.QoS parameters such as DiffServ/TOS and 802.1p/Q
Answer:C D E

Avaya examen   132-S-911-3 examen   132-S-911-3   132-S-911-3

NO.15 Which Communication Manager (CM) feature utilizes PSTN connectivity when IP WAN
bandwidth limit
has been reached?
A.Inter-Gateway Alternate Routing
B.Intra-Gigabit Analytical Resource
C.Intelligent Global Access Routing
D.Intelligent Gatekeeper Associated Routes
Answer:A

Avaya   132-S-911-3   132-S-911-3

NO.16 You are migrating from a Definity server to an S8500/S87XX server. Where is the IPSI
board located?
A.It is always placed into slot number 1.
B.The location depends on which media server is used.
C.It can be slotted into any available media gateway slot.
D.The location depends on which media gateway is used.
Answer:D

certification Avaya   132-S-911-3 examen   certification 132-S-911-3   certification 132-S-911-3

NO.17 A customer is using Avaya 4600 Series IP Telephones on an Avaya S87xx Server
using several
TN799DP (CLAN) and TN2302 (Medpro) cards. Telephones located at a remote site are
unable to
register with the CLAN. The CLAN can ping and be pinged. Which two commands or
troubleshooting
methods can identify the problem? (Choose two.)
A.list sys-link
B.status station
C.list trace ras station
D.use a network sniffer between the phone and the network
Answer:C D

certification Avaya   132-S-911-3   132-S-911-3   132-S-911-3

NO.18 In an S87xx MultiConnect, Port Network 18 has no IPSI. Which command will show the
IPSI that is in
control of that Port Network?
A.Status fiber 18
B.List ipserver-interface
C.Status port-network 18
D.Status sys-link 18a0101 current
Answer:D

certification Avaya   132-S-911-3   132-S-911-3   132-S-911-3 examen   certification 132-S-911-3

NO.19 Within a single Avaya Communication Manager 4.0, how can you have conflicting four
digit extensions
for separate locations in a four digit plan?
A.you insert an additional digit on the incoming trunk group form
B.you enter a different UDP code on the dial plan analysis form and take it off in the incoming
trunk group
C.you enter an extra digit on the dial-plan analysis and delete a digit in the routing pattern
D.you enter X where x is the location number on the uniform dial plan and prefix an additional
first digit;
the changed number matches in AAR analysis and goes to a pattern
Answer:D

Avaya   132-S-911-3 examen   132-S-911-3   132-S-911-3   132-S-911-3   132-S-911-3 examen

NO.20 You have an S8720 Server optioned for Software Duplication. Which Ethernet port is
the Duplication
Link assigned to?
A.Ethernet 1
B.Ethernet 2
C.Ethernet 3
D.Ethernet 4
Answer:B

Avaya   132-S-911-3   132-S-911-3 examen

La Q&A Avaya 132-S-911-3 est étudiée par les experts de Pass4Test qui font tous effort en profitant leurs connaissances professionnelles. La Q&A de Pass4Test est ciblée aux candidats de test IT Certification. Vous voyez peut-être les Q&As similaires dansn les autres site web, mais il n'y a que Pass4Test d'avoir le guide d'étude plus complet. C'est le meilleur choix à s'assurer le succès de test Certification Avaya 132-S-911-3.