Filters
Question type

Several methods of the GoogleApiClient.Builder class return the GoogleApiClient object reference that called them so that method calls can be ____________.

Correct Answer

verifed

verified

The __________________ method of the FusedLocationProviderApi interface returns the current location of the device as a Location reference.

Correct Answer

verifed

verified

The ____________ method of the LocationRequest class sets the priority level of the request for location updates.

Correct Answer

verifed

verified

Inside the AndroidManifest.xml file, what String constant of the Manifest.permission class can be used to specify an approximate location?


A) ACCESS_COARSE_LOCATION
B) ACCESS_FINE_LOCATION
C) ACCESS_PRECISE_LOCATION
D) ACCESS_CLOSE_LOCATION

E) B) and C)
F) All of the above

Correct Answer

verifed

verified

ConnectionCallbacks provides callback methods that are automatically called when we ____________ or are disconnected from the Google Play service.

Correct Answer

verifed

verified

What method of the GoogleApiClient class do we call to close the connection with Google Play services?


A) close
B) stop
C) disconnect
D) quit

E) B) and C)
F) All of the above

Correct Answer

verifed

verified

To call the requestLocationUpdates method, we need a FusedLocationProviderApi object reference. How can we get one?


A) FusedLocationProviderApi flpa = LocationServices.FusedLocationApi;
B) FusedLocationProviderApi flpa = LocationServices;
C) FusedLocationProviderApi flpa = FusedLocationApi;
D) FusedLocationProviderApi flpa = API;

E) A) and B)
F) B) and C)

Correct Answer

verifed

verified

The LocationListener interface is part of the com.google.android.gms.location package.

A) True
B) False

Correct Answer

verifed

verified

One of the two methods of ConnectionCallbacks is onConnectionSuspended. What is the name of its other method?


A) onConnected
B) onSuspending
C) onSuspended
D) connect

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

What is the name of the only method of the LocationListener interface?


A) onMoved
B) onLocationChanged
C) onChanged
D) locationChanged

E) B) and C)
F) A) and B)

Correct Answer

verifed

verified

The startResolutionForResult method of the ConnectionResult class throws an exception.

A) True
B) False

Correct Answer

verifed

verified

What file must be edited in order to include Google Play services in the compilation process?


A) MainActivity
B) AndroidManifest.xml
C) build.gradle
D) gradle

E) C) and D)
F) B) and D)

Correct Answer

verifed

verified

C

OnConnectionFailedListener provides a callback method that is automatically called if the connection attempt failed.

A) True
B) False

Correct Answer

verifed

verified

True

The ____________ method of the Location class returns the longitude of a Location object.

Correct Answer

verifed

verified

The __________________ method of the LocationRequest class sets the minimum distance between consecutive updates.

Correct Answer

verifed

verified

The Location class includes the getElapsedRealtimeNanos method, which returns the time since the last boot in nanoseconds, so we can compare the time between two location updates if we want to.

A) True
B) False

Correct Answer

verifed

verified

Once location updates have been requested, it is not possible to stop them.

A) True
B) False

Correct Answer

verifed

verified

In what units does the getAccuracy method of the Location class return the accuracy of a Location object?


A) Miles
B) Kilometers
C) Meters
D) Feet

E) A) and D)
F) B) and D)

Correct Answer

verifed

verified

The ConnectionCallbacks and OnConnectionFailedListener are static inner __________________ of the GoogleApiClient class.

Correct Answer

verifed

verified

interfaces

To get a GoogleApiClient reference, we can use the GoogleApiClient constructor.

A) True
B) False

Correct Answer

verifed

verified

Showing 1 - 20 of 21

Related Exams

Show Answer