Recertification for MCSD: Windows Store Apps using HTML5 v7.0 (70-490)

Page:    1 / 6   
Total 88 questions

You are developing a Windows Store app by using HTML5 and JavaScript. The app has
HEADER, NAV, and SECTION elements. The SECTION element displays a list of records.
The app will allow users to sort records multiple times. The app must meet the following requirements:
-> Each time the user performs a sort, replace the content in the SECTION element with the sorted records.
-> Animate the updated content by sliding the sorted records into the SECTION element.
You need to use the WinJS library to apply the animation to the SECTION element. Which function should you use?

  • A. createExpandAnimation()
  • B. enterContent()
  • C. createPeekAnimation()
  • D. enterPage()


Answer : B

You are developing a Windows Store app. The app includes the following HTML markup:


You are creating a Flexible Box layout for the application. The layout must be configured as shown in the following display.

The Flexible Box layout must conform to the following requirements:
-> The Child2 DIV element must appear on the right side of the layout.
-> The Child1 DIV element must appear immediately to the left of Child2.
You need to add CSS to ensure that the requirements are met. Which CSS segment should you add to the style sheet?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D


Answer : D

You are developing a Windows Store app. The app includes a handler for the suggestions requested event. The empty event handler is shown in the following code. (Line numbers are included for reference only.)


The app must meet the following requirements:
-> Provide an app-defined list of choices in the Search pane that responds to user query text changes.
-> Provide suggested search topics only when the user enters a query that contains the text "products".
You need to add code to meet the requirements.
Which code segment should you insert at line 02?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D


Answer : B

Explanation: SearchSuggestionCollection class (Windows)

You are developing a Windows Store app that will allow users to take photos by using the built-in device camera. The app will immediately open the photo for editing.
You need to programmatically specify the location from which to open the most recent photo taken by the app.
What is the best option to achieve the goal? More than one answer choice may achieve the goal. Select the BEST answer.

  • A. KnownFolders.pictureslibrary
  • B. SkyDrive.Pictures
  • C. KnownFolders.savedPictures
  • D. KnownFolders.cameraRoll


Answer : D

You develop a Windows Store app that uses several new user interface features.
You need to declare capabilities in the application manifest so that you can submit the app to the Windows Store.
How should you complete the relevant markup? (To answer, drag the appropriate markup segments to the correct locations in the answer area. Each markup 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.)




Answer :

You are developing a Windows Store app that will display photos that are stored on various services including Microsoft OneDrive and third-party social media sites.
You must use the WebAuthenticationBroker class to manage and provide authentication across all services. The app must support single sign-on (SSO).
You need to implement an authentication strategy for the app.
Which five 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.




Answer :

Explanation:
Box 1:


Box 2:

Box 3:

Box 4:

Box 5:

