Deck 10: Using Libraries and Their Apis: Speech Recognition and Maps

Full screen (f)
exit full mode
Question
The ____________ method of the Context class returns a PackageManager reference.
Use Space or
up arrow
down arrow
to flip the card.
Question
The getIntExtra method of the Intent class has this API:
Int getIntExtra( String key, int value )
What does it return?

A) The parameter value (always)
B) The value mapped to key, if there is one; otherwise, value
C) A resource id (always)
D) 0
Question
The Android framework includes a template, Google Maps Activity, that creates skeleton code to display a map.
Question
Using the MarkerOptions class, we can add a snippet to a marker using the ____________ method.
Question
A hash table is a data structure that maps keys to values; the class that encapsulates it uses generic types; the actual data types are specified at the time of ____________.
Question
The getStringExtra method of the Intent class has this API:
String getStringExtra( String key )
It is a String that was earlier placed in the intent and mapped to ____________.
Question
The ____________ class provides methods for both geocoding and reverse geocoding.
Question
It is possible to include a button so that when the user clicks on the button, we display the microphone for speech input.
Question
After we have created a SpeechRecognizer object, we call the ____________ method in order to start listening to user speech input.
Question
The CameraUpdateFactory has many static methods, such as zoomIn and zoomOut, which return a(n) ____________ object reference.
Question
In order to display a map in an app, we first need to obtain a(n) ____________ from Google.
Question
The Manifest.permission class includes constants to be used as values for the android:name attribute of the uses-permission element in the AndroidManifest.xml file. The constant to write to external storage is ____________.
Question
The Manifest.permission class includes constants to be used as values for the android:name attribute of the uses-permission element in the AndroidManifest.xml file. The constant to access the precise device location is ____________.
Question
What is the name of the main class that encapsulates a camera move, such as a position change, zoom level change, or both?

A) Move
B) CameraMove
C) Update
D) CameraUpdate
Question
The ____________ class encapsulates a location on Earth using its latitude and longitude.
Question
The ____________ of the OnMapReadyCallback interface is called when the map is instantiated and ready.
Question
It is possible to move a map programmatically, without any user interaction.
Question
What method of the Intent class do we call to put a value mapped to a key in an Intent?

A) put
B) putKey
C) putValue
D) putExtra
Question
What is not included in a CameraUpdate object?

A) Latitude
B) Longitude
C) Resource id
D) Zoom level
Question
Some moveCamera and animateCamera methods of the GoogleMap class accept only one parameter. What is the data type of that parameter?

A) CameraUpdate
B) LatLng
C) ZoomLevel
D) Camera
Question
It is possible to store an array of values mapped to a key in an Intent.
Question
It is possible to display a map and select its type (terrain, satellite, etc.).
Question
It is possible to display a map and draw a polygon on top of it.
Question
A marker is always positioned at the center of a map.
Question
__________________ is a constant from the RecognizerIntent class that we can use to start an Activity that asks the user to speak.
Question
__________________ is a constant from the RecognizerIntent class that we can use to start an Activity that searches the web with the user's spoken words.
Question
The Manifest.permission class includes constants to be used as values for the android:name attribute of the uses-permission element in the AndroidManifest.xml file. The constant to access the Internet is __________________.
Question
Not specifying the position of a marker or a circle when adding it to a map results in a __________________ at run time and stops the app.
Question
Using the MarkerOptions class, we can add a title to a marker using the __________________ method.
Question
The putExtra method of the Intent class has this API:
Intent putExtra( String key, String value )
It places a value in the Intent and associates it with __________________.
Question
The __________________ class, along with the RecognitionListener interface, both part of the android.speech package, allow us to listen to and process user speech without using a graphical user interface.
Question
The onBeginningOfSpeech method of the RecognitionListener interface is called when the user starts speaking; the __________________ method is called when the user stops speaking.
Question
The MarkerOptions class has many methods returning the MarkerOptions reference that calls them so that we can __________________ method calls.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/33
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 10: Using Libraries and Their Apis: Speech Recognition and Maps
1
The ____________ method of the Context class returns a PackageManager reference.
getPackageManager
2
The getIntExtra method of the Intent class has this API:
Int getIntExtra( String key, int value )
What does it return?

A) The parameter value (always)
B) The value mapped to key, if there is one; otherwise, value
C) A resource id (always)
D) 0
The value mapped to key, if there is one; otherwise, value
3
The Android framework includes a template, Google Maps Activity, that creates skeleton code to display a map.
True
4
Using the MarkerOptions class, we can add a snippet to a marker using the ____________ method.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
5
A hash table is a data structure that maps keys to values; the class that encapsulates it uses generic types; the actual data types are specified at the time of ____________.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
6
The getStringExtra method of the Intent class has this API:
String getStringExtra( String key )
It is a String that was earlier placed in the intent and mapped to ____________.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
7
The ____________ class provides methods for both geocoding and reverse geocoding.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
8
It is possible to include a button so that when the user clicks on the button, we display the microphone for speech input.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
9
After we have created a SpeechRecognizer object, we call the ____________ method in order to start listening to user speech input.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
10
The CameraUpdateFactory has many static methods, such as zoomIn and zoomOut, which return a(n) ____________ object reference.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
11
In order to display a map in an app, we first need to obtain a(n) ____________ from Google.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
12
The Manifest.permission class includes constants to be used as values for the android:name attribute of the uses-permission element in the AndroidManifest.xml file. The constant to write to external storage is ____________.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
13
The Manifest.permission class includes constants to be used as values for the android:name attribute of the uses-permission element in the AndroidManifest.xml file. The constant to access the precise device location is ____________.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
14
What is the name of the main class that encapsulates a camera move, such as a position change, zoom level change, or both?

A) Move
B) CameraMove
C) Update
D) CameraUpdate
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
15
The ____________ class encapsulates a location on Earth using its latitude and longitude.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
16
The ____________ of the OnMapReadyCallback interface is called when the map is instantiated and ready.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
17
It is possible to move a map programmatically, without any user interaction.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
18
What method of the Intent class do we call to put a value mapped to a key in an Intent?

A) put
B) putKey
C) putValue
D) putExtra
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
19
What is not included in a CameraUpdate object?

A) Latitude
B) Longitude
C) Resource id
D) Zoom level
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
20
Some moveCamera and animateCamera methods of the GoogleMap class accept only one parameter. What is the data type of that parameter?

A) CameraUpdate
B) LatLng
C) ZoomLevel
D) Camera
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
21
It is possible to store an array of values mapped to a key in an Intent.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
22
It is possible to display a map and select its type (terrain, satellite, etc.).
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
23
It is possible to display a map and draw a polygon on top of it.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
24
A marker is always positioned at the center of a map.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
25
__________________ is a constant from the RecognizerIntent class that we can use to start an Activity that asks the user to speak.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
26
__________________ is a constant from the RecognizerIntent class that we can use to start an Activity that searches the web with the user's spoken words.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
27
The Manifest.permission class includes constants to be used as values for the android:name attribute of the uses-permission element in the AndroidManifest.xml file. The constant to access the Internet is __________________.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
28
Not specifying the position of a marker or a circle when adding it to a map results in a __________________ at run time and stops the app.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
29
Using the MarkerOptions class, we can add a title to a marker using the __________________ method.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
30
The putExtra method of the Intent class has this API:
Intent putExtra( String key, String value )
It places a value in the Intent and associates it with __________________.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
31
The __________________ class, along with the RecognitionListener interface, both part of the android.speech package, allow us to listen to and process user speech without using a graphical user interface.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
32
The onBeginningOfSpeech method of the RecognitionListener interface is called when the user starts speaking; the __________________ method is called when the user stops speaking.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
33
The MarkerOptions class has many methods returning the MarkerOptions reference that calls them so that we can __________________ method calls.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 33 flashcards in this deck.