Which code segment should you use?
You are developing a Windows Store app. The app will receive push notifications from the Windows
Push Notification Services (WNS).
You store the secret for authentication in a variable named encodedSecret. You store the security ID
for authentication in a variable named encdedSid. Both variables contain string data encoded for use
in a Uniform Resource Identifier (URI).
You create a WebClient object named client.
You need to use the client object to retrieve an OAuth token as a string and to store the string in a
variable named response.
Which code segment should you use?
Which three capabilities should you identify?
You are developing a Windows Store app that will provide users with the ability to create photos by
using the hardware on a device.
Once the users create the photos, they can save the photos to the Pictures library.
If the users sign in by using a Microsoft account, they can grant other users remote access to the
photos.
You need to identify which capabilities must be enabled for the app.
Which three capabilities should you identify? (Each correct answer presents part of the solution.
Choose three.)
You need to ensure that the app can run only if the device is located in a specified location
You are developing a Windows Store app.
You need to ensure that the app can run only if the device is located in a specified location. If the
device is moved from the location while the app is running, the app must be disabled.
What should you use? (More than one answer choice may achieve the goal. Select the BEST answer.)
Which code segment should you use?
You need to use a control to display multiple elements
You develop several Windows Store apps.
You need to use a control to display multiple elements.
The control has the following requirements:
• Each item must be displayed as a button.
• When a user clicks a button, the button must show that it was clicked.
• Developers must be able to bind the control to a collection.
• Developers must be able to handle an event when items are selected.
• Developers must be able to specify whether the control provides users with the ability to
select either one or multiple items.
What should you use? (More than one answer choice may achieve the goal. Select the BEST answer.)
For each of the following statements, select Yes if the statement is true…
HOTSPOT
You are developing a Windows Store app.
A file named Test.csv contains the following content:
You have a project that contains the following code:
The Test1 function is the only test in the project.
For each of the following statements, select Yes if the statement is true. Otherwise select No. Each
correct selection is worth one point.
Which code snippets should you insert in Target 1, Target 2, Target 3, Target 4, Target 5 and Target 6 to comp
HOTSPOT
You plan to develop several Windows Store apps.
You plan to use a CheckBox control in all of the apps. The CheckBox control will use a custom visual
display.
You create XAML markup to customize the control. The code contains all of the necessary visual
components for the control, including elements named checkedGlyph and indeterminateGlyph.
You need to ensure that the check box meets the following requirements:
If a value for the check box was NOT set, the check box must display indeterminateGlyph.
When the check box is selected, the check box must display checkedGlyph.
If the check box is cleared, the check box must NOT display any glyphs.
You have the following XAML markup:
Which code snippets should you insert in Target 1, Target 2, Target 3, Target 4, Target 5 and Target 6
to complete the XAML markup? (To answer, select the correct code snippet from each drop-down
list in the answer area.)
Which code snippets should you insert in Target 1 and Target 2 to complete the code?
HOTSPOT
You are developing a Windows Store app.
The app must receive push notifications from a calling app by using Windows Push Notification
Service (WNS).
You have the following code:
Which code snippets should you insert in Target 1 and Target 2 to complete the code? (To answer,
select the correct code snippet from each drop-down list in the answer area.)
Which three code segments should you arrange in sequence at lines 03, 04, and 05?
DRAG DROP
You are developing a Windows Store app that writes data to a file.
You have the following requirements:
If a file exists with the same name, it should be overwritten by the new file.
The data must be stored in the app data folder.
The method is defined as follows. (Line numbers are included for reference only.)
You need to complete the method to meet the requirements.
Which three code segments should you arrange in sequence at lines 03, 04, and 05? (To answer,
move the appropriate code segment from the list of code segments to the answer area and arrange
them in the correct order.)
Which three actions should you perform in sequence?
DRAG DROP
You are developing a Windows Store app that uploads large files to the Internet by using background
tasks.
uploadTask is an instance of the IBackgroundTask interface that provides access to a background
task instance. UploadFilesAsync() is the asynchronous method that performs the upload.
You need to ensure that the app performs the upload operation asynchronously in a background task.
Which three actions should you perform in sequence? (To answer, move the appropriate actions
from the list of actions to the answer area and arrange them in the correct order.)