PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you insert at line L032?

***************************************
Case Study: 2
Scenario 2
Background
You are developing a Windows Store app by using JavaScript. The app is named Getting Around. The
app will use geo-location to provide location-aware assistance to people who are traveling. Users
will record audio information about locations. Full and trial versions of the app will be available from
the Windows Store. The feature name of the full version will be gettingAround. The trial version will
be valid for 30 days.
Business Requirements
The Getting Around app must meet the following business requirements:
Track the user’s current location in accordance with the Windows Certification guidelines for
devices and sensors.
Notify the user about upcoming obstacles.
Ensure that the user can play, pause, and stop audio recordings.
Ensure that the user can listen to recordings on Digital Living Network Alliance (DLNA)-compatible headphones.
Technical Requirements
The Getting Around app must meet the following technical requirements:
Connect to the Internet.
Use the device’s sensors to detect the user’s location.
Every 15 minutes, poll an obstacles database that is stored in the cloud.
Send messages about upcoming obstacles to the lock screen of the user’s device as soon as
an obstacle is detected.
Enable the user to save the most recently recorded location information on the device by
using a DataCompositeValue object.
Enable retrieval of audio recordings from a cloud server.
Headphones, when connected, must use the Play To technology. The PlayTo control that is
used for streaming is named aplayer and is in the HTML file that is used by the player.js file.
To assist with diagnostics and monitoring, the app must do the following:
Place an audit log that will track touch events on the user’s device.
Store the audit log in the user’s localSettings object.
Ensure that the audit log can be sent by email to the support desk if the user is having
problems.
The app must support the following hardware requirements:
Windows 8
Microphone and speakers
Internet connection
DLNA-compatible hearing device (optional)
While testing the app, you establish the following:
The app fails to detect the location on some devices.
When connectivity is lost, access to the obstacle data is not available.



***************************************
You need to turn off tracking. Which code segment should you insert at line L032?

Which code segment should you insert at line PL21?

***************************************
Case Study: 2
Scenario 2
Background
You are developing a Windows Store app by using JavaScript. The app is named Getting Around. The
app will use geo-location to provide location-aware assistance to people who are traveling. Users
will record audio information about locations. Full and trial versions of the app will be available from
the Windows Store. The feature name of the full version will be gettingAround. The trial version will
be valid for 30 days.
Business Requirements
The Getting Around app must meet the following business requirements:
Track the user’s current location in accordance with the Windows Certification guidelines for
devices and sensors.
Notify the user about upcoming obstacles.
Ensure that the user can play, pause, and stop audio recordings.
Ensure that the user can listen to recordings on Digital Living Network Alliance (DLNA)-compatible headphones.
Technical Requirements
The Getting Around app must meet the following technical requirements:
Connect to the Internet.
Use the device’s sensors to detect the user’s location.
Every 15 minutes, poll an obstacles database that is stored in the cloud.
Send messages about upcoming obstacles to the lock screen of the user’s device as soon as
an obstacle is detected.
Enable the user to save the most recently recorded location information on the device by
using a DataCompositeValue object.
Enable retrieval of audio recordings from a cloud server.
Headphones, when connected, must use the Play To technology. The PlayTo control that is
used for streaming is named aplayer and is in the HTML file that is used by the player.js file.
To assist with diagnostics and monitoring, the app must do the following:
Place an audit log that will track touch events on the user’s device.
Store the audit log in the user’s localSettings object.
Ensure that the audit log can be sent by email to the support desk if the user is having
problems.
The app must support the following hardware requirements:
Windows 8
Microphone and speakers
Internet connection
DLNA-compatible hearing device (optional)
While testing the app, you establish the following:
The app fails to detect the location on some devices.
When connectivity is lost, access to the obstacle data is not available.



***************************************
You need to specify the media to be streamed to DLNA-compatible devices. Which code segment
should you insert at line PL21?

You need to implement the audit log

***************************************
Case Study: 2
Scenario 2
Background
You are developing a Windows Store app by using JavaScript. The app is named Getting Around. The
app will use geo-location to provide location-aware assistance to people who are traveling. Users
will record audio information about locations. Full and trial versions of the app will be available from
the Windows Store. The feature name of the full version will be gettingAround. The trial version will
be valid for 30 days.
Business Requirements
The Getting Around app must meet the following business requirements:
Track the user’s current location in accordance with the Windows Certification guidelines for
devices and sensors.
Notify the user about upcoming obstacles.
Ensure that the user can play, pause, and stop audio recordings.
Ensure that the user can listen to recordings on Digital Living Network Alliance (DLNA)-compatible headphones.
Technical Requirements
The Getting Around app must meet the following technical requirements:
Connect to the Internet.
Use the device’s sensors to detect the user’s location.
Every 15 minutes, poll an obstacles database that is stored in the cloud.
Send messages about upcoming obstacles to the lock screen of the user’s device as soon as
an obstacle is detected.
Enable the user to save the most recently recorded location information on the device by
using a DataCompositeValue object.
Enable retrieval of audio recordings from a cloud server.
Headphones, when connected, must use the Play To technology. The PlayTo control that is
used for streaming is named aplayer and is in the HTML file that is used by the player.js file.
To assist with diagnostics and monitoring, the app must do the following:
Place an audit log that will track touch events on the user’s device.
Store the audit log in the user’s localSettings object.
Ensure that the audit log can be sent by email to the support desk if the user is having
problems.
The app must support the following hardware requirements:
Windows 8
Microphone and speakers
Internet connection
DLNA-compatible hearing device (optional)
While testing the app, you establish the following:
The app fails to detect the location on some devices.
When connectivity is lost, access to the obstacle data is not available.



***************************************
You need to implement the audit log. What should you do?

Which code segment should you insert at line L036?

***************************************
Case Study: 2
Scenario 2
Background
You are developing a Windows Store app by using JavaScript. The app is named Getting Around. The
app will use geo-location to provide location-aware assistance to people who are traveling. Users
will record audio information about locations. Full and trial versions of the app will be available from
the Windows Store. The feature name of the full version will be gettingAround. The trial version will
be valid for 30 days.
Business Requirements
The Getting Around app must meet the following business requirements:
Track the user’s current location in accordance with the Windows Certification guidelines for
devices and sensors.
Notify the user about upcoming obstacles.
Ensure that the user can play, pause, and stop audio recordings.
Ensure that the user can listen to recordings on Digital Living Network Alliance (DLNA)-compatible headphones.
Technical Requirements
The Getting Around app must meet the following technical requirements:
Connect to the Internet.
Use the device’s sensors to detect the user’s location.
Every 15 minutes, poll an obstacles database that is stored in the cloud.
Send messages about upcoming obstacles to the lock screen of the user’s device as soon as
an obstacle is detected.
Enable the user to save the most recently recorded location information on the device by
using a DataCompositeValue object.
Enable retrieval of audio recordings from a cloud server.
Headphones, when connected, must use the Play To technology. The PlayTo control that is
used for streaming is named aplayer and is in the HTML file that is used by the player.js file.
To assist with diagnostics and monitoring, the app must do the following:
Place an audit log that will track touch events on the user’s device.
Store the audit log in the user’s localSettings object.
Ensure that the audit log can be sent by email to the support desk if the user is having
problems.
The app must support the following hardware requirements:
Windows 8
Microphone and speakers
Internet connection
DLNA-compatible hearing device (optional)
While testing the app, you establish the following:
The app fails to detect the location on some devices.
When connectivity is lost, access to the obstacle data is not available.



***************************************
You need to enable the user to save coordinates as specified in the requirements. Which code
segment should you insert at line L036?

Which line of code should you insert at line 03?

You are developing a web page that enables customers to upload documents to a web server.
The page includes an HTML5 PROGRESS element named progressBar that displays information about the
status of the upload.
The page includes the following code. (Line numbersare included for reference only.)

An event handler must be attached to the request object to update the PROGRESS element on the page.
You need to ensure that the status of the upload is displayed in the progress bar.
Which line of code should you insert at line 03?

Which JavaScript code segment should you use?

You are developing a customer web form that includes the following HTML.
<label id=”txtValue” </label>
Information from the web form is submitted to a webservice.
The web service returns the following JSON object.
{
“Confirmation”: “1234”,
“FirstName”: “John”
}
You need to display the Confirmation numberfrom the JSON response in the txtValue label field.
Which JavaScript code segment should you use?