Recertification for MCSD: Windows Store Apps using C#
Question No: 11 – (Topic 4)
You need to track the screen orientation and page size. Which code segment should you insert at line CS09?
Question No: 12 – (Topic 4)
You need to configure the Picture Sharer app to support only the required device orientations.
What should you do?
In the App.xaml file, configure the Portrait and Portrait-flipped orientations.
In the Package.appxmanifest file, configure the Snapped and Filled orientations.
In the PictureSharerMainPage.xaml file, configure the Landscape and Landscape- flipped orientations.
In the App.xaml file, configure the Portrait and Landscape orientations.
In the App.manifest file, configure the Portrait and Portrait-flipped orientations.
In the Package.appxmanifest file, configure the Landscape and Landscape-flipped orientations.
Question No: 13 – (Topic 4)
You need to localize the Picture Sharer app in the required language.
Which actions should you perform? (Each correct answer presents part of the solution. Choose all that apply.)
Add a Uid attribute to any XAML elements that must be localized.
Create a folder named fr-CA at the root of the project.
Create a resource file named resources.res.
Create a resource file named resources.resw.
Create a folder named es-ES at the root of the project.
Add a Name attribute to any XAML elements that must be localized.
Explanation: * (A) To localize a certain property of a XAML element you only need to add a x:Uid=quot;SomeKeyquot; attribute to the element and add the appropriate resource to the .resw file.
(B) The app must be localized for the French Canadian market.
(BD) Example: A French language resource named quot;Greetingquot; whose value is quot; Bonjour!quot;. To create the resource file, add a folder named fr-FR to your project, and then add a resource file named Resources.resw to the folder.
In Windows Store apps, you designate the names of localized resource files by creating a folder to store the resources and images of a supported culture. You can then describe the
resource by using the culture name (such as quot;ko-krquot;) followed by the default resource name and resource file extension (such as quot;ko-kr\Resources.reswquot;).
Topic 5, Scenario 5 Background
You are developing a Windows Store style e-reader app.
->Users must be able to upload e-books and documents and download them to e- reader devices.
->Users must be able to set a password to restrict access to their e-books and documents.
->Users must be able to create and store encrypted metadata about their e-books and documents.
->The app must replace system-generated error messages with custom-defined messages. These custom messages must come from a list of approved text.
->User actions such as printing pages, saving users#39; current locations in documents, and taking notes should be enabled from buttons on an AppBar control.
->The app must provide trial functionality that will expire after 14 days. If the app expires while it is running, the app must display an expiration message to the user and prompt the user to purchase the app.
Technical Requirements General:
->Configuration files must be read-only. All user settings must be stored in the
Contoso Settings Service.
->The SocialPoller background task must run the code in the DoWork() method to collect content from the Contoso feed.
->The UI must always remain responsive to user actions.
->Secured e-book and document passwords must to be encrypted so that only the user who created the passwords can retrieve the metadata associated to the e- books and documents.
->The system must log all exceptions through the auditing object and notify technicians of the issue.
->The app must cache the next two chapters to the local device for users to read while disconnected from the network. This cache must be persisted if a reboot is
->User state such as the current location in an e-book or document must be stored in the Microsoft Azure SQL database.
->User settings such as font sizes and colors must be stored through the Contoso Settings Service.
->Communication between the app and e-book vendors must occur over an encrypted communication channel.
->Communication must use certificates to enable the SSL connection.
->The isPrintEnabled variable must determine if the user can print.
->The isMarketEnabled variable must determine if the user can use the marketplace.
->The isTrialEnabled variable must determine if the application is still in trial mode.
->The default printing options are portrait orientation and grayscale color mode.
->The app must enable the user to select the media size and printing orientation.
Question No: 14 – (Topic 5)
You need to protect the metadata for the secure documents.
Which protection descriptor should you use for the DataProtectionProvider object?
Explanation: http://msdn.microsoft.com/en- us/library/windows/apps/windows.security.cryptography.dataprotection.dataprotectionprovi der.aspx
Question No: 15 – (Topic 5)
You need to enable the capabilities that allow communication according to the technical requirements.
Which capabilities should you enable? (Each correct answer presents part of the solution. Choose all that apply.)
Shared User Certificates
Default Windows Credentials
Explanation: B: From scenario:
Communication between the app and e-book vendors must occur over an encrypted communication channel.
Communication must use certificates to enable the SSL connection. C:
Question No: 16 DRAG DROP – (Topic 5)
You need to meet the app caching requirements.
Which caching technique should you use in each scenario? (To answer, drag the appropriate technique to the correct scenario. Each technique may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
Topic 6, Scenario 6 Business Requirements
The app must enable users to perform the following tasks:
->Define a feed title.
->Define a list of RSS feeds that the users want to subscribe to.
->View information about topics that are popular on the users#39; selected social networks.
->Share content that is aggregated by the app.
->Search aggregated content by using only the Search charm.
->Share RSS feed content by using the Share charm.
->Display general help information by using the Settings charm.
The app must list the name of each social network to which the user subscribes. The app must indicate whether the user is authenticated to that social networking site.
The available data sources will be expanded to include JSON data from a third-party social networking site that is hosted by Litware, Inc. An SSL connection to the Litware social network is available.
The app has the following technical requirements:
->Retrieve user data from the social network services by using the authentication credentials.
->When making an HTTP request for content, read all content prior to acting on the response.
->When SSL is available, use SSL to retrieve data from social network providers.
The code that is used to retrieve data from RSS feeds must be reusable.
The app must display the information about the user#39;s social network subscriptions in a layout control. The app must display authentication screens from the social networking sites when an authentication screen is available.
The custom XAML code that was provided by the design team must be available for all
ListView controls in the app.
Data from the FeedRetriever class must be presented in a data control.
Two developers will create the SocialRetriever class, with the following assignments:
->Developer1 must update methods for getting data.
->Developed must implement three new methods for exposing data to the user interface.
All methods must be self-contained and must not affect other methods in the SocialRetriever class. Multiple developers must not work in the same file at the same time.
Question No: 17 – (Topic 6)
You need to make available the content that is provided by the design team. Which markup segment should you use?
Question No: 18 – (Topic 6)
You need to create a custom template for a Listview control that will be located on a page that has the NewsSource object bound to the DataContext property.
Which code segment should you use?
Question No: 19 – (Topic 6)
You need to authenticate to a social networking site.
Which code segments should you insert at line SR40? (Each correct answer presents part of the solution. Choose all that apply.)
Explanation: A (not D): Scenario: Retrieve user data from the social network services by using the authentication credentials.
C (not B): Scenario: When SSL is available, use SSL to retrieve data from social network providers.
Question No: 20 – (Topic 6)
You need to implement storage for the user preferences.
Which storage solutions can you use to meet the specification for the app? (Each correct answer presents a complete solution. Choose all that apply.)
The await Windows.Storage.ApplicationData.Current.LocalFolder method
Explanation: * Scenario: The app will run locally on the user#39;s device. User preferences will be available locally.
Topic 7, Scenario 7 Background
You are developing a Windows Store media sharing app for the sates and marketing team at Margie#39;s Travel. The app will allow team members to download documents and media about current and proposed products and services from the company#39;s cloud-based media manager service. Team members will be able to add new content to the cloud service and to print and share content.
Business Requirements Behavior:
->Team members must be able to download product information data sheets, marketing materials, and product demonstration video clips from the company#39;s server.
->Team members must be able to select and upload multiple files that contain new
and modified content as a batch.
->Team members must be able to stream video clips to other devices in the vicinity of the team member#39;s device. The app will not support the streaming of photographs.
->The app must allow team members to pause, restart, or cancel uploads and downloads of files. The app must report both the progress and completion status of these operations. It must also return results about upload and download operations.
->The app must include a photo viewer. When photos are added or deleted in the photo viewer window, they must animate in and out of the field of view. Remaining photos must move to fill the empty space created when photos are deleted. The photo viewer must support semantic zoom.
->The app must display information on the lock screen of the device. The information must include text-based alerts and a value indicating the number of pending file downloads.
Technical Requirements Behavior:
->The company has an existing component named VideoProcessor. This component
->When a team member selects a video clip to download, the app must download
the file as a background task. After a download has started, the app should maintain the network connection to the server even when the app is suspended.
->The app must include a custom photo viewer control. The control will be updated frequently and may be deployed separately from the rest of the app. The photo viewer control must support templates and styles.
->The app must use a Grid control as the root layout control. The photo viewer must be placed in the second row of the grid.
->The appearance of the app must change when the app is not in full screen mode. The first row of the root layout grid must not change height- The second row must fill all available space.
->Available video clips must be displayed in an extended ListView control class named DownloadedVideoList
->The template for the DownloadedVideoList is already defined.
->New video clips should be added to DownloadedVideoList when the
DownloadVideo() method completes.
->New video clip items in the DownloadedVideoList should color change periodically to alert the team member.
Relevant portions of the app files are as follows. (Line numbers in the code segments are included for reference only and include a two-character prefix that denotes the specific file to which they belong.)
|Lowest Price Guarantee||Yes||No||No|
|Free VCE Simulator||Yes||No||No|