Test Series - html

Test Number 65/72

Q: Which navigator object property returns a geolocation object?
A. appVersion
B. geolocation
C. language
D. appCodeName
Solution: There are many navigator object properties, geolocation returns a geolocation object that can be used to locate user’s position, appVersion returns the version information of the browser, appCodeName returns the code name of the browser.
Q: What returns the engine name of the browser?
A. product
B. userAgent
C. platform
D. onLine
Solution: Product property returns the engine name of the browser, userAgent returns user-agent header sent by the browser to the server, platform returns for which platform the browser is compiled. OnLine determines whether the browser is online or not.
Q: Action box does not contains _______
A. tabs
B. geolocation buttons
C. search box
D. radio buttons
Solution: The action box contains tabs, a geolocation button, geoloaction options and search box, by the use of tabs we can switch between different kind of maps and search engines.
Q: Which button let us move the map to the current position of the device?
A. currentPositionBtn
B. enableHighAccuracy
C. timeout
D. maximumAge
Solution: The geolocation HTML includes a currentPositionBtn which is used to move the map to the current position of the device, there are 3 inputs to let the user choose the geolocation options enableHighAccuracy, timeout, and maximumAge.
Q: Search box does not contain __________
A. currentPositionBtn
B. search button
C. dropdown list
D. input field
Solution: Search box contains an input field in which we can insert the name of the place you are looking for, a search button or a dropdown list, depending on user experience provided by the search tool.
Q: How many kinds of map does Geo support?
A. 1
B. 2
C. 3
D. 4
Solution: Geo supports 3 different kinds of interactive map like OpenStreeMap, Google Maps, a hybrid map that is Google Map with OpenStreetMap tiles placed on it, these maps are loaded in 3 different HTML elements.
Q: OpenStreetMap cannot extend map to implement __________
A. showMap
B. showPOIs
C. search
D. toProjection
Solution: The openStreetMap and GoogleMap objects extent Map to implement showPOIs, showMap, search and showPosition methods, which make use of Google Maps and OpenLayers library.
Q: Which is not a kind of error?
A. PERMISSION_UNAVAILABLE
B. PERMISSION_DENIED
C. TIMEOUT
D. POSITION_UNAVAIALBLE
Solution: Examples of error are POSITION_UNAVAIALBLE, PERMISSION_DENIED and TIMEOUT. PositionError is the object returned by Geolocation API in case of error.
Q: getCurrentPosition does not take the argument?
A. successCallback
B. options
C. errorCallback
D. Timeout
Solution: getCurrentPosition method takes three arguments successCallbaack, errorCallback, options. A successCallback set to GetMap.showMap by MapSwitcher or to GeoMap.showPosition by GeolocationBox.
Q: Which of the following cancels an ongoing watchPosition call?
A. clearWatch
B. watchPosition
C. getCurrentPosition
D. getPositionUsingMethodName
Solution: clearWatch cancels an ongoing watchPosition call, watchPosition method retrieves periodic updates about a current geographic location of the device, getCurrentPosition retrieves current geographic location.

You Have Score    /10