Microsoft Recertification for MCSD: Windows Store Apps using C# (070-491) Free Practice Test
Question 1
DRAG DROP
You are developing a Windows Store app that includes three objects. A data template named SceneTemplate provides the correct view for all of the objects.
The objects must be rendered as full-screen scenes that users can navigate between by
swiping.
You need to create the content of a page that renders each object to meet the requirement.
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 app that includes three objects. A data template named SceneTemplate provides the correct view for all of the objects.
The objects must be rendered as full-screen scenes that users can navigate between by
swiping.
You need to create the content of a page that renders each object to meet the requirement.
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:

Question 2
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: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 3
DRAG DROP
You are developing a Windows Store app.
The app has the following requirements:
- Open the Search charm.
- Provide query suggestions by using the GetSuggestions() method-
You need to ensure that the app meets the requirements. 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 app.
The app has the following requirements:
- Open the Search charm.
- Provide query suggestions by using the GetSuggestions() method-
You need to ensure that the app meets the requirements. 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:

Question 4
You are developing a Windows Store app.
You create a custom control named AppSettingsFlyout, which is inherited from the
SettingsFlyout control.
You need to ensure that the Settings flyout of the app is available from the charm bar.
When the flyout is dismissed, users must be returned to the Settings pane. You have the following code. (Line numbers are included for reference only.)

Which code segment should you insert at line 05?
You create a custom control named AppSettingsFlyout, which is inherited from the
SettingsFlyout control.
You need to ensure that the Settings flyout of the app is available from the charm bar.
When the flyout is dismissed, users must be returned to the Settings pane. You have the following code. (Line numbers are included for reference only.)

Which code segment should you insert at line 05?
Correct Answer: A
Question 5
You need to create the ButtonForegroundColor resource. Which code segment should you insert at line XA09?


Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 6
DRAG DROP
You are developing a Windows Store app.
You need to implement claims according to their appropriate use.
Which claim is appropriate for each purpose? (To answer, drag the appropriate claims to the correct locations in the answer area. Each claim 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 implement claims according to their appropriate use.
Which claim is appropriate for each purpose? (To answer, drag the appropriate claims to the correct locations in the answer area. Each claim 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:

Question 7
DRAG DROP
You are developing a Windows Store app.
The following code segment defines an event procedure. (Line numbers are included for reference only.)

You need to define a custom help setting in the event procedure.
Which three code segments should you insert in sequence at line 03? (To answer, move the appropriate code segments to the answer area and arrange them in the correct order.)

You are developing a Windows Store app.
The following code segment defines an event procedure. (Line numbers are included for reference only.)

You need to define a custom help setting in the event procedure.
Which three code segments should you insert in sequence at line 03? (To answer, move the appropriate code segments to the answer area and arrange them in the correct order.)

Correct Answer:

Question 8
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:

Question 9
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.)
Which storage solutions can you use to meet the specification for the app? (Each correct answer presents a complete solution. Choose all that apply.)
Correct Answer: A,C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 10
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?

Which code segment should you use?

Correct Answer: B