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. Creating drawing objects within this method significantly reduces performance and can make your UI appear sluggish.
Dalvik Virtual Machine
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
AndroidManifest.xml
onDraw()
2. You can set the layout as the UI for your activity with passing the resource ID for the layout.
auth scope
Lifecycle callback methods
setContentView
BroadcastReceiver
3. In order to get a list of accounts on the device - your app needs this permission.
Hierarchy Viewer
GET_ACCOUNTS
onResume();
Account Manager
4. Binary data is shared using the ACTION_SEND action combined with setting the appropriate MIME type and placing the URI to the data in an extra named called?
EXTRA_STREAM
BatteryManager
Lifecycle callback methods
AsyncTask
5. The ____ lifetime of an activity happens between the call to onStart() and the call to onStop().
visible
Stack - back stack
Linux based
Google Cloud Messaging for Android (GCM)
6. Android provides this handy method to direct volume key presses to the audio stream the user specify.
Google
Geocoder
AbstractAccountAuthenticator
setVolumeControlStream()
7. It is a subclass of PreferenceActivity.
Geocoder
BroadcastReceiver
SettingsActivity
onCreate();
8. Use this to draw bitmaps.
SearchView
BackupHelper
ACTION_DOCK_EVENT
drawBitmap()
9. Callback method: The activity is no longer visible.
View
LTE
ConnectivityManager
onStop();
10. In most cases this will offer greater bandwidth at a significantly lower battery cost.
AsyncTask
Wi-Fi radio
onSearchRequested()
BackupHelper
11. It is used to load images in a background thread - then apply them to the UI once finished.
onSearchRequested()
onResume();
AsyncTask
Standby
12. The dock-state details are included as an extra in a sticky broadcast of this action.
SearchView
Account Manager
ACTION_DOCK_EVENT
onCreate() - onDestroy()
13. The minimal energy state during which no network connection is active or required.
Android SDK
Stack
Standby
Full power
14. It is used to toggle the enabled state on any component defined in the manifest - including whichever broadcast receivers you wish to enable or disable
PackageManager
Scroller
drawBitmap()
Dalvik Debug Monitor Server
15. is run when running Android on the pc
BatteryManager
SurfaceView
Application footprint
Emulator
16. It inform the system what intents an application component is willing to accept.
onCreate() - onDestroy()
Intent filters
SearchView
Scroller
17. It is a string that defines the specific type of access your app is asking for.
InputStream
auth scope
Dots per inch
Advanced Training
18. This callback method of the audio focus change listener you registered when requesting audio focus receives a parameter that describes the focus change event.
SQLite
Scroller
onAudioFocusChange()
Open Handset Alliance
19. 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.
Paint
onStart() - onStop()
Parser
View
20. Callback method: The activity is about to be destroyed.
onDestroy();
Activity
OnCurrentItemChanged
Wi-Fi radio
21. When an activity is stopped because a new activity starts - it is notified of this change in state through the activity's _______ .
Activity
isConnected()
Lifecycle callback methods
ViewStub
22. 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 _____
onDestroy();
onCreate() - onDestroy()
BatteryManager
Google
23. Callback method: The activity has become visible.
XmlPullParser
onResume();
ActionProvider
onCreate() - onDestroy()
24. Each time a new activity starts - the previous activity is stopped - but the system preserves the activity in a _____ (the ______).
isConnected()
Stack - back stack
Dots per inch
Canvas
25. An intermediate state that uses around 50% of the battery power at the full state.
resolveSizeAndState()
Service Content Provider
single-pane
Low power
26. To respond to media button clicks - you need to register this in your manifest that listens for this action broadcast.
onStop();
Extensible Markup Language (XML)
BroadcastReceiver
Google
27. The receiver is triggered whenever the device battery becomes low or exits the low condition by listening for this two.
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
Services
dual-
LTE
28. Android is __________.
Linux based
Canvas
BroadcastReceiver
BatteryManager
29. This is used to convert raw touch events into gestures.
Google Cloud Messaging (GCM)
SurfaceView
GestureDetector
HttpURLConnection
30. This is a base class supplied by Android framework - which you can extend to create your own custom authenticator.
AccountAuthenticatorActivity
Lifecycle callback methods
BroadcastReceiver
onDraw()
31. For example - a ____ might be a button that initiates an action when the user touches it.
View
GestureDetector
LTE
Advanced Training
32. Theseclasses simplify the steps required to enhance your app with powerful platform features or effectively optimize your app performance.
Layouts
Paint
Advanced Training
Dalvik Virtual Machine
33. Once a connection has been established - the app uses this method to retrieve the data as an InputStream.
Scroller
Canvas
getInputStream()
adb
34. This is set up to animate for the duration of the fling.
PieChart
Activity
ValueAnimator
SecurityException
35. Conversion of XML back to an object
Android SDK
Deserialize
Geocoder
single-pane
36. When a view is created from an XML layout - all of the attributes in the XML tag are read from the resource bundle and passed into the view's constructor as a what?
ViewStub
Google Play
AttributeSet
drawBitmap()
37. It is an HTTP client that is used for applications targeted at Gingerbread and higher.
onStop();
HttpURLConnection
Android SDK
View
38. _____ are views that provide a visual (and interactive) elements for the screen - such as a button - text field - checkbox - or just an image.
Explicit intent
View
Widgets
Extensible Markup Language (XML)
39. Amode where the action bar is set up with tabs for navigation.
Layouts
dual-
AsyncTask
Entire
40. These helpers are specialized classes for backing up certain kinds of data.
setContentView
Application resources
BackupHelper
Android SDK
41. Used when a connection is active - allowing the device to transfer data at its highest possible rate.
drawText()
Full power
BroadcastReceiver
When the activity resumes
42. Answers queries about the state of network connectivity. It also notifies applications when network connectivity changes.
Account Manager
Objects Activity lifecycle
Activity
ConnectivityManager
43. On a rooted device - the credentials would be readable by anyone with this access to the device.
adb
Services
SettingsActivity
onStop();
44. This class defines abstract methods that you must override so that your database table can be created and upgraded when necessary.
SQLiteOpenHelper
dual-
Google Cloud Messaging (GCM)
android.hardware.touchscreen
45. This object contains an account name - which for Google accounts is an email address.
virtual table
onMeasure()
Account
Dalvik Debug Monitor Server
46. It typically consumes more energy than 3G - which is in turn more expensive than 2G.
OAuth2
Services
LTE
onDraw()
47. You can reacquire the necessary resources and resume actions that were interrupted. These state transitions are all part of the _________
OnCurrentItemChanged
Google Play
GET_ACCOUNTS
When the activity resumes
48. Your activity should perform setup of "global" state (such as defining layout) in ____ and release all remaining resources in _____
onCreate() - onDestroy()
View
BroadcastReceiver
Google Cloud Messaging (GCM)
49. For instance - when stopped - your activity should release any large ____ - such as network or database connections.
ACTION_DOCK_EVENT
Objects Activity lifecycle
SecurityException
Layouts
50. The visible lifetime of an activity happens between the call to ____ and the call to ______
dual-
Widgets
onStart() - onStop()
ACTION_SEND