Educate yourself online!

Attention!

For new updates please visit http://www.shortquiz.blogspot.com


Knowledge of Google Maps API Skills Test

By on 12:17

Knowledge of Google Maps API Skills Test



In Google Maps Javascript API, Scale Control is disabled by default.

a. True
b. False

Given the following lines of code, what is the correct definition of the 'Marker' constructor that will give the output as shown in the figure?


var myLatlng = new google.maps.LatLng(-25.363882,131.044922);
var myOptions = { zoom: 4, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP }
var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);

a. var marker = new google.maps.Marker({position: myLatlng, map: map });
b. var marker = new google.maps.Marker({position: myLatlng, title:"Hello World!" });
c. var marker = new google.maps.Marker({position: myLatlng, map: map, title:"Hello World!" });
d. var marker = new google.maps.Marker({position: myLatlng, map: map title:"Hello World!" });

Which file format is used to display geographic data in an Earth browser such as Google Earth, Google Maps, and Google Maps for mobile?

a. KML
b. HTML
c. XML
d. KMZ

Which of the following interfaces provides the 'getTranslationGeometry()' method in the Google Maps API for Flash 3D Maps?

a. ICamera
b. IMap
c. IMap3D
d. ICamera3D

What is the purpose of 'sensor=true' in the following Google Maps Javascript API script tag?

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true">

a. The purpose is to indicate whether or not your application is using a W3C Geolocation standard to determine the user's location.
b. The purpose is to indicate whether or not your application is using a sensor such as a GPS locator to determine the user's location in any Maps API library or service requests.
c. The purpose is to indicate that the user must set the location parameter as well.
d. The purpose is to indicate that the user doesn't have to set the location parameter.

Which of the following Geocoding API requests demonstrate the correct way to use longitude and latitude and will NOT return ZERO_RESULTS in the XML status tag?

a. http://maps.google.com/maps/api/geocode/xml?latlng=65.58,22.14&sensor=true
b. http://maps.google.com/maps/api/geocode/xml?latlng=65.58%22.14&sensor=false
c. http://maps.google.com/maps/api/geocode/xml?latlng=65.58/22.14&sensor=true
d. http://maps.google.com/maps/api/geocode/xml?latlng=65.58,22.14&sensor= false

Which of the following statements is correct regarding the difference between satellite and hybrid Google maps?

a. Satellite maps display a mix of photographic tiles and a tile layer for prominent features, whereas hybrid maps display photographic tiles.
b. Satellite maps display photographic tiles, whereas hybrid maps display a mix of photographic tiles and a tile layer for prominent features.
c. Satellite maps display the normal, default 2D tiles of Google Maps, whereas hybrid maps display physical relief tiles for displaying elevation and water features.
d. Satellite maps display physical relief tiles for displaying elevation and water features, whereas hybrid maps display the normal, default 2D tiles of Google Maps.

What is denoted by the second and third parameters of the ControlPosition method as shown in the following Google Maps API for Flash code?

ControlPosition(ControlPosition.ANCHOR_BOTTOM_RIGHT, 16, 10);

a. Horizontal and vertical padding from the edge of the map.
b. Horizontal and vertical margin from the edge of the map.
c. Horizontal and vertical pixels from the edge of the map.
d. Latitude and longitude points.

Which of the following statements is correct about the MarkerImage object of the Google Maps Javascript API?

a. It can be used to define the image.
b. It can be used to define the size of the image.
c. It can be used to define the origin of the image.        
d. It can be used to define the anchor where the icons hotspot will be located.

Which of the following are valid properties of the 'View' class which specify what sort of view the 3D map should exhibit in Google Maps API for Flash 3D Maps?

a. VIEWMODE_2D
b. VIEWMODE_PERSPECTIVE
c. VIEWMODE_ORTHOGONAL
d. VIEWMODE_3D

Which of the following is the correct syntax using which you can retrieve the ith element of a Polyline array when using the Google Maps Javascript API?

a. mvcArray[i];
b. mvcArray.getAt(i);
c. mvcArray(i);
d. mvcArray.getAt[i];

Which of the following methods is defined under the MapEvent.MAP_PREINITIALIZE event handler with regard to Google Maps API for Flash?

a. Map.setLoadOptions() method
b. Map.setInitOptions() method
c. Map.setPreInitOptions() method
d. Map.setPostInitOptions() method

On which of the following browsers can you install the Google Earth plugin for Windows?

a. Google Chrome 1.0+
b. Internet Explorer 6.0+
c. Firefox 2.0+
d. Flock 1.0+
e. All of the above

When working with Google Maps API for Flash, when is the 'MapEvent.MAP_PREINITIALIZE' event triggered?

a. After a map is ready to receive initialization parameters and before the map is ready for general use.
b. After the map is ready for general use.
c. After a default map has already been drawn.
d. Before the map has been drawn.

What does enc: prefix within the location declaration of the path specify in a Google Static Map API request ?

a. It specifies that the path that you have declared is an encoded polyline.
b. It specifies that the path that you have declared is an encoded polygon.
c. It specifies that the path that you have declared is a non-encoded polyline.
d. It specifies that the path that you have declared is a non-encoded polygon.

Which of the following can be contained in a Google Maps InfoWindow?

a. A string of text
b. An image
c. A snippet of HTML
d. A DOM element
e. All of the above

What is the default travel mode in a Directions API request?

a. Driving
b. Walking
c. Bicycling

What is the difference between the following two map feed URLs which are used to retrieve a list of maps in Google Maps Data API?

1 http://maps.google.com/maps/feeds/maps/default/owned
2 http://maps.google.com/maps/feeds/maps/default/public

a. 1 returns all the maps created by the user whereas 2 returns all the public maps created by the user.
b. 2 returns all the unlisted maps created by the user whereas 2 returns all the maps created by the user.
c. 1 returns all the maps created by the user whereas 2 returns all the unlisted maps created by the user.

Maps created using the My Maps web interface have api_visible set to true.

a. True
b. False

Which of the following is true about the 'ZERO_RESULTS' value of the status field in the Geocoding response object?

a. It indicates that no errors occurred, the address was successfully parsed and at least one geocode was returned.
b. It indicates that your request was denied.
c. It indicates that the geocode was successful but returned no results.

Which of the following types of information CANNOT be included in the balloons of Google Earth API?

a. HTML
b. CSS
c. XML
d. JAVASCRIPT

Which of the following is a valid Google Static Maps URL?

a. http://maps.google.com/maps/api/staticmap?&size=400x400&markers=11211|11206&sensor=false
b. http://maps.google.com/maps/api/staticmap?&size=400x400&markers=11211,11206&sensor=false
c. http://maps.google.com/maps/api/staticmap?&size=400x400&markers=11211.11206&sensor=false
d. http://maps.google.com/maps/api/staticmap?&size=400x400&markers=11211-11206&sensor=false

Which of the following statements will force the Google Maps Javascript APIs to ignore the browser setting and display the content in Japanese?

a. <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&lang:ja">
b. <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&lang=ja">
c. <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false,language=ja">
d. <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&language=ja">

Which of the following statements is true with regard to public maps of the Google Maps Data API?

a. Public maps do not get indexed but may show up in search results.
b. Public maps get indexed but do not show up in search results.
c. Public maps do not get indexed, nor do they show up in search results.
d. Public maps get indexed and may show up in search results.

In which of the following units must the radius be specified in the Place Search API request?

a. kilometers
b. meters
c. centimeters
d. feet

Which of the following classes has to be overridden to create a custom control when using Google Maps API for Flash?

a. ControlBase's loadControlWithMap()
b. ControlBase's PreinitControlWithMap()
c. ControlBase's initControlWithMap()
d. ControlBase's PreloadControlWithMap()

With regard to Google Maps API for Flash, which of the following events is received by Markers by default?

a. MapMouseEvent.CLICK
b. MapMouseEvent.DBCLICK
c. MapMouseEvent.HOVER
d. MapMouseEvent.MOVE

What is the largest map image size allowed to be retrieved using the Google Static Maps API?

a. 500x500 pixels
b. 320x640 pixels
c. 640x320 pixels
d. 640x640 pixels

Which of the following things CANNOT be done through the Google Maps Data API?

a. Requesting a feed of a user's maps.
b. Requesting a feed of all features across all maps.
c. Requesting a feed of features contained within a specific map.

Which of the following classes will be used to create your own Custom Overlays when using the Google Maps Javascript API?

a. GroundOverview
b. GroundOverview Option
c. Projections
d. OverlayView

Which Google Maps Javascript API object listens to the mouse or keyboard events such as 'click', 'mouseup', etc?

a. google.maps.Marker
b. google.maps.Map
c. google.maps.DirectionRenderer

What is the second parameter in the following method of Google Earth API call used to specify?

google.load("earth", "1");

a. The number of instances.
b. The number of maps to load.
c. The number of containers in the page.
d. The version number of the API.

What is the purpose of the 'getMap' method of the GroundOverlay class?

a. It sets the map on which the ground overlay is displayed.
b. It is used to check whether a valid map exists or not.
c. It returns the map on which the ground overlay is displayed.

If you don't specify any map type, then which type of map will the Google Maps Javascript API load by default?

a. Satellite
b. Hybrid
c. Roadmap
d. None of the above

Which of the following initialization parameters are supported by the MapOption object for a Map object with regard to Google Maps API for Flash?

a. attitude
b. dragging
c. mouseClickRange
d. crosshairs

What is the use of the clearOverlays() method of the Google Maps Javascript API V3?

a. It is used to delete all the overlays.
b. It is used to remove all the overlay references .
c. It removes all the overlays from the map but does not delete their references.
d. This method does not exist in Google Map API V3.

Which of the given options are true about the following line of code related to the Google Maps Javascript API?

<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />

a. It specifies that the map is resizable by the user.
b. It specifies that this map should be displayed full-screen.
c. It specifies that this map is not resizable by user.
d. It specifies that this map will use the version name 1.0.

When working with Google Maps Javascript API, how can you delete an overlay from a map?

a. By passing NULL in the overlay's setMap() Method.
b. By removing the overlay from the map and then passing NULL in the overlay's setMap() method.
c. By passing NULL in the overlay's setMap() Method and then reMoving the overlay froM the Map.
d. By removing it from the map.

How can you define more than one map in your page with Google Maps Javascript API?

a. You cannot define more than one map in your page.
b. By creating more than one instance of a Map class.
c. By adding an extra parameter in the Map options.

Which of the following is the correct statement to localize your Google Maps Javascript API application for the United Kingdom?

a. <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false,region=GB">
b. <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&region:GB">
c. <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&region=GB">
d. <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true&region=GB">

What is the default size of the Navigation Control in iPhone?

a. Small Mini-Zoom for sizes smaller than 400x350px.
b. Large Pan/Zoom for sizes larger than 400x350px.
c. Medium Pan/Zoom Mini-Zoom for sizes smaller than 400x350px.
d. Navigation Control is not present in iPhone.

What is the difference between the following two map feed URLs which are used to retrieve a list of maps in Google Maps Data API?

1 http://maps.google.com/maps/feeds/maps/default/owned
2 http://maps.google.com/maps/feeds/maps/default/public

a. 1 returns all the maps created by the user whereas 2 returns all the public maps created by the user.
b. 1 returns all the unlisted maps created by the user whereas 2 returns all the maps created by the user.
c. 1 returns all the maps created by the user whereas 2 returns all the unlisted maps created by the user.

With regard to the Google Maps Javascript API, which value is NOT valid for the 'strokeOpacity' stroke styles used to draw polylines on the map?

a. 0.5
b. 1.0
c. 2.0
d. 0.8       

What is true about the 'INVALID_REQUEST' value of the status field of the Elevation response object?

a. It indicates that the requestor has exceeded quota.
b. It indicates that the API request was malformed.
c. It indicates that the API request was not successful.

How many characters can there be in a Google Static Maps URL request?

a. 255
b. 1024
c. 2048
d. 128

Which of the following are valid Geocoding API requests?

a. http://maps.google.com/maps/api/geocodexml?address=1600+Amphitheatre+Parkway+CA&sensor=true
b. http://maps.google.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway+CA&sensor=false
c. http://maps.google.com/maps/api/geocode/XML?address=1600+Amphitheatre+Parkway+CA&sensor=true
d. http://maps.google.com/maps/api/geocode/xml?address=1600+Amphitheatre+Parkway+CA

Which of the following is true about the 'appender' role in the Maps Data API?

a. A user who has been granted the appender role can view the map.
b. A user who has been granted the appender role can edit the map.
c. A user who has been granted the appender role can add features to the map.
d. A user who has been granted the appender role can view the ACL list.

On which of the following browsers can you install the Google Earth plugin for Windows?

a. Google Chrome 5.0+
b. Internet Explorer 7+ (32 bit)
c. Firefox 2.0+
d. Flock 1.0+
e. All of the above

Custom controls are positioned on the map by placing them at appropriate positions within the Map object's _________.

a. Direction property
b. Object property
c. Map property
d. Control property

What is the minimum and the maximum value of latitudes and longitudes respectively?

a. -90 and 90 ; -180 and 180
b. -90 and 180 ;-180 and 90
c. -180 and 90 ;-90 and 180
d. -180 and 180 ;-90 and 90

What is the use of the method 'getSelfLink().getHref()' of the Google Maps Data API?

a. It is used to retrieve all the features of a map.
b. It is used to retrieve an individual feature URL.
c. It is used to retrieve an individual feature.
d. It is used to retrieve a feature list.

0 comments:

Post a Comment