PrepAway - Latest Free Exam Questions & Answers

Category: 70-506

Exam 70-506: TS: Silverlight 4, Development

What should you do?

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?

What should you do?

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?

Which line of code should you insert at line 04?

You are developing a Silverlight 4 application. You configure the application to use GPU acceleration. The application is hosted on a Web page 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 <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?

Which two actions should you perform?

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 fragment.
<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=”Center” />
</Grid>
The Web application also has a Web page named default.aspx that has the following HTML markup. (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 application loading screen. You also need to ensure that the PrgLoader TextBlock displays the
progress percentage of loading the Silverlight application. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Which HTML markup should you insert at line 03?

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 strSecondaryEmail. You need to ensure that both variables are passed to the Silverlight application. Which HTML markup should you insert at line 03?

Which HTML markup should you insert at line 03?

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 only.)

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?

Which naming convention should you use?

You are developing a multilingual Web site by using Silverlight 4 and Microsoft Visual Studio 2010. 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 users browser supports English, French, or French (Canada).
It uses the French resource file if the end users browser supports only French (Belgium).
It uses the English resource file if the end users browser does not provide the language it supports. Which naming convention should you use?


Page 3 of 1012345...10...Last »