Microsoft Windows Phone 7

Microsoft 70-506 Certification Material Provider,Most Popular Microsoft 70-506 Practice Test With Accurate Answers

Nowdays,Flydumps has published the newest Microsoft 70-506 exam dumps with free vce test software and pdf dumps,and the latest Microsoft 70-506 question answers ensure you 100% pass and money bcak guarantee.

You are developing a Silverlight 4 application.
The application contains a Slider control named Temperature.
You need to display the Value property of Temperature in a TextBlock control.
Which XAML fragment should you use?

A. <TextBlock Text=”{Binding Path=Temperature.Value}” />
B. <TextBlock Text=”{Binding Path=Value, Source=Temperature}” />
C. <TextBlock Text=”{Binding Path=Value, ElementName=Temperature}” />
D. <TextBlock DataContext=”{StaticResource Temperature}” Text=”{Binding Path=Value}” />
Answer: C

You are developing a Silverlight 4 application. The application contains a Product class that has a public Boolean property named IsAvailable. The application also contains a BoolToVisibilityConverter class. You create an XAML page that contains a Button control. The page is data bound to an instance of the Product class. You need to ensure that the Button control is visible only if the IsAvailable property is true. Which two tasks should you perform?
(Each correct answer presents part of the solution. Choose two.)
A. Add an instance of the BoolToVisibilityConverter class in a Resource block.
B. Set the Button’s DataContext property to an instance of the BoolToVisibilityConverter class.
C. Set the UserControl’s DataContext property to an instance of the BoolToVisibilityConverter c lass.
D. Apply the BoolToVisibilityConverter class to the binding syntax of the Button’s Visibility prop erty.
E. Apply the BoolToVisibilityConverter class to the binding syntax of the Button’s DataContext p roperty.

Answer: AD

You are developing a Silverlight 4 application. The application contains an OrderItem class that
has a public interface property named Quantity and a public Decimal property named UnitPrice.

The application also contains an ExtendedPriceConverter class that calculates the total
price for the OrderItem. The application requires a UnitPrice in the value of the
converter and a Quantity as the parameter.
You create an XAML page that contains a TextBlock control.
The converter is defined in the page that contains the following XAML fragment. (Line numbers
are included
for reference only.)
01 <UserControl.Resources>
02
<converters: ExtendedPriceConverter x:Key=”epc”></converters: ExtendedPriceConverter>
03 </UserControl.Resources>
You need to ensure that the TextBlock control uses ExtendedPriceConverter to display the exte
nded price when bound to an OrderItem.
Which XAML fragment should you use?

