Location Based Service - Android questions

Location Based Service - Android questions


Q.1 Which element is used to display Google map in your UI.
A) View
B) Map
C) MapView
D) None of the above.
View Answer / Hide Answer

ANSWER: C




Q.2 For using Google map which permission you will specify in the AndroidManifest.xml?

A) USEMAP
B) USE_GOOGLE_MAP
C) INTERNET
D) None of the above.
View Answer / Hide Answer

ANSWER: C




Q.3 What is geocoding?

A) Geocoding is the act of converting an address into its coordinates (latitude and longitude).
B) Geocoding converts a pair of location coordinates into an address.
C) Geocoding means geographical coding.
D) None of the above.
View Answer / Hide Answer

ANSWER: A




Q.4 If you have used the Google Maps API into your Android application but it does not show the map when the application is loaded, what could be the possible reasons?

A) No Internet connection
B) Incorrect placement of the element in the AndroidManifest.xml file
C) Missing INTERNET permission in the AndroidManifest.xml file
D) All of the above.
View Answer / Hide Answer

ANSWER: D




Q.5 To enable zoom control on google map, Which method of MapView is used? Suppose that instance of MapView is mapView.

A) ZoomControls.Enabled=true.
B) mapView.setBuiltInZoomControls(true);
C) mapView= ZoomControls(true);
D) None of the above.
View Answer / Hide Answer

ANSWER: B




Q.6 By default, Google Maps displays the map of the United States when it is first loaded. How you can display the particular location?

A) You cannot change the default locaction.
B) setZoom= true.
C) By using the animateTo() method of the MapController class.
D) None of the above.
View Answer / Hide Answer

ANSWER: C




Q.7 How will you add marker on map?

A) Directly use draw method.
B) You cannot add marker on the map.
C) Implement an Overlay class and override the draw() method.
D) None of the above.
View Answer / Hide Answer

ANSWER: C




Q.8 Which class is used to access to the system location services?

A) LocationManager
B) Object
C) GoogleManager
D) None of the above.
View Answer / Hide Answer

ANSWER: A




Q.9 How will you instantiate LocationManager object?

A) LocationManager LM =new LocationManager();
B) LocationManager LM = getSystemService(Context.LOCATION_SERVICE).
C) LocationManager LM = Context.LOCATION_SERVICE.
D) None of the above.
View Answer / Hide Answer

ANSWER: B




Q.10 If you know the address of a location but want to know its latitude and longitude, then which class is used?

A) Geocoder
B) Location
C) MapViewLocation
D) None of the above.
View Answer / Hide Answer

ANSWER: A




Q.11 What are the different location provider are available that you can use to obtain lacation data?

A) LocationManager.GPS_PROVIDER
B) LocationManager.NETWORK_PROVIDER
C) LocationManager.PASSIVE_PROVIDER
D) All of the above.
View Answer / Hide Answer

ANSWER: D


Post your comment