Note:
* (Step 1-2) The web authentication broker is designed to assist you with single sign-on scenarios by emulating a fully web-based experienced. You provide the broker with a starting URL. This URL typically contains information such as special application codes and passwords used to verify your apps identity with the provider and a redirect URL the provider should send the user to when they are authenticated. You also provide the broker with an ending URL.
*(step 3-4) Example:
WebAuthenticationResult result = await WebAuthenticationBroker.AuthenticateAsync(
WebAuthenticationOptions.None,
startUri,
endUri);
* Step 5:
The result will return a response status (successful, an HTTP error, or the user canceled) and the contents of the final redirect.
The first parameter is the token you can use for further access, and the second is when the token will expire. Use this to store the token and reuse it without having to request a new one each time. if (result.ResponseStatus == WebAuthenticationStatus.Success)
{
** Partial example:
private void OutputToken(String TokenUri)
{
Page outputFrame = (Page)rootPage.OutputFrame.Content;
TextBox FacebookReturnedToken = outputFrame.FindName("FacebookReturnedToken") as TextBox;
FacebookReturnedToken.Text = TokenUri;
}
try
{
String FacebookURL = "https://www.facebook.com/dialog/oauth?client_id=" +
FacebookClientID.Text + "&redirect_uri=" +
Uri.EscapeUriString(FacebookCallbackUrl.Text) +
"&scope=read_stream&display=popup&response_type=token";
System.Uri StartUri = new Uri(FacebookURL);
System.Uri EndUri = new Uri(FacebookCallbackUrl.Text);
WebAuthenticationResult WebAuthenticationResult = await
WebAuthenticationBroker.AuthenticateAsync(
WebAuthenticationOptions.None,
StartUri,
EndUri);
if (WebAuthenticationResult.ResponseStatus == WebAuthenticationStatus.Success)

You are developing a Windows Store app.
You have the following requirements.
-> Ensure that the app complies with the Windows Store requirements before deploying the app to the Windows Store.
-> Minimize the number of components that you must install from the Windows Store
Software Development Kit (SDK).
You need to install the SDK components.
Which features should you install? To answer, select or clear the appropriate check boxes in the answer area.




Answer :

You develop a Windows Store app that plays videos.
The videos include subtitles that are stored in Video Text Track (.vtt) files.
The app interface must include a button that displays the subtitles, and another button that hides the subtitles.
How should you complete the relevant code? To answer, drag the appropriate code segments to the correct targets. 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.




Answer :

Explanation:
Box 1:
WinJS.Utilities.query("#videoDisplay")[0];
Box 2:
video.textTracks[0].mode = TextTrack.SHOWING;
Box 3:
WinJS.Utilities.query("#videoDisplay")[0];
Box 4:
videoTracks[0].mode = TextTrack.OFF;

You develop a Windows Store app by using JavaScript. The current environment is shown in the following diagram.


A central cloud server must be able to push notifications to all mobile platforms including, but not limited to, Windows 8.x devices and Windows 8 Phones.
You need to configure the environment.
Select the correct answer from each list based on the information presented in the diagram.
Each correct selection is worth one point.




Answer :

Explanation:


Quickstart: Add a mobile service (.NET backend) (Windows)
Quickstart: Adding a mobile service using C++ (Windows)

You are developing a Windows Store app. The app will allow users to upload and share text messages.
The app must upload each message to a Windows Azure back-end database. The stored data must be encrypted by using public/private key encryption.
You need to implement data encryption for the app.
Which code segment should you use?


  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D


Answer : D

Reference: http://msdn.microsoft.com/en-
us/library/windows/apps/windows.security.cryptography.core.asymmetrickeyalgorithmprovi der.openalgorithm.ASPx

You are developing a Windows Store app.
You plan to use Windows Push Notification Services (WNS) in the app.
You need to identify whether the system has disabled notifications globally.
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.)




Answer :

You are developing a fitness app for distribution through the Windows Store.
The app must interact with the following USB device classes:
-> Webcam
-> Infrared thermometer
-> Scale
-> Printer
You need to modify the app manifest file as required to support the devices.
Which two device classes should you include? Each correct answer presents part of the solution.

  • A. Printer
  • B. AudioVideo
  • C. IrDa
  • D. PersonalHealthcare


Answer : C,D

You develop a Windows Store app.
The app user interface is slow to load, and occasionally stops responding.
You need to increase the responsiveness of the user interface.
What should you implement?

  • A. Promises
  • B. TheTask.Run method
  • C. The Web API of the Windows Library for JavaScript
  • D. Windows Runtime Metadata (WinMD) components


Answer : D

You are developing a Windows Store app.
You need to adjust the size of the on-screen text based on the current app window size by using media queries.
What media query feature should you listen for?

  • A. Device-width
  • B. Width
  • C. Resolution
  • D. Aspect-ratio


Answer : A

You are developing a Windows Store app. The app contains the following HTML markup segment:


The app must stream video to available devices by using the Play to feature.
You need to implement the Play to contract for the app.
How should you complete the relevant code? To answer, select the appropriate code segments from the lists in the answer area.




Answer :

Page:    1 / 6   
Total 88 questions