Basic Google Maps-API and development MCQ
1. Which Map class method is used to animate the transition of the map center to a new LatLng??
panBy
newCenter
panCenter
panTo
Note: This Question is unanswered, help us to find answer for this one
Check Answer
2. Which control contains a Pegman icon that can be dragged onto a map??
Zoom
Pan
Overview
StreetView
Answer
Correct Answer:
StreetView
Note: This Question is unanswered, help us to find answer for this one
Check Answer
3. How would you call the function testFunction only the first time the map is loaded?
google.maps.event.addListenerOnce(map, 'load', testFunction);
google.maps.event.addListener(map, 'idle', testFunction);
google.maps.event.addListener(map, 'load', testFunction);
google.maps.event.addListenerOnce(map, 'idle', testFunction);
Answer
Correct Answer:
google.maps.event.addListenerOnce(map, 'idle', testFunction);
Note: This Question is unanswered, help us to find answer for this one
Check Answer
4. What method of an OverlayView would the overlay's html elements be in?
draw
setMap
onAdd
add
Note: This Question is unanswered, help us to find answer for this one
Check Answer
5. How do you extend a LatLngBounds object to contain another LatLngBounds object?
latLngBounds.add(otherLatLngBounds);
latLngBounds.expand(otherLatLngBounds);
(all of these will work)
latLngBounds.union(otherLatLngBounds);
Answer
Correct Answer:
latLngBounds.union(otherLatLngBounds);
Note: This Question is unanswered, help us to find answer for this one
Check Answer
6. Which class is used to create a new map type and apply styles to it?
MapTypeControlOptions
MapTypeStyler
StyledMapType
MapType
Answer
Correct Answer:
StyledMapType
Note: This Question is unanswered, help us to find answer for this one
Check Answer
7. In what method of an OverlayView would you initialize html elements to be added to the map?
draw
setMap
add
onAdd
Note: This Question is unanswered, help us to find answer for this one
Check Answer
8. True or False: MVC state changes pass arguments in their events.
False
True
Note: This Question is unanswered, help us to find answer for this one
Check Answer
9. Which object is the most atomic unit of the route returned in response to a directions request?
DirectionStep
DirectionResult
DirectionLeg
DirectionRoute
Answer
Correct Answer:
DirectionStep
Note: This Question is unanswered, help us to find answer for this one
Check Answer
10. What object represents a set of x, y coordinates on the map?
LatLngBounds
point
pixel
position
Note: This Question is unanswered, help us to find answer for this one
Check Answer
11. How would you add a custom control to a map?
map.addControl(customControl, ControlPosition);
map.controls[ControlPosition].add(customControl);
map.controls.add(customControl, ControlPosition);
map.controls[ControlPosition].push(customControl);
Answer
Correct Answer:
map.controls[ControlPosition].push(customControl);
Note: This Question is unanswered, help us to find answer for this one
Check Answer
12. How can a marker be places so that it is certain to be placed above any other existing markers?
map.addMarker(marker, google.maps.Marker.MAX_ZINDEX + 1);
marker.setZIndex(999);
marker.setZIndex(google.maps.Marker.MAX_ZINDEX + 1);
marker.bringToFront();
Answer
Correct Answer:
marker.setZIndex(google.maps.Marker.MAX_ZINDEX + 1);
Note: This Question is unanswered, help us to find answer for this one
Check Answer
13. What class allows users to draw overlays on the map themselves?
OverlayControl
DrawingManager
DrawingLibrary
OverlayManager
Answer
Correct Answer:
DrawingManager
Note: This Question is unanswered, help us to find answer for this one
Check Answer
14. True or False: Direction results from Toronto, Ontario to Milwaukee, Wisconsin will be displayed in miles by default.
True
False
Note: This Question is unanswered, help us to find answer for this one
Check Answer
15. Which object should you use to specify that you want to add controls to a map?
AddControls
ControlOptions
MapControls
MapOptions
Answer
Correct Answer:
MapOptions
Note: This Question is unanswered, help us to find answer for this one
Check Answer
16. What property of MarkerOptions defines the rollover text for a marker?
title
markerText
toolTip
rolloverText
Note: This Question is unanswered, help us to find answer for this one
Check Answer
17. Which map pane should you add an OverlayView to if you want it to respond to click events?
overlayMouseTarget
overlayImage
overlayLayer
mapPane
Answer
Correct Answer:
overlayMouseTarget
Note: This Question is unanswered, help us to find answer for this one
Check Answer
18. What function returns a LatLng based on a pixel position?
fromPixelToLatLng
getPositionOf
fromDivPixelToLatLng
fromPointToLatLng
Answer
Correct Answer:
fromDivPixelToLatLng
Note: This Question is unanswered, help us to find answer for this one
Check Answer
19. What RectangleOptions property allows a rectangle to be resized by the user?
editable
draggable
resizable
clickable
Note: This Question is unanswered, help us to find answer for this one
Check Answer
20. Which of the following is not a valid ControlPosition?
Bottom_Center
Top_Right
Right_Center
Center_Bottom
Answer
Correct Answer:
Center_Bottom
Note: This Question is unanswered, help us to find answer for this one
Check Answer
21. How would you resize the map after its containing element has been resized?
google.maps.event.trigger(map, 'resizeMap');
google.maps.event.trigger(map, 'resize');
map.resize();
map.setSize(newSize);
Answer
Correct Answer:
google.maps.event.trigger(map, 'resize');
Note: This Question is unanswered, help us to find answer for this one
Check Answer
22. Which of the following is not one of the additional libraries that you can load into a JavaScript Google Maps API application?
adsense
geometry
topography
weather
Answer
Correct Answer:
topography
Note: This Question is unanswered, help us to find answer for this one
Check Answer
23. Which class is used to display the results of a directions query?
DirectionsRequest
DirectionsRenderer
DirectionsDisplay
DirectionsResult
Answer
Correct Answer:
DirectionsRenderer
Note: This Question is unanswered, help us to find answer for this one
Check Answer
24. Which function will animate the map to a newly defined center point, provided the change is less than both the width and height of the map?
setZoom
panToBounds
panTo
setCenter
Note: This Question is unanswered, help us to find answer for this one
Check Answer
25. Which of the following events are fired after the zoom has changed on the map?
center_changed
resize
bounds_changed
changed
Answer
Correct Answer:
bounds_changed
Note: This Question is unanswered, help us to find answer for this one
Check Answer
26. How would you remove a marker from a map?
marker.setVisible(false);
marker.destroy();
map.remove(marker);
marker.setMap(null);
Answer
Correct Answer:
marker.setMap(null);
Note: This Question is unanswered, help us to find answer for this one
Check Answer
27. Which class is used to draw an overlay of connected line segments?
Polygon
Polyline
Drawline
LineOverlay
Note: This Question is unanswered, help us to find answer for this one
Check Answer
28. To remove the polyline "flightPath" from a map, which syntax would you use?
flightPath.setPolyline = 0;
flightPath.setDisplay(null);
flightPath.setPolyline = null;
flightPath.setMap(null);
Answer
Correct Answer:
flightPath.setMap(null);
Note: This Question is unanswered, help us to find answer for this one
Check Answer
29. Which of the following will call the testFunction function when the div named testDiv is clicked?
google.maps.onClick(testDiv, testFunction);
google.maps.event.addListener(testDiv, 'click', testFunction);
google.maps.event.addDomListener(testDiv, 'click', testFunction);
(none of these)
Answer
Correct Answer:
google.maps.event.addDomListener(testDiv, 'click', testFunction);
Note: This Question is unanswered, help us to find answer for this one
Check Answer
30. Which of the following is not a type of place search that can be performed with the Places Service?
Multilevel
Radar
Text
Nearby
Answer
Correct Answer:
Multilevel
Note: This Question is unanswered, help us to find answer for this one
Check Answer
31. What is the maximum number of waypoints allowed in a non-business directions request?
4
16
8
12
Note: This Question is unanswered, help us to find answer for this one
Check Answer
32. When set to true, the draggable property of the DirectionsRenderer class enables a user to:
Drag a marker to a new location.
Alter a route by dragging the polyline for the route path.
Drag the map to a new center point.
Drag the Directions control to a new location.
Answer
Correct Answer:
Alter a route by dragging the polyline for the route path.
Note: This Question is unanswered, help us to find answer for this one
Check Answer
33. If you create a marker but do not specify its map in the marker options, you can specify the map later by using this syntax:
map.markerOptions(marker)
marker.setMap(map)
map.setMarker(marker)
marker.setMarker(map)
Answer
Correct Answer:
marker.setMap(map)
Note: This Question is unanswered, help us to find answer for this one
Check Answer
34. What class can be used to create custom overlays?
OverlayView
object
Marker
Overlay
Answer
Correct Answer:
OverlayView
Note: This Question is unanswered, help us to find answer for this one
Check Answer
35. Which property of the DOM enables you to detect iPhone and Android devices?
navigator.mobile
navigator.userAgent
navigator.deviceType
device.deviceType
Answer
Correct Answer:
navigator.userAgent
Note: This Question is unanswered, help us to find answer for this one
Check Answer
36. How would you load the data contained in a KML file onto google map?
map.addKml(stringUrl);
map.loadKml(stringUrl);
(none of these)
new KmlLayer({url:stringUrl, map:map});
Answer
Correct Answer:
new KmlLayer({url:stringUrl, map:map});
Note: This Question is unanswered, help us to find answer for this one
Check Answer
37. What zoom level displays a map of the Earth fully zoomed out?
10
5
20
0
Note: This Question is unanswered, help us to find answer for this one
Check Answer
38. How can you expand a LatLngBounds object to ensure that it included additional points?
(none of these)
latLngBounds.add(newLatLng)
latLngBounds.contain(newLatLng)
latLngBounds.extend(newLatLng)
Answer
Correct Answer:
latLngBounds.extend(newLatLng)
Note: This Question is unanswered, help us to find answer for this one
Check Answer
39. Which object defines a geographic rectangle on the map using two LatLng objects?
GeographicBounds
LatLngBounds
LatLng
Bounds
Answer
Correct Answer:
LatLngBounds
Note: This Question is unanswered, help us to find answer for this one
Check Answer
40. What MapOptions properties are required when creating a new map?
mapDiv
center
zoom
zoom and center
Answer
Correct Answer:
zoom and center
Note: This Question is unanswered, help us to find answer for this one
Check Answer
41. What property of MarkerOptions allows you to set a custom image for a marker?
image
icon
picture
markerImage
Note: This Question is unanswered, help us to find answer for this one
Check Answer
42. Which Map class method is used to animate the transition of the map center to a new LatLng?
panTo
newCenter
panCenter
panBy
Note: This Question is unanswered, help us to find answer for this one
Check Answer
43. How do you add traffic information to a map?
var trafficLayer = new google.maps.TrafficLayer(); map.add(trafficLayer)
var trafficLayer = new google.maps.TrafficLayer(); trafficLayer.setMap(map);
map.trafficLayer.setVisible(true);
map.addLayer('traffic');
Answer
Correct Answer:
var trafficLayer = new google.maps.TrafficLayer(); trafficLayer.setMap(map);
Note: This Question is unanswered, help us to find answer for this one
Check Answer
44. What is the default map type?
HYBRID
ROADMAP
SATELLITE
STREETLEVEL
Note: This Question is unanswered, help us to find answer for this one
Check Answer
45. How can you determine if the current map viewport contains a specific point?
map.contains(LatLng);
map.getBounds.Overlaps(LatLng)
map.getBounds().contains(LatLngBounds);
map.getBounds().contains(LatLng);
Answer
Correct Answer:
map.getBounds().contains(LatLng);
Note: This Question is unanswered, help us to find answer for this one
Check Answer
46. Which of the following is not an argument for the addListener() event handler?
object on which event occurred
function to respond to event
bubbling phase of event
event for which the handler is listening
Answer
Correct Answer:
bubbling phase of event
Note: This Question is unanswered, help us to find answer for this one
Check Answer
47. What overlay object would you use to draw an enclosed shape on the map given an array of LatLng objects?
polyline
shape
polygon
marker
Note: This Question is unanswered, help us to find answer for this one
Check Answer
48. What querystring parameter added to the maps api url will call a named function after the maps api loads?
loaded
afterload
callback
function
Note: This Question is unanswered, help us to find answer for this one
Check Answer
49. Which additional library must you load if you want to add a heatmap layer to your map?
drawing
weather
visualization
places
Answer
Correct Answer:
visualization
Note: This Question is unanswered, help us to find answer for this one
Check Answer
50. What is the namespace on which event listeners must be registered to listen for Google Maps API events?
google.maps.event
google.mapevents
events.maps.google
google.api.mapevents
Answer
Correct Answer:
google.maps.event
Note: This Question is unanswered, help us to find answer for this one
Check Answer
51. What function sets the HTML contained in an InfoWindow?
infoWindow.html(HTMLstring);
infoWindow.setContent(HTMLstring);
infoWindow.setHTML(HTMLstring);
infoWindow.innerHTML(HTMLstring);
Answer
Correct Answer:
infoWindow.setContent(HTMLstring);
Note: This Question is unanswered, help us to find answer for this one
Check Answer
52. Which class is used to display text or images in a popup window attached to a marker?
MapOptions
InfoWindow
MarkerOptions
InfoOptions
Answer
Correct Answer:
InfoWindow
Note: This Question is unanswered, help us to find answer for this one
Check Answer
53. What function do you call to make the map contain specific bounds.
map.setCenter(LatLng);
map.fitBounds(GeographicBounds);
map.panTo(LatLng);
map.fitBounds(LatLngBounds);
Answer
Correct Answer:
map.fitBounds(LatLngBounds);
Note: This Question is unanswered, help us to find answer for this one
Check Answer
54. What type of object is the position property of MarkerOptions?
google.maps.LatLng
google.maps.Sharpie
google.maps.LatLngBounds
google.maps.point;
Answer
Correct Answer:
google.maps.LatLng
Note: This Question is unanswered, help us to find answer for this one
Check Answer
55. What is the correct way to create a Google Maps API object that represents a point on a map?
new LatLng(lat:number, lng:number);
new PointCode(lat:number,lng:number)
new IconPoint(lat:number,lng:number)
new Geocode(lat:number,lng:number)
Answer
Correct Answer:
new LatLng(lat:number, lng:number);
Note: This Question is unanswered, help us to find answer for this one
Check Answer
56. How can you add a marker to an existing map, named "myMap"?
map.add(marker);
marker.setMap(map);
var marker = new marker({position:latLng, map:map});
marker.setMap(myMap); or var marker = new marker({position:latLng, map:myMap});
Answer
Correct Answer:
marker.setMap(myMap); or var marker = new marker({position:latLng, map:myMap});
Note: This Question is unanswered, help us to find answer for this one
Check Answer
57. Which of the following is not a built-in control that can be used on a map?
StreetView
BirdsEyeView
MapType
Pan
Answer
Correct Answer:
BirdsEyeView
Note: This Question is unanswered, help us to find answer for this one
Check Answer
58. Which of the following travel modes is not supported when you are calculating directions?
DRIVING
TRANSIT
FLYING
BICYCLING
Note: This Question is unanswered, help us to find answer for this one
Check Answer
59. True or False: You can only create one instance of the JavaScript Map class on a page.
False
True
Note: This Question is unanswered, help us to find answer for this one
Check Answer
60. Which of the following is not a common MapType?
TERRAIN
ROADMAP
HYBRID
ELEVATION
Answer
Correct Answer:
ELEVATION
Note: This Question is unanswered, help us to find answer for this one
Check Answer
61. True or False: If you want your JavaScript Google Maps API application to search for places, you must load an additional places library through the bootstrap request.
False
True
Note: This Question is unanswered, help us to find answer for this one
Check Answer
62. Taking an address and translating it into a geographic point is known as what?
Geocoding
Geocaching
Geoparsing
Geolocating
Answer
Correct Answer:
Geocoding
Note: This Question is unanswered, help us to find answer for this one
Check Answer
63. How do you add a click event listener to a google map?
map.addListener.add('click', clickFunction);
map.listener.add('click', clickFunction);
google.maps.listener.add(map, 'click', clickFunction);
google.maps.event.addListener(map, 'click', clickFunction);
Answer
Correct Answer:
google.maps.event.addListener(map, 'click', clickFunction);
Note: This Question is unanswered, help us to find answer for this one
Check Answer
64. The Google Maps API for which of the following platforms is deprecated?
JavaScript v3
Flash
Android
iOS
Note: This Question is unanswered, help us to find answer for this one
Check Answer
65. What overlay object can be used to contain information HTML content?
Bubble
InfoWindow
Polygon
Marker
Answer
Correct Answer:
InfoWindow
Note: This Question is unanswered, help us to find answer for this one
Check Answer
66. For best map display on mobile devices, set the width and height of the <div> that contains the map to:
50%
100%
80%
600px
Note: This Question is unanswered, help us to find answer for this one
Check Answer
67. In the syntax to load the JavaScript Google Maps API, what does the parameter "sensor=true" indicate?
Show current location of street level camera.
Locate landmarks near map location.
Use GPS locator to determine user's location.
Use weather sensor at map location.
Answer
Correct Answer:
Use GPS locator to determine user's location.
Note: This Question is unanswered, help us to find answer for this one
Check Answer
68. When you create a new map, you must specify the initial zoom as a map option. What is the other required initial map option?
backgroundColor
styles
center
tilt
Note: This Question is unanswered, help us to find answer for this one
Check Answer
69. If you want to monetize your map application with context-sensitive display advertising, which library should you use?
Shopping
Panoramio
AdSense
Places
Note: This Question is unanswered, help us to find answer for this one
Check Answer
70. Which arguments must be passed to a LatLng object?
Latitude and longitude
Highway number and mile marker
Address and ZIP code
Height and width
Answer
Correct Answer:
Latitude and longitude
Note: This Question is unanswered, help us to find answer for this one
Check Answer
71. Street View provides a panoramic view of:
180 degrees
90 degrees
45 degrees
360 degrees
Answer
Correct Answer:
360 degrees
Note: This Question is unanswered, help us to find answer for this one
Check Answer
72. True or False: When using the JavaScript Google Maps API, the MapType control appears by default on the map.
False
True
Note: This Question is unanswered, help us to find answer for this one
Check Answer
73. True or False: When using the JavaScript Google Maps API, you normally specify a <div> HTML element as a container for the map.
False
True
Note: This Question is unanswered, help us to find answer for this one
Check Answer
74. Which of the following must you obtain to load the JavaScript Google Maps API for a non-business application?
Temporary application license
Cryptographic key
API key
Enterprise application license
Note: This Question is unanswered, help us to find answer for this one
Check Answer
75. What service can be used to obtain a LatLng from an address?
Geography
Distance
Geocoder
Directions
Note: This Question is unanswered, help us to find answer for this one
Check Answer
76. True or False: The JavaScript Google Maps API does not support reverse geocoding (translating a map location into an address).
True
False
Note: This Question is unanswered, help us to find answer for this one
Check Answer
77. Which of the following is not a valid base map type?
SATELLITE
TERRAIN
STREETLEVEL
ROADMAP
Answer
Correct Answer:
STREETLEVEL
Note: This Question is unanswered, help us to find answer for this one
Check Answer
78. Which control contains a Pegman icon that can be dragged onto a map?
Pan
Overview
StreetView
Zoom
Answer
Correct Answer:
StreetView
Note: This Question is unanswered, help us to find answer for this one
Check Answer
Google Maps-API And Development MCQs | Topic-wise