A. <TextBlock Text=”{Binding Path=UnitPrice, Converter={StaticResource epc}, ConverterParameter='{Binding Quantity}’}” />
B. <TextBlock Text=”{Binding Path=UnitPrice, Converter={StaticResource epc}, ConverterParameter=Quantity}” />
C. <TextBlock Text=”{Binding Path=UnitPrice, ConverterParameter='{Binding Quantity}’}” />
D. <TextBlock Text=”{Binding Path=UnitPrice, Converter={StaticResource epc}, ConverterParameter=’Binding Quantity’}” />

Answer: A
Question: 4
You are developing a Silverlight 4 application. The application contains a TextBox control data bound to a class that implements only the INotifyPropertyChanged interface. When an invalid v alue is entered in the TextBox control, the class will throw a ValidationException in the Set bloc k of its Name property. You need to display the validation error when an invalid value is entered
in the TextBox control. Which XAML fragment should you use?
A. <TextBox Text=”{Binding Name, Mode=TwoWay, ValidatesOnExceptions=True}” />
B. <TextBox Text=”{Binding Name, Mode=OneWay, ValidatesOnExceptions=True}” />
C. <TextBox Text=”{Binding Name, Mode=TwoWay, NotifyOnValidationError=True}” />
D. <TextBox Text=”{Binding Name, Mode=OneWay, NotifyOnValidationError=True}” />

Answer: A
Question: 5
You are developing a Silverlight 4 application. The application contains a form that has a Grid control and several input fields. The data context is bound to an object that implements validation. You need to display a summary of validation errors. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Add a ValidationSummary control.
B. Add a ListBox control and bind it to the Validation.Errors property of the Grid control.
C. Set Validation.HasError=”True” on the Grid control if any of the fields contains an error.
D. Set NotifyOnValidationError=true and Mode=TwoWay on each field’s binding expression.

Answer: AD
Question: 6
You are developing a trusted application by using Silverlight 4. The application will upload images to a server. You need to provide a user with two ways to select an image file from the C:\Temp folder on the client computer. Which two actions should you perform? (Each correct answer presents a complete solution. Choose two.)
A. Use the OpenFileDialog class.
B. Use the Clipboard class to allow the copyandpaste functionality on the images.
C. Use the Rectangle control as a dropzone and set the AllowDrop property of the control to tru
e.

D.
Use the Environment.GetFolderPath and Environment.SpecialFolder methods to access a fil e specified by the user.

Answer: AC
Question: 7
You are developing a Silverlight 4 application. You andle the RightMouseButtonDown event of the application’s layout root element to display a shortcut menu. You discover that when the right mouse button is released, the standard information panel in Silverlight appears. You need to prevent the standard information panel in Silverlight from being displayed. What should you do?
A. Handle the KeyDown event.
B. Handle the RightMouseButtonUp event.
C. Set the MouseButtonEventArgs.Handled property to True.
D. Set the layout root element’s IsHitTestVisible property to False.

Answer: C
Question: 8
You are developing a Silverlight 4 application. The application has a page that contains a Slider control named sldAmount. You need to enable the wheel of the mouse to control sldAmount. What should you do?
A. ·Handle the ManipulationDelta event on sldAmount.
·Increase sldAmount.SmallChange if the e.DeltaManipulation.Translation.X argument is positiv

e.

·Decrease sldAmount.SmallChange if the e.DeltaManipulation.Translation.X argument is negati
ve.

B.
·Handle the ManipulationDelta event on sldAmount.
·Increase sldAmount.Value if the e.DeltaManipulation.Translation.X argument is positive.
·Decrease sldAmount.Value if the e.DeltaManipulation.Translation.X argument is negative.
C.
·Handle the MouseWheel event on sldAmount.
·Increase sldAmount.SmallChange if the e.Delta argument is positive.
·Decrease sldAmount.SmallChange if the e.Delta argument is negative.
D.
·Handle the MouseWheel event on sldAmount.
·Increase sldAmount.Value if the e.Delta argument is positive.
·Decrease sldAmount.Value if the e.Delta argument is negative.
Answer: D
Question: 9
You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
The application contains the following XAML fragment. (Line numbers are included for referenc
e only.)
01 <Grid x:Name=”LayoutRoot” Background=”White”>
02 <Grid.Resources>
03 <vm:Customers x:Key=”CustomerVM”/>
04 <vm:MockCustomers x:Key=”MockCustomerVM”/>
05 </Grid.Resources>
06 <sdk:DataGrid AutoGenerateColumns=”True”
07 ItemsSource=”{Binding CustomerList}” />
08 </Grid>
You need to bind the DataGrid to the CustomerList property in MockCustomerVM at design tim

e. You also need to bind the DataGrid to the CustomerList property in CustomerVM at run time.
Which XAML fragment should you insert between lines 06 and 07?
A. d:DataContext=”{StaticResource MockCustomerVM}” DataContext=”{StaticResource CustomerVM}”
B. DataContext=”{StaticResource MockCustomerVM}” d:DataContext=”{StaticResource CustomerVM}”
C. DataContext=”{StaticResource MockCustomerVM}” ItemsControl.ItemsSource=”{StaticResource CustomerVM}”
D. d:DataContext=”{StaticResource MockCustomerVM}” ItemsControl.ItemsSource=”{StaticResource CustomerVM}”

Answer: A
Question: 10
You are developing a Web application by using Silverlight 4 and Microsoft Visual Studio 2010.
You have three resource dictionaries named OrangeSkin.XAML, GraySkin.XAML,
and GreenSkin.XAML.
Each dictionary has a SolidBrush style and uses the same x:key name of MyBrush.
The three resource dictionaries define the color of MyBrush as follows:
·OrangeSkin.XAML defines the color of MyBrush as Orange.
·GraySkin.XAML defines the color of MyBrush as Gray.
·GreenSkin.XAML defines the color of MyBrush as Green.
You have a control that merges the dictionaries by using the following XAML fragment.
<UserControl.Resources>

<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source=”OrangeSkin.xaml” />
<ResourceDictionary Source=”GraySkin.xaml” />
<ResourceDictionary Source=”GreenSkin.xaml” />

</ResourceDictionary.MergedDictionaries>
<SolidColorBrush x:Key=”MyBrush” Color=”Azure”/>

</ResourceDictionary> </UserControl.Resources> <Grid x:Name=”LayoutRoot” Background=”{StaticResource MyBrush}”> </Grid> Which background color will be displayed on the Grid?
A. Azure
B. Gray
C. Green
D. Orange

Answer: A
Question: 11
You are developing a Silverlight 4 application. You have a resource dictionary contained in
a file named myDictionary.XAML that is embedded in a separate assembly named
myResources.dll.
The App.XAML file contains the following XAML fragment.
(Line numbers are included for reference only.)
01 <Application.Resources>
02 <ResourceDictionary Source=”Assets/Styles.xaml”/>
03 </Application.Resources>
You need to add the myDictionary.XAML file to the resource dictionaries in the application.
Which XAML fragment should you use to replace line 02?

A. <ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source=”Assets/Styles.xaml”/>
<ResourceDictionary Source=”myResources/myDictionary.xaml”/>

</ResourceDictionary.MergedDictionaries> </ResourceDictionary>
B. <ResourceDictionary>
<ResourceDictionary.MergedDictionaries> <ResourceDictionary Source=”Assets/Styles.xaml”/> <ResourceDictionary Source=”/myResources;component/myDictionary.xaml”/>
</ResourceDictionary.MergedDictionaries> </ResourceDictionary>
C. <ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source=”Assets/Styles.xaml”/>
<ResourceDictionary Source=”/myDictionary;component/myResources”/>

</ResourceDictionary.MergedDictionaries> </ResourceDictionary>
D. <ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source=”Assets/Styles.xaml”/>
<ResourceDictionary Source=”Assets/myDictionary.xaml”/>

</ResourceDictionary.MergedDictionaries> </ResourceDictionary>

Answer: B
Question: 12
You are developing a multilingual Web site by using Silverlight 4 and Microsoft Visual Studio 20
10.
The user interface controls are defined in a stack panel. You need to configure the stack panel
control to display bidirectional languages. Which property should you set on the stack panel?

A. FlowDirection to RightToLeft

B. HorizontalAlignment to Left

C. HorizontalAlignment to Right

D. Orientation to Horizontal

E. UseLayoutRounding to True
Answer: A
Question: 13
You are developing a multilingual Web site by using Silverlight 4 and Microsoft Visual Studio 20
10.
The Silverlight application must support three languages: English, French, and French (Canada
).
You need to ensure that the application meets the following requirements:
·It uses one resource file for each language.
·It automatically selects the appropriate resource file without the use of additional code.
·It uses the appropriate resource files if the end user’s browser supports English,
French, or French (Canada).
·It uses the French resource file if the end user’s browser supports only French (Belgium).
·It uses the English resource file if the end user’s browser does not provide the language it sup
ports.
Which naming convention should you use?

A. MyResource.resx, MyResource.fr.resx, and MyResource.frca.resx
B. MyResource.english.resx, MyResource.french.resx, and MyResource.frenchcanada.resx
C. MyResource.english.xml, MyResource.french.xml, and MyResource.frenchcanada.xml
D. MyResource.xml, MyResource.fr.xml, and MyResource.frca.xml

Answer: A
Question: 14
You are developing an application by using Silverlight 4 and Microsoft Visual Studio 2010.
You need to ensure that the application uses Greek (el) as its default language.
What should you do?

A. In the page_load event of the .aspx file that hosts the Silverlight plug-in, set the page culture to el.
B. In the Application_Start event of the Global.aspx file, set the culture to el.
C. In the .aspx file that hosts the Silverlight plugin, set the UICulture and culture attributes to el on the object tag.
D. Set the browser’s language setting to el by using the HTML Bridge object.

Answer: C
Question: 15
You are developing a Silverlight 4 application that will be hosted on a Web page named default.
aspx.
The application uses the following HTML markup. (Line numbers are included for reference onl
y.)
01 <object data=”data:application/xsilverlight2,” type=”application/xsilverlight2″
width=”100%”
height=”100%”>
02 <param name=”source” value=”ClientBin/SilverlightApplication2.xap”/>
03
04 </object>
You need to configure the plugin to enable the display of the contents of default.aspx
on top of the application.
Which HTML markup should you insert at line 03?

A. <param name=”enableRedrawRegions” value=”true” />
B. <param name=”allowHtmlPopupWindow” value=”true” />
C. <param name=”enableHtmlAccess” value=”true” />
D. <param name=”windowless” value=”true” />

Answer: D
Question: 16
You are developing a Silverlight 4 application named MySilverlightApplication.xap.
The application is hosted on a Microsoft ASP.NET Web page named default.aspx by
using the following HTML markup. (Line numbers are included for reference only.)
01 <object data=”data:application/xsilverlight2,”type=”application/xsilverlight2″ width=”100%”
height=”100%”>
02 <param name=”source” value=”ClientBin/MySilverlightApplication.xap”/>
03
04 </object>
The ASP.NET application has two string variables named strPrimaryEmail and strSecondaryE
mail.
You need to ensure that both variables are passed to the Silverlight application.
Which HTML markup should you insert at line 03?

A. <param name=”initParams” value=”PrimaryEmail=<%=strPrimaryEmail%>, SecondaryEmail=<%=strSecondaryEmail%>” />
B. <param name=”data” value=”PrimaryEmail=<%=strPrimaryEmail %>, SecondaryEmail=<%=strSecondaryEmail%>” />
C. <param name=”initParams” value=”PrimaryEmail=<%=strPrimaryEmail%>”> <param name=”initParams” value=”SecondaryEmail=<%=strSecondaryEmail%>” />
D. <param name=”data” value=”PrimaryEmail=<%=strPrimaryEmail%>”> <param name=”data” value=”SecondaryEmail=<%=strSecondaryEmail%>” />

Answer: A
Question: 17
You are developing a Silverlight 4 application that is hosted in a Web application.
The Web application has a file named LoadScreen.xaml that contains the following XAML frag
ment.
<Grid xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” Background=”WhiteSmoke” Width=” 437″
Height=”43″> <TextBlock Name=”PrgLoader” FontSize=”24″ FontWeight=”ExtraBold” TextAlignment=”Cen ter” />
</Grid>
The Web application also has a Web page named default.aspx that has the following HTML ma
rkup. (Line
numbers are included for reference only.)
01 <html xmlns=”http://www.w3.org/1999/xhtml” >
02 <head>
03 <script type=”text/javascript”>
04
05 </script>
06 </head>
07 <body>
08 <object data=”data:application/xsilverlight2,” type=”application/xsilverlight2″
width=”100%”
height=”100%”>
09 <param name=”source” value=”ClientBin/MyApp.xap”/>
10
11 </object>
12 </body>
13 </html>
You need to ensure that LoadScreen.xaml is displayed instead of the default Silverlight applicat
ion-
loading screen. You also need to ensure that the PrgLoader TextBlock displays the progress pe
rcentage of loading the Silverlight application.
Which two actions should you perform?
(Each correct answer presents part of the solution. Choose two.)

A. Insert the following code fragment at line 04. function UpdateProgress(sender, args) { document.getElementById(“PrgLoader”).nodeValue =
Math.round((args.progress * 1000)) / 10 + “%”; }
B. Insert the following code fragment at line 04. function UpdateProgress(sender, args) { sender.findName(“PrgLoader”).Text =
Math.round((args.progress * 1000)) / 10 + “%”; }
C. Insert the following HTML markup at line 10. <param name=”splashScreenSource” value=”LoadScreen.xaml” /> <param name=”onSourceDownloadProgressChanged” value=”UpdateProgress” />
D. Insert the following HTML markup at line 10. <param name=”splashScreenSource” value=”LoadScreen.xaml” /> <param name=”onSourceDownloadComplete” value=”UpdateProgress” />
E. Insert the following HTML markup at line 10. <param name=”splashScreenSource” value=”LoadScreen.xaml” /> <param name=”onLoad” value=”UpdateProgress” />

Answer: BC
Question: 18
You are developing a Silverlight 4 application. You configure the application to use GPU accele
ration. The application is hosted on a Web page by using the following HTML markup. (Line nu
mbers are included for reference only.)
01 <object data=”data:application/xsilverlight2,” type=”application/xsilverlight2″
width=”100%”
height=”100%”>
02 <param name=”source” value=”ClientBin/MySilverlightApplication.xap”/>
03 <param name=”enableGPUAcceleration” value=”true” />
04
05 </object>
You need to identify the surfaces that are GPUaccelerated in the application.
Which line of code should you insert at line 04?

A. <param name=”enableHtmlAccess” value=”true” />
B. <param name=”enableRedrawRegions” value=”true” />
C. <param name=”enableFrameRateCounter” value=”true” />
D. <param name=”enableCacheVisualization” value=”true” />

Answer: D
Question: 19
You are developing a Silverlight 4 application named Contoso.Accounts.Ui. The application
uses a Silverlight library named Contoso.Ui.Common. You use application library caching to
reduce the size of the XAP file by deploying Contoso.Ui.Common as a separate zip file.
You create the following XML file.
< xml version=”1.0″ >
<manifest xmlns:xsi=”http://www.w3.org/2001/XMLSchemainstance”

xmlns:xsd=”http://www.w3.org/2001/XMLSchema”>
<assembly> <name>Contoso.UI.Common</name> <version>1.0.0.0</version> <publickeytoken>5ca45a28299b8a35</publickeytoken> <relpath>Contoso.UI.Common.dll</relpath> <extension downloadUri=”Contoso.UI.Common.zip” /> </assembly>
</manifest>
You need to ensure that the Contoso.Ui.Common library will be packaged as a separate zip file
.
What should you do?

A. Save the XML file as Contoso.Ui.Common.extmap.xml to the Bin folder of the Contoso.Accounts.Ui project.
B. Save the XML file as Contoso.Accounts.Ui.extmap.xml to the Bin folder of the Contoso.Accounts.Ui project.
C. Save the XML file as Contoso.Ui.Common.extmap.xml to the Contoso.Ui.Common project. S et the Build Action for the file as Embedded Resource.
D. Save the XML file as Contoso.Accounts.Ui.extmap.xml to the Contoso.Ui.Common project. Set the Build Action for the file as Embedded Resource.

Answer: A
Question: 20
You are developing a Silverlight 4 application that will be hosted on a page at http://www.contoso.com/MainPage.aspx. You also create a Windows Communication Foundation (WCF) service hosted at http://www.fabrikam.com/BusinessService.svc. You need to ensure that the Silverlight application can access the WCF service. You also need to ensure that no other Silverlight applications can access the WCF service. What should you do?
A. Publish a clientaccesspolicy.xml file at the root folder of http: //www.fabrikam.com by using t
he following
XAML fragment.
< xml version=”1.0″ encoding=”utf8″ >
<accesspolicy>

<crossdomainaccess>
<policy>
<allowfrom httprequestheaders=”SOAPAction”>
<domain uri=”*”/>
</allowfrom>
<grantto>
<resource path=”/BusinessService.svc” includesubpaths=”true”/>
</grantto>

</policy> </crossdomainaccess> </accesspolicy>
B. Publish a clientaccesspolicy.xml file at the root folder of http: //www.fabrikam.com by using t
he following
XAML fragment.
< xml version=”1.0″ encoding=”utf8″ >
<accesspolicy>

<crossdomainaccess>
<policy>
<allowfrom httprequestheaders=”SOAPAction”>

<domain uri=”http: //contoso.com”/>
</allowfrom>
<grantto>

<resource path=”/” includesubpaths=”true”/> </grantto> </policy> </crossdomainaccess> </accesspolicy>
C. Publish a clientaccesspolicy.xml file at the root folder of http: //www.contoso.com by using th
e following
XAML fragment.
< xml version=”1.0″ encoding=”utf8″ >
<accesspolicy>

<crossdomainaccess>
<policy>
<allowfrom httprequestheaders=”SOAPAction”>

<domain uri=”http: //www.fabrikam.com”/>
</allowfrom>
<grantto>

<resource path=”/” includesubpaths=”true”/> </grantto> </policy> </crossdomainaccess> </accesspolicy>
D. Publish a clientaccesspolicy.xml file at the root folder of http: //www.contoso.com by using th
e following
XAML fragment.
< xml version=”1.0″ encoding=”utf8″ >
<accesspolicy>

<crossdomainaccess>
<policy>
<allowfrom httprequestheaders=”SOAPAction”>

<domain uri=”*”/>
</allowfrom>
<grantto>

<resource path=”/BusinessService.svc” includesubpaths=”true”/> </grantto> </policy> </crossdomainaccess> </accesspolicy>
Answer: B

The Microsoft 70-506 certification can make you a competent person.It may enable a technician to know about the Microsoft 70-506 configurations,get information about the Microsoft 70-506 data center products and hardware and knowledge about Microsoft 70-506 united computing systems.

microdess
We are a team that focuses on tutoring Microsoft series certification exams and is committed to providing efficient and practical learning resources and exam preparation support to candidates. As Microsoft series certifications such as Azure, Microsoft 365, Power Platform, Windows, and Graph become more and more popular, we know the importance of these certifications for personal career development and corporate competitiveness. Therefore, we rely on the Pass4itsure platform to actively collect the latest and most comprehensive examination questions to provide candidates with the latest and most accurate preparation materials. MICROSOFT-TECHNET not only provides the latest exam questions, but also allows candidates to find the required learning materials more conveniently and efficiently through detailed organization and classification. Our materials include a large number of mock test questions and detailed analysis to help candidates deeply understand the test content and master the answering skills, so as to easily cope with the test. In addition, we have also specially launched exam preparation materials in PDF format to facilitate candidates to study and review anytime and anywhere. It not only contains detailed analysis of exam questions, but also provides targeted study suggestions and preparation techniques so that candidates can prepare more efficiently. We know that preparing for exams is not just about memorizing knowledge points, but also requires mastering the correct methods and techniques. Therefore, we also provide a series of simulation questions so that candidates can experience the real examination environment in the simulation examination and better adapt to the examination rhythm and atmosphere. These simulation questions can not only help candidates test their preparation results, but also help candidates discover their own shortcomings and further improve their preparation plans. In short, our team always adheres to the needs of candidates as the guide and provides comprehensive, efficient and practical test preparation support to candidates. We believe that with our help, more and more candidates will be able to successfully pass the Microsoft series certification exams and realize their career dreams.