Q1. HOTSPOT - (Topic 7)
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:
74. - (Topic 7)
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
Q2. - (Topic 6)
You need to ensure that the PrintNearMeCall function meets the technical requirements. Which code segment should you insert at line PS24?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
Explanation: http://msdn.microsoft.com/en-us/library/windows/apps/br229727.aspx http://msdn.microsoft.com/en-us/library/windows/apps/br229728.aspx
Q3. - (Topic 7)
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
Q4. HOTSPOT - (Topic 7)
You are developing 3 Windows Store app that uses a canvas object.
When the page loads, a blue rectangle must move across the canvas from left to right.
The following code calls the function to perform the animation:
You need to create the animateShape function.
How should you complete the relevant code? (To answer, select the correct code segment from each drop-down list in the answer area.)
Answer:
67. HOTSPOT - (Topic 7)
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.
Q5. HOTSPOT - (Topic 2)
You need to begin the project development.
Which project template should you choose? To answer, select the appropriate project template type in the answer area.
Answer: Topic 3, Scenario 3
Background
A. Datum Corporation manufactures electronic measuring equipment that is sold worldwide. The equipment requires periodic inspection and calibration by a team of inspectors. The equipment supports near field communication (NFC).
Inspectors currently receive daily email messages that list the locations they must visit that day and the equipment they must inspect calibrate, or update. To request schedule changes, inspectors must call, fax, or email a support center.
A. Datum plans to develop a Windows Store app that connects to a scheduling application hosted in Microsoft Azure. The app will allow inspectors to view client information, equipment information, and other documentation. Inspectors will use the app to report inspection results back to the company's Microsoft Azure application.
Business Requirements
Inspectors must be able to use the app to perform the following equipment-related tasks:
....
Gather information about each piece of equipment during inspections.
Update equipment software and firmware during inspections,
Identify missing and outdated equipment.
Submit orders for replacement equipment to the customer support team.
The app must support the following scheduling requirements:
.
When an inspector signs in to the app, daily schedule and task information must
automatically download to the inspector's Windows device. The information must include client locations, equipment inventory at each location, and equipment settings. The files contain sensitive and proprietary information.
. Inspectors must be able to request a list of other clients within a Specified search distance who might requirelocation, and equipment settings. The files contain sensitive and proprietary information.
. Inspectors must be able to request a list of other clients within a specified search distance who might require equipment inspection. . Inspectors must be able to refuse a task and remove it from their schedule.
Technical Requirements
File Download, Storage, and Security . When an inspector connects the app to a piece of equipment, the current equipment software, firmware, drivers, and updates must be copied to the inspector's Microsoft OneDrive folder. . Inspectors must be able to search for equipment software and firmware updates stored in their OneDrive folders. . Downloaded files must be enrolled in selective wipe and made unavailable eight hours after download. . The app must use background tasks to download files to the users' devices. . All content files downloaded for the inspectors use must be available for searching in the app. . All data transferred by the app between the Windows devices and the Microsoft Azure application must be secured and encrypted.
Equipment Interface and Connections . While the app is connected to a piece of equipment, inspectors must be able to simultaneously display the app and the content of their OneDrive folders. . The user interface must include a slide control that allows the inspector to specify a search range for nearby clients. . Inspectors must connect the app to any piece of equipment by using a tap connection.
File-Geofencing.js
Relevant portions of the app files are shown below. Line numbers in the code segments are included for reference only and include a two-character prefix that denotes the specific file to which they belong.
File- ProtectFile.js
Relevant portions of the app files are shown below. Line numbers in the code segments are included for reference only and include a two-character prefix that denotes the specific file to which they belong.
File- BackgroundTask.js
Relevant portions of the app files are shown below. Line numbers in the code segments are included for reference only and include a two-character prefix that denotes the specific file to which they belong.
Q6. - (Topic 7)
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
Q7. - (Topic 4)
You need to ensure that the settings for the About page meet the business requirements. Which attribute should you add to the DIV element in line AB07?
A. data-win-options="{width:'narrow'}"
B. data-win-options="{width:'346'}"
C. data-win-options="{size:'narrow'}"
D. data-win-options={size:'346'}"
Answer: A
Explanation: SettingsFlyout.width property (Windows)
Q8. - (Topic 3)
You need to ensure that drivers can be updated. What should you do?
A. Connect to the Documents library.
B. Implement the FileOpenPicker control.
C. Implement the OpenFileDialog class.
D. Implement the FileSavePicker control.
Answer: B
Q9. HOTSPOT - (Topic 6)
You need to ensure that the Printer Survey task populates the map pinpoints according to the requirements.
What code should you insert at line PM31? (To answer, select the correct code segment from each dropdown list in the answer area.)
Answer:
Topic 7, Mix Questions
31. HOTSPOT - (Topic 7)
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.
Q10. DRAG DROP - (Topic 7)
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: