exam questions

Exam 98-375 All Questions

View all questions & answers for the 98-375 exam

Exam 98-375 topic 1 question 81 discussion

Actual exam question from Microsoft's 98-375
Question #: 81
Topic #: 1
[All 98-375 Questions]

When you are using the GeoLocation API, which two arguments does the getCurrentPosition function utilize? (Choose two.)

  • A. success callback
  • B. MAC address
  • C. browser type
  • D. ip address
  • E. failure callback
Show Suggested Answer Hide Answer
Suggested Answer: DE 🗳️
The getCurrentPosition() method returns an object if it is successful. The latitude, longitude and accuracy properties are always returned.The second parameter of the getCurrentPosition() method is used to handle errors. It specifies a function to run if it fails to get the user's location.
Note:
* The HTML5 Geolocation API is used to get the geographical position of a user.
* The getCurrentPosition() method returns an object if it is successful. The latitude, longitude and accuracy properties are always returned.

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
_dudus
Highly Voted 5 years ago
A, E is correct
upvoted 8 times
gmzych
5 years ago
D,E are correct answers. The latitude, longitude and accuracy properties are always returned. The second parameter of the getCurrentPosition() method is used to handle errors. It specifies a function to run if it fails to get the user's location
upvoted 1 times
_dudus
5 years ago
But ip address is not argument of getCurrentPosition() function, referring to mozilla docs this is how it looks like: getCurrentPosition(success[, error[, [options]]) There is no ip address :)
upvoted 4 times
...
...
Jaymile_1409
2 years, 1 month ago
The getCurrentPosition function gets the user location one time. It takes two arguments in the form of callbacks: one for a successful location query and one for a failed location query.
upvoted 1 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 ...