exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 3 question 6 discussion

Actual exam question from Microsoft's 70-480
Question #: 6
Topic #: 3
[All 70-480 Questions]

DRAG DROP -
You are developing an application for a retail store. The application will be used on mobile devices to provide real-time directions to the store.
You have the following requirements:
✑ The application must find out a user's location.
✑ As the user moves, the application must update the screen with the new location.
✑ As the user moves, the application must display the user's speed.
You need to develop the application to meet the requirements.
Which code segment or segments should you use? (To answer, drag the appropriate code segment or segments to the correct location in the work 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.)
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
* geolocation.watchPosition
watchPosition() - Returns the current position of the user and continues to return updated position as the user moves (like the GPS in a car).
* position data include:
/ coords.speed

The speed in meters per second -
/ coords.accuracy (incorrect answer)

The accuracy of position -
Etc.
* The getCurrentPosition() (incorrect)
The getCurrentPosition() method returns an object if it is successful. The latitude, longitude and accuracy properties are always returned. The other properties below are returned if available.
Reference: HTML5 Geolocation

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ziemcd
4 years, 8 months ago
I dont think the answers is right
upvoted 2 times
ziemcd
4 years, 8 months ago
nvm It is https://www.w3schools.com/html/html5_geolocation.asp
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...