Microsoft Recertification for MCSD: Windows Store Apps using C# - 070-491 Exam Practice Test
HOTSPOT
You need to write code to comply with the search requirements of the item detail page. You have the following code:

Which code snippets should you insert in Target 1, Target 2, Target 3, and Target 4 to complete the code? (To answer, select the correct code snippet from each drop-down list in the answer area.)

You need to write code to comply with the search requirements of the item detail page. You have the following code:

Which code snippets should you insert in Target 1, Target 2, Target 3, and Target 4 to complete the code? (To answer, select the correct code snippet from each drop-down list in the answer area.)

Correct Answer:

Topic 2, Scenario 2
Overview
Fabrikam, Inc. is a realtor in the United States.
Fabrikam grants its customers access to a web site, where they can search for houses for rent and for sale. Its customers can enter basic requirements, such as location, number of rooms, dimensions, and a price range. The web site displays a list of houses that meet the customers' criteria. The customers can then view more details about each house and can add a listing to a favorites list.
Requirements
Business Goals
Fabrikam plans to provide a more interactive experience for its customers. Fabrikam is creating a video tour for each listing. The video tours can be used to visit the property virtually. Fabrikam plans to create a Windows Store app on Windows 8.1 RT and Windows 8.1 Pro devices.
General Requirements
Fabrikam identifies the following general requirements for the app: - The app interface must be available in English, Spanish, and French. - The app must provide the customers with the ability to perform searches the same
way that the current web site does. - It is expected that the customers will view more than 3,000 pictures annually. The main page of the app must show a list of the last 10 pictures that were viewed.
- If pictures are added to a listing that is in a customer's favorites list, the pictures must be downloaded automatically from Microsoft Azure. This must occur if the app is suspended or not running.
Printing Requirements
Customers must be able to print the details of a listing from the details page by clicking a button within the app. You plan to add the following XAML markup to the listing details page:
<Button x:Name="btnPrint" Content-"Print" Click-"InvokePrint" />.
Video Tour Requirements
Fabrikam identifies the following requirements for the video tours: - Customers must be able to play the video tour on a different device by using a button within the app. - When a customer clicks the details of a listing, the app must start downloading the video tour in the background. - When the app starts, the app must verify whether there are any pending downloads, and resume any paused downloads. - The last five viewed video tours that are not on the customer's favorites list must be cached for subsequent viewing. - Customers must be able to download all of the video tours for the properties that they added to their favorites list. - The property details page must contain a MediaElement control that will be used to play the video tour of the property. - When downloading the video tours, the app must remain responsive, and each download must be processed on a separate thread.
Package appxmanifest

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.)
Which capabilities should you enable? (Each correct answer presents part of the solution. Choose all that apply.)
Correct Answer: B,C
Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
You are developing a Windows Store app.
The app will store data in a text file.
You create the following method to store encrypted text in the text file:

The WriteData method writes the contents of an IBuffer object to a StorageFile object.
You need to recommend a solution to encrypt the data. The solution must minimize the use
of system resources and must ensure that the app can decrypt the data.
Which code segment should you recommend adding to line 06?

The app will store data in a text file.
You create the following method to store encrypted text in the text file:

The WriteData method writes the contents of an IBuffer object to a StorageFile object.
You need to recommend a solution to encrypt the data. The solution must minimize the use
of system resources and must ensure that the app can decrypt the data.
Which code segment should you recommend adding to line 06?

Correct Answer: C
Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
You are developing a Windows Store app.
The app will access several web resources that use an OAuth 2.0 authentication provider.
You need to recommend in which class to store user credentials so that users do not have
to reenter their credentials when they access the web resources.
Which class should you recommend?
The app will access several web resources that use an OAuth 2.0 authentication provider.
You need to recommend in which class to store user credentials so that users do not have
to reenter their credentials when they access the web resources.
Which class should you recommend?
Correct Answer: D
Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
A photo competition is ending.
You need to meet the requirements when a user clicks the toast notification.
Which code segment should you use?

You need to meet the requirements when a user clicks the toast notification.
Which code segment should you use?

Correct Answer: C
Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
DRAG DROP
You are developing a Windows Store app.
The app has the following accessibility requirements: - The automation name of each text box must be the same as the text box caption. - Each Label element must be associated with its corresponding text box. You need to create an interface that meets the requirements.
You have the following code:

Which code snippets should you include in Target 1 and Target 2 to complete the code? (To answer, drag the appropriate code snippets to the correct targets in the answer area. Each code snippet 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.)

You are developing a Windows Store app.
The app has the following accessibility requirements: - The automation name of each text box must be the same as the text box caption. - Each Label element must be associated with its corresponding text box. You need to create an interface that meets the requirements.
You have the following code:

Which code snippets should you include in Target 1 and Target 2 to complete the code? (To answer, drag the appropriate code snippets to the correct targets in the answer area. Each code snippet 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.)

Correct Answer:

DRAG DROP
You are developing a Windows Store app that provides users with the ability to make short audio recordings if an audio device is available.
You need to ensure that the users can replay the audio recording before they save the recording.
You have the following code: (Line numbers are included for reference only.)

Which code segments should you insert at lines 02, 07 and 10? (To answer, drag the appropriate code segments to the correct locations. Each code segment 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.)

You are developing a Windows Store app that provides users with the ability to make short audio recordings if an audio device is available.
You need to ensure that the users can replay the audio recording before they save the recording.
You have the following code: (Line numbers are included for reference only.)

Which code segments should you insert at lines 02, 07 and 10? (To answer, drag the appropriate code segments to the correct locations. Each code segment 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.)

Correct Answer:

You are developing a Windows Store app.
The app contains a page named MainPage. The page contains a media element named videoPlayer.
You need to provide users with the ability to play the contents of videoPlayer on different devices by using the Devices charm.
Which two code segments should you add to the OnNavigateTo event handler on MainPage? (Each correct answer presents part of the solution. Choose two.)

The app contains a page named MainPage. The page contains a media element named videoPlayer.
You need to provide users with the ability to play the contents of videoPlayer on different devices by using the Devices charm.
Which two code segments should you add to the OnNavigateTo event handler on MainPage? (Each correct answer presents part of the solution. Choose two.)

Correct Answer: A,C
Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
DRAG DROP
You are developing an app that converts text to speech.
You need to ensure that the app can read text from open documents.
You have the following code for the reading function of the app. (Line numbers are included
for reference only.)

Which code segments should you insert at lines 03, 05, and 08? (To answer, drag the appropriate code segments to the correct locations. Each code segment 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.)

You are developing an app that converts text to speech.
You need to ensure that the app can read text from open documents.
You have the following code for the reading function of the app. (Line numbers are included
for reference only.)

Which code segments should you insert at lines 03, 05, and 08? (To answer, drag the appropriate code segments to the correct locations. Each code segment 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.)

Correct Answer:

You place a breakpoint at line MP31 in the app.
When you debug the app, the debugger continuously catches a
System.UnauthorizedAccess exception.
You need to resolve the exception.
What should you do?
When you debug the app, the debugger continuously catches a
System.UnauthorizedAccess exception.
You need to resolve the exception.
What should you do?
Correct Answer: B
Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).