SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Android Programming
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. This class exposes a number of methods for applications to receive location updates.
OAuth2 protocol
Destroyed - previous
onStop();
LocationManager
2. The visible lifetime of an activity happens between the call to ____ and the call to ______
AsyncTask
onStart() - onStop()
HTTP
Explicit intent
3. Android request its permission using its ________
authenticator class
AndroidManifest.xml
Stack - back stack
Component - screen
4. Once installed on a device - each Android application lives in its own ______
InputStream
security sandbox
SQLiteOpenHelper
getInputStream()
5. This is the most common input event in the Android system.
onDestroy();
ActionProvider
touch
Android SDK
6. The minimal energy state during which no network connection is active or required.
Standby
ACTION_SEND
Implicit intent
resolveSizeAndState()
7. If permissions are missing - the application will get this at runtime.
auth scope
Wi-Fi radio
SecurityException
onPause();
8. On a rooted device - the credentials would be readable by anyone with this access to the device.
View
Deserialize
Account Manager
adb
9. To respond to media button clicks - you need to register this in your manifest that listens for this action broadcast.
Google
BroadcastReceiver
PieChart
Widgets
10. This class computes scroll positions for you - but it does not automatically apply those positions to your view.
Google Play
Scroller
isConnected()
onStart() - onStop()
11. ______ are views derived from ViewGroup that provide a unique layout model for its child views
Component - screen
Layouts
Dalvik Debug Monitor Server
Scroller
12. Describes the status of a network interface of a given type (currently either Mobile or Wi-Fi).
NetworkInfo
Activity
searchable configuration
Google Cloud Messaging for Android (GCM)
13. A mode where navigation is set up with a spinner widget.
virtual table
PieChart
single-pane
Linux based
14. The easiest way to create an authenticator class is to extend this and implement its abstract methods.
Activity
AbstractAccountAuthenticator
drawText()
OnCurrentItemChanged
15. The helper method is used to create the final width and height values.
Layouts
searchable configuration
resolveSizeAndState()
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
16. This provides methods to define line's color - whether to fill a rectangle with a color or leave it empty - and defines the color - style - font - and so forth of each shape you draw.
BroadcastReceiver
Paint
Explicit intent
Advanced Training
17. A styleable entity that contains these two custom attributes: showText and labelPosition.
Serialize
dual-
PieChart
onDestroy();
18. In most cases this will offer greater bandwidth at a significantly lower battery cost.
Destroyed - previous
ViewStub
Wi-Fi radio
ConnectivityManager
19. It is a subclass of PreferenceActivity.
Implicit intent
View
AttributeSet
SettingsActivity
20. If you want your APK to be visible on TVs which are non-touchscreen devices you should add this to your manifest.
SQLiteOpenHelper
visible
setVolumeControlStream()
android.hardware.touchscreen
21. This is the main class through which your application can access location services on Android.
onCreate() - onDestroy()
Wi-Fi radio
onCreate();
LocationManager
22. This can be used to draw previews of what the camera sensor is picking up.
SQLite
onCreate();
Linux based
SurfaceView
23. For example - if your activity has a thread running in the background to download data from the network - it might create that thread in _____ and then stop the thread in _____
Activity
Layouts
onCreate() - onDestroy()
getInputStream()
24. This action is used in sending text content from one activity to another.
HttpURLConnection
SurfaceHolder.Callback
ACTION_SEND
SurfaceView
25. A service in which programmers can offer their Android application to Android users.
Google Play
SearchView
Advanced Training
Application resources
26. Perform background tasks without providing a user interface
EXTRA_STREAM
virtual table
LTE
Services
27. _____ are views that provide a visual (and interactive) elements for the screen - such as a button - text field - checkbox - or just an image.
Widgets
adb
onSearchRequested()
Standby
28. An _______ is an application component that provides a screen with which users can interact in order to do something - such as dial the phone - take a photo - send an email - or view a map.
<declare-styleable>
Activity
SettingsActivity
onCreate() - onDestroy()
29. Converts XML Document to XML DOM
Parser
Extensible Markup Language (XML)
auth scope
onCreate() - onDestroy()
30. This search feature was introduced in Android 3.0 and can maintain backward compatibility with older versions of Android by using the default search dialog provided by the system.
Stack
Layouts
SearchView
AsyncTask
31. Theseclasses simplify the steps required to enhance your app with powerful platform features or effectively optimize your app performance.
Open Handset Alliance
onCreate() - onDestroy()
Advanced Training
GET_ACCOUNTS
32. This widget as an item in the action bar is the preferred way to provide search in your app.
getInputStream()
SearchView
Dots per inch
onCreate() - onDestroy()
33. You can set the layout as the UI for your activity with passing the resource ID for the layout.
GET_ACCOUNTS
ACTION_DOCK_EVENT
OAuth2
setContentView
34. This defines how the SearchView behaves and is defined in a res/xml/searchable.xml file.
Stack
Application resources
Google Play
searchable configuration
35. It is an efficient and maintainable way to parse XML on Android.
auth scope
AndroidManifest.xml
ETC1
XmlPullParser
36. It is available starting with API Level 14 and higher.
BroadcastReceiver
View
ShareActionProvider
Back stack
37. Callback method: Another activity is taking focus
onPause();
Wi-Fi radio
adb
GestureDetector
38. It typically consumes more energy than 3G - which is in turn more expensive than 2G.
Geocoder
touch
Component - screen
LTE
39. In order for the AccountManager to work with your custom account code - you need this class that implements the interfaces that AccountManager expects.
BroadcastReceiver
isConnected()
Widgets
authenticator class
40. Callback method: The activity is no longer visible
Application resources
onStop();
Google Cloud Messaging for Android (GCM)
onCreate();
41. Direct component call in Android
View
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
Explicit intent
searchable configuration
42. The back stack abides to the basic "last in - first out" stack mechanism - so - when the user is done with the current activity and presses the Back button - it is popped from the stack (and ____) and the ____ activity resumes
onCreate();
Full power
Google Cloud Messaging for Android (GCM)
Destroyed - previous
43. Shows the actual amount of memory the application uses
Application footprint
onCreate();
Linux based
EXTRA_STREAM
44. When a new activity starts - it is pushed onto the ____ and takes user focus.
Google Cloud Messaging for Android (GCM)
Back stack
View
SettingsActivity
45. This is set up to animate for the duration of the fling.
ValueAnimator
android.hardware.touchscreen
onMeasure()
getInputStream()
46. In order to get a list of accounts on the device - your app needs this permission.
GET_ACCOUNTS
Open Handset Alliance
getInputStream()
AbstractAccountAuthenticator
47. This is a readable source of bytes.
InputStream
adb
NetworkInfo
onDestroy();
48. This is used to fetch the account names that the user has stored on their device.
Account Manager
Activity
single-pane
InputStream
49. Android is __________.
Linux based
isConnected()
single-pane
Back stack
50. The ____ lifetime of an activity happens between the call to onStart() and the call to onStop().
Activity
Services
drawText()
visible