Explore topic-wise MCQs in Html.

This section includes 19 Mcqs, each offering curated multiple-choice questions to sharpen your Html knowledge and support exam preparation. Choose a topic below to get started.

1.

What is the default value of timeout?

A. infinity
B. 100
C. 0
D. 1000000
Answer» B. 100
2.

Which is not the case of invoking for error callback function?

A. user denies to share the information of a location
B. location information is unavailable
C. request timed out
D. when we are using WIFI
Answer» E.
3.

Which property is like the GPS in car?

A. watchPosition()
B. clearWatch()
C. getCurrentPosition()
D. showPosition()
Answer» B. clearWatch()
4.

Which of the following property does not has always a return?

A. coords.longitude
B. coords.latitude
C. coords.accuracy
D. coords.altitude
Answer» E.
5.

Which of the following is not the property of the ‘cords’ object?

A. Accuracy
B. Altitude
C. AltitudeAccuracy
D. enableHighAccuracy
Answer» E.
6.

Which method is used to get user’s position?

A. getCurrentPosition()
B. getDirectPosition()
C. post()
D. getDirection
Answer» B. getDirectPosition()
7.

WHICH_OF_THE_FOLLOWING_PROPERTY_DOES_NOT_HAS_ALWAYS_A_RETURN??$

A. coords.longitude
B. coords.latitude
C. coords.accuracy
D. coords.altitude
Answer» E.
8.

Which is not the case of invoking for error callback function?$

A. user denies to share the information of a location
B. location information is unavailable
C. request timed out
D. when we are using WIFI
Answer» E.
9.

Which_property_is_like_the_GPS_in_car?$

A. watchPosition()
B. clearWatch()
C. getCurrentPosition()
D. showPosition()
Answer» B. clearWatch()
10.

maximumAge returns time in _____________

A. nano-seconds
B. milliseconds
C. hour
D. seconds
Answer» C. hour
11.

What_is_the_default_value_of_timeout?

A. infinity
B. 100
C. 0
D. 1000000
Answer» B. 100
12.

Which parameter gives an accuracy of longitude and latitude?

A. Accuracy
B. AltitudeAccuracy
C. enableHighAccuracy
D. Extra accuracy
Answer» B. AltitudeAccuracy
13.

Which of the following is not the property of the ‘cords’ object?$

A. Accuracy
B. Altitude
C. AltitudeAccuracy
D. enableHighAccuracy
Answer» E.
14.

What timestamp property denotes?

A. time at which WIFI is used
B. the time at which data of the location is retrieved
C. the time at which callback function is evoked
D. current time
Answer» C. the time at which callback function is evoked
15.

Success callback function evoke only when ___________

A. user accepts to share location information
B. always evoke
C. gps is accessible
D. only by mobile browser
Answer» B. always evoke
16.

Which of the following technique is not for the mobile browser to identify the location of a user?

A. GPS
B. IP based position
C. WIFI based position
D. A-GPS
Answer» C. WIFI based position
17.

What does getCurrentPosition() returns?

A. latitude
B. longitude
C. direction
D. coordinates
Answer» E.
18.

What does showPosition() returns?

A. only latitude
B. only longitude
C. both latitude and longitude
D. direction
Answer» D. direction
19.

Which method is used to get user’s position?

A. getCurrentPosition()
B. getDirectPosition()
C. post()
D. getDirection
Answer» B. getDirectPosition()