Question No: 51 – (Topic 5)

Page 1 and page 2 share a set of styles. Page 3 and page 4 share a different set of styles.

You need to recommend a solution to manage the styles. The solution must meet the following requirements:

->Ensure that the styles can be used by every app that you develop.

->Minimize the amount of effort required to update the styles across multiple apps.

What should you include in the recommendation?

Define all of the styles in external files and merge the styles in App.xaml.

Define all of the styles in a resource dictionary in App.xaml.

Define all of the styles in resource dictionaries at the page level.

Define all of the styles in the resources at the page level.

Answer: A

Question No: 52 – (Topic 5)

You are developing a Windows Store multi-player game.

You need to ensure that the game can authenticate users by using the credentials of a third-party social networking site.

Which class should you use?

PassportAuthenticationModule

WindowsAuthenticationModule

WebAuthenticationBroker

FormsAuthentication

Answer: C

Explanation: How can you take protocol modeled for the web and make it work in an app that is running on a Windows 8 device? The answer is the WebAuthenticationBroker component in the Windows Runtime.

The web authentication broker is designed to assist you with single sign-on scenarios by emulating a fully web-based experience.

Question No: 53 DRAG DROP – (Topic 5)

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

This example specifies that the notification should appear in 3 hours. This example uses the DateTime object.

Int16 dueTimeInHours = 3;

DateTime dueTime = DateTime.Now.AddHours(dueTimeInHours);

Question No: 56 – (Topic 5)

You are developing a Windows Store app.

You need to create a certificate to sign the app in a test environment. Which tool or tools should you use?

Makecert and Pvk2Pfx

Gacutil and Tlbimp

the Security Templates snap-in

Makecert and Sn

Answer: A

Explanation: Use MakeCert.exe and Pvk2Pfx.exe to create a test code signing certificate, so that you can sign your Windows Store app packages.

Incorrect:

not B: The Global Assembly Cache tool allows you to view and manipulate the contents of the global assembly cache and download cache.

Question No: 57 – (Topic 5)

You are developing an app that will be used to purchase and share music. Users will be allowed to share only content that they have purchased.

You need to display a message within the Share charm when users attempt to share

content that they have not purchased. What should you do?

Use a toast notification.

Use the SetText() method of the DataPackage object.

Set the LegalInformation property of the DataPackage object.

Use the FailWithDisplayText() method of the DataRequest object.

Answer: D

Explanation: Use the FailWithDisplayText method when your app is unable to supply a DataPackage to a target app. This method cancels the share operation and supplies a text message to the target app. The target app can then display this text to the user to explain why the share operation failed.

Question No: 58 – (Topic 5)

You are developing a Windows Store app. The app must respond to gestures as input. You need to implement the gesture events.

Which events can you use to achieve this goal? (Each correct answer presents a complete solution. Choose all that apply.)

Pinch

Holding

Tapped

PointerMoved

CapturePointer

Swipe

Answer: A,B,C,F Explanation:

GesturesGestures are a high-level way of interpreting touch input data into a set of common motions such as tapping, sliding, and pinching. Some common gestures used in

Windows 8 are: Interaction Description Tap

One finger touches the screen and lifts up. Press and hold

One finger touches the screen and stays in place. Slide

One or more fingers touch the screen and move in the same direction. Swipe

One or more fingers touch the screen and move a short distance in the same direction. Pinch

Two or more fingers touch the screen and move closer together or farther apart. Rotate

Two or more fingers touch the screen and move in a clockwise or counter-clockwise arc. Stretch