Recertification for MCSD: Windows Store Apps using HTML5 v7.0

Page:    1 / 6   
Exam contains 88 questions

You are developing a newsreader app that provides users with daily aggregated articles from popular news sites.
You must allow users to share the URI of the articles.
The app must allow at least one of the following ways to share the URI:
-> With another Windows Store app
-> With the user's default web browser
You need to implement the sharing functionality.
Which property of the StandardDataFormats class should you use?

  • A. Rtf
  • B. WebLink
  • C. Html
  • D. ContentSourceApplication Link


Answer : B

You are developing a Windows Store app that will support the Play To feature.
You need to implement the user interface for the Play To feature.
What is the best approach to achieve the goal? More than one answer choice may achieve the goal. Select the BEST answer.

  • A. Enable the user to invoke the Play To feature by swiping to display the Devices charm flyout.
  • B. Enable the operating system to handle the Play To feature asynchronously without requiring user interaction.
  • C. Provide a standard Play To glyph in the user interface that programmatically invokes the Devices charm flyout.
  • D. Provide an HTML button control in the user interface that programmatically invokes the Devices charm flyout.


Answer : C

You are developing a Windows Store app that uses a CredentialPicker control to collect the user's user name and password credentials.
The CredentialPicker control has the following requirements:
-> The Remember my credentials check box must be selected by default.
-> The text "Enter user name and password" must be displayed in the message header of the dialog box.
You need to ensure that the requirements are met.
Which properties should you use? (To answer, drag the appropriate properties to the correct locations in the answer area. Each property 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:


The CredentialPickerOptions controls the appearance and behavior of a credential prompt.
Caption: Gets or sets the caption text that is displayed to the user.
CredentialSaveOption: Gets or sets the option on saving credentials..
The option specifies the initial state of the dialog's "Save Credential" check box. The default value is clear (unchecked).

You are developing a Windows Store app by using JavaScript.
You need to ensure that the user can capture video with the built-in camera and then process the resulting file.
Which code segment should you use?


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


Answer : A

You are developing a Windows Store app by using JavaScript.
You need to ensure that the user can capture a photograph with the built-in camera and then process the resulting file.
Which code segment should you use?


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


Answer : A

You are designing a testing strategy for a Windows Store app by using HTML5, JavaScript, and CSS3.
You need to use testing strategies that validate for the best performance.
Which testing strategies should you select? (To answer, drag the appropriate actions to the correct locations in the answer area. Each action 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 style app that uses RESTful services.
You need to ensure that the RESTful web service sends form information to the remote server. You have the following code:


Which HTTP verb and HTTP header should you include in Target 1 and Target 2 to complete the code? (To answer, drag the appropriate verb and header to the correct targets in the answer area.
Each verb and header 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:

Target 1: POST -
Target 2: "Content-type": "application/x-www-form-urlencoded"

You have a Windows Store app. You are reviewing code that caches data.
The code includes the following segment. Line numbers are included for reference only.
01 function setLocaiStorage(value) {
02 var storage = window.localStorage;
03 var value = document.getElement3yId('textToAdd').text;
04 storage.name = 'John';
05 storage.phone = ' 555-555-0100';
06 storage.message = value;
07 }
For each of the following statements, select Yes if the statement is true. Otherwise, select
No. Each correct selection is worth one point.




Answer :

You are developing a newsreader app that provides users with daily aggregated articles from popular news sites.
You must allow users to share the URI of the articles. The app must allow at least one of the following ways to share the URI:
-> With another Windows Store app
-> With the user's default web browser
You need to implement the sharing functionality.
Which property of the StandardDataFormats class should you use?

  • A. ApplicationLink
  • B. Html
  • C. ContentSourceWebLink
  • D. Storageltems


Answer : A

Reference:
http://msdn.microsoft.com/en-
us/library/windows/apps/windows.applicationmodel.datatransfer.standarddataformats.appli cationlink.aspx

You are developing a Windows Store app by using Microsoft Visual Studio.
The app must use a flat navigation pattern.
You need to start the app development from a built-in Visual Studio project template.
Which project template should you use?

  • A. Split App
  • B. Blank App
  • C. Hub App
  • D. Grid App


Answer : B

You are developing a Windows Store app.
The app must store data locally. When the app terminates, it must destroy the stored data.
You need to choose the appropriate data storage location.
Which storage location should you use?

  • A. sessionStorage
  • B. localStorage
  • C. indexedDB
  • D. roamingStorage


Answer : A

Reference:
http://msdn.microsoft.com/en-us/magazine/jj991982.aspx

You are developing a Windows Store app. The app will enable users to read e-books.
Users must be able to lock the app orientation so that rotating the device does not change the app display.
You need to implement the code for locking and unlocking the orientation.
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:

Display.DisplayInformation -

DisplayOrientations.none -

DisplayOrientations.landscape -

You are developing an app that provides sports statistics updates to a Windows tile. You are using Windows Push Notification Services (WNS) to provide updates to the app. You must implement the steps to request a notification channel as illustrated in the following image.


You need to ensure that the app implementation follows current Windows Store requirements and guidelines.
Select the correct answer from each list based on the information presented in the screenshot. Each correct selection is worth one point.




Answer :

You are developing a Windows Store enterprise app.
The app must retrieve data from other apps asynchronously across domains by using the
XMLHttpRequest object.
You need to retrieve the data.
What should you use?

  • A. WinJS.xhr
  • B. HttpWebRequest
  • C. HTTPClient
  • D. GetResponseStream()


Answer : B

Explanation: C# and the Web: Writing a Web Client Application with Managed Code in the

Microsoft .NET Framework -

You are developing a Windows Store app by using JavaScript. The app will be used to retrieve data from a web service.
The app must retrieve the current date and time in UTC format from the web service by using the URL http://www.treyresearch.net/ GetDateTimeinUTC.asmx. Errors must be handled.
You must ensure that data is retrieved successfully.
Which code segment should you use?


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


Answer : D

Explanation: WinJS.xhr function (Windows)

Page:    1 / 6   
Exam contains 88 questions

Talk to us!


Have any questions or issues ? Please dont hesitate to contact us

Certlibrary doesn't offer Real Microsoft Exam Questions.
Certlibrary Materials do not contain actual questions and answers from Cisco's Certification Exams.
CFA Institute does not endorse, promote or warrant the accuracy or quality of Certlibrary. CFA® and Chartered Financial Analyst® are registered trademarks owned by CFA Institute.