Test your knowledge

  1. You are developing a multilingual Silverlight 4 application. The application UI contains a StackPanel control that is used to host content. The content displayed is language aware and needs to support displaying bidirectional languages. Which property should you set for the StackPanel control?

    a. HorizontalAlignment

    b. Orientation

    c. FlowDirection

    d. TextAlign

  2. You are developing an out-of-browser Silverlight 4 application. You need to ensure that whenever a new version of the application is released, the user will be notified. You decided to use the CheckAndDownloadUpdate event. Under which application-level event should you place your code?

    a. Application_DownloadCompleted

    b. Application_Start

    c. Application_UnhandledException

    d. Application_Exit

  3. You are developing a Silverlight 4 application. You need to ensure that any unhandled exception in the application won't be thrown back to the page. Which code segment should you use?

    a. e.Handled = true

    b. e.Handled = false

    c. e.ThrowException = true

    d. e.Handled = null

  4. You are developing a Silverlight 4 application that requires a resource dictionary named StackPanelResources.xaml, which resides in an assembly file named AllMyDictionaries.dll. You reference the DLL file in your project. Which code snippet would you use to declare the external dictionary in your application?

    a.<ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/AllMyDictionaries;component/StackPanelResources.xaml"/></ResourceDictionary.MergedDictionaries>

    b.<ResourceDictionary.ExternalMergedDictionaries> <ResourceDictionary Source="/AllMyDictionaries;component/StackPanelResources.xaml"/></ResourceDictionary.ExternalMergedDictionaries>

    c.<ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/AllMyDictionaries/ StackPanelResources;component/StackPanelResources.xaml"/></ResourceDictionary.MergedDictionaries>

    d.<ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/AllMyDictionaries /StackPanelResources.xaml"/></ResourceDictionary.MergedDictionaries>

  5. You are developing a multilanguage Silverlight 4 application. You notice that when users in France and Netherland use your application, they are seeing it in their own locale while users in Germany don't. You decide to try and force the local to German using Silverlight's html object tag using the following line of code:
    <param name="uiculture" value="de" />
    

    Even though your project contains a German resource file the application still shows up in English. What can be the cause?

    a. You forgot to restart the IIS server running the application.

    b. You didn't specify German as a supported culture in the csproj file.

    c. You've added the wrong parameter. It should be langculture and not uiculture.

    d. You've added the wrong parameter. The value should read German and not de.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.251.57