Microsoft Recertification for MCSD: Windows Store Apps using C# - 70-491 Exam Practice Test
You create a mobile service to send push notifications to the app.
You configure the service and the app to work with Windows Push Notification Services
(WNS).
You add the following code to the App.xaml.cs file:

You need to ensure that the app can access the push notification channel.
What should you do first?
You configure the service and the app to work with Windows Push Notification Services
(WNS).
You add the following code to the App.xaml.cs file:

You need to ensure that the app can access the push notification channel.
What should you do first?
Correct Answer: B
Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
DRAG DROP
You need to develop an app to measure whether a surface is level. The app will be used on devices that have a gyrometer.
You have the following code: Which code snippets should you include in Target 1, Target 2 and Target 3 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 need to develop an app to measure whether a surface is level. The app will be used on devices that have a gyrometer.
You have the following code: Which code snippets should you include in Target 1, Target 2 and Target 3 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.
You need to ensure that the app meets the following requirements:
- When the app is started, the app bar must appear at the top of the app. - When the app is resized, if the new width of the app is less than 400 pixels, the app bar must be hidden. Users must be able to show the app bar by right-clicking.
- When the app is resized, if the new width is greater than 400 pixels, the app bar must be visible. Users must be able to hide the app bar by right-clicking, pressing Windows + Z, or swiping in from the top edge of the screen.
You have the following XAML markup in a file named MainPage.xaml. (Line numbers are included for reference only.)

You have the following code in a file named MainPage.xaml.es. {Line numbers are included for reference only.)

Which code segments should you insert in MainPage.xaml and MainPage.xaml.cs? (To answer, drag the appropriate code segments to the correct locations in the answer area. 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.
You need to ensure that the app meets the following requirements:
- When the app is started, the app bar must appear at the top of the app. - When the app is resized, if the new width of the app is less than 400 pixels, the app bar must be hidden. Users must be able to show the app bar by right-clicking.
- When the app is resized, if the new width is greater than 400 pixels, the app bar must be visible. Users must be able to hide the app bar by right-clicking, pressing Windows + Z, or swiping in from the top edge of the screen.
You have the following XAML markup in a file named MainPage.xaml. (Line numbers are included for reference only.)

You have the following code in a file named MainPage.xaml.es. {Line numbers are included for reference only.)

Which code segments should you insert in MainPage.xaml and MainPage.xaml.cs? (To answer, drag the appropriate code segments to the correct locations in the answer area. 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. You have the following requirements:
- Enable the app to receive shared data.
- Save the sharing settings for future use.
You need to ensure that the requirements are met.
What should you implement?
- Enable the app to receive shared data.
- Save the sharing settings for future use.
You need to ensure that the requirements are met.
What should you implement?
Correct Answer: D
Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
DRAG DROP
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.)

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

Correct Answer:

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' 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. ---
Technical Requirements
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'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.
NewsItem.cs

NewsSource.es FcedRetriever.es


SocialItem.es SocialSources.cs


SocialRetriever.es

You are designing a Windows Store app to manage image and video files.
The app must meet the following requirements:
Video files must be stored locally on each device.
The app must use local storage for data caching.
User settings must be shared across multiple devices.
Image files must be available across multiple devices.
Metadata for images must be stored in a central database.
Image files, video files, and their associated metadata must load as quickly as
possible.
You need to identify which data must be cached based on the app requirements.
Which two types of data should you identify? (Each correct answer presents part of the solution. Choose two.)
------
The app must meet the following requirements:
Video files must be stored locally on each device.
The app must use local storage for data caching.
User settings must be shared across multiple devices.
Image files must be available across multiple devices.
Metadata for images must be stored in a central database.
Image files, video files, and their associated metadata must load as quickly as
possible.
You need to identify which data must be cached based on the app requirements.
Which two types of data should you identify? (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).
You are designing a Windows Store app that creates large amounts of temporary binary data each time it is run.
You need to ensure that data is persisted while the app is running but deleted when the app is closed.
Which app data storage mechanism should you use? (Each correct answer presents a complete solution. Choose all that apply.)
You need to ensure that data is persisted while the app is running but deleted when the app is closed.
Which app data storage mechanism should you use? (Each correct answer presents a complete solution. Choose all that apply.)
Correct Answer: B,C,D
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 social media app. The app communicates with the
server by using a secure web service.
You need to ensure that users can securely store and retrieve web service credentials.
You have the following code:

Which code snippets should you insert 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 social media app. The app communicates with the
server by using a secure web service.
You need to ensure that users can securely store and retrieve web service credentials.
You have the following code:

Which code snippets should you insert 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 page for a Windows Store app.
You have the following requirements for the page:
- Display a button on the bottom app bar that allows the user to insert a picture. This button must be bound to the Insert command in the view model. - Display a button in the main content area of the page that allows the user to open documents. This button must be bound to the Open command in the view model.
You need to ensure that the requirements are met.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct locations in the answer area. 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 page for a Windows Store app.
You have the following requirements for the page:
- Display a button on the bottom app bar that allows the user to insert a picture. This button must be bound to the Insert command in the view model. - Display a button in the main content area of the page that allows the user to open documents. This button must be bound to the Open command in the view model.
You need to ensure that the requirements are met.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct locations in the answer area. 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:

HOTSPOT
You need to verify whether the app conforms to the Windows Store requirements.
What command should you run? (To answer, select the appropriate options in the answer area.)

You need to verify whether the app conforms to the Windows Store requirements.
What command should you run? (To answer, select the appropriate options in the answer area.)

Correct Answer:
