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. Answers queries about the state of network connectivity. It also notifies applications when network connectivity changes.
onStop();
ConnectivityManager
setVolumeControlStream()
Parser
2. This method returns the inflated View once complete so you don't need to call findViewById() if you need to interact with the layout.
inflate()
Canvas
Parser
onStart() - onStop()
3. Your activity should perform setup of "global" state (such as defining layout) in ____ and release all remaining resources in _____
android.hardware.touchscreen
PackageManager
Component - screen
onCreate() - onDestroy()
4. Conversion of XML back to an object
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
Deserialize
onStart() - onStop()
SQLiteOpenHelper
5. It is used as a reverse-geocoding where translating latitude longitude coordinates to a human-readable address happens.
onStop();
Serialize
Geocoder
Full power
6. This is a base class supplied by Android framework - which you can extend to create your own custom authenticator.
visible
Stack
Google Cloud Messaging (GCM)
AccountAuthenticatorActivity
7. Perform background tasks without providing a user interface
onDraw()
Services
GET_ACCOUNTS
Full power
8. Use this to draw bitmaps.
virtual table
drawBitmap()
Parser
Geocoder
9. This is used for the need of finer control over your view's layout parameters.
Geocoder
Open Handset Alliance
onMeasure()
SearchView
10. On a rooted device - the credentials would be readable by anyone with this access to the device.
onDraw()
onStop();
Wi-Fi radio
adb
11. 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
Entire
Destroyed - previous
ShareActionProvider
Application footprint
12. The most common way to define a layout using views is with an XML layout file saved in your ______
Extensible Markup Language (XML)
drawText()
Application resources
AudioManager
13. Callback method: The activity is no longer visible.
ViewStub
PieChart
onStop();
Application footprint
14. This broadcasts an action whenever the device is connected or disconnected from power.
Paint
Scroller
SettingsActivity
BatteryManager
15. This is the most common input event in the Android system.
Account Manager
touch
Standby
NetworkInfo
16. Converts XML Document to XML DOM
OAuth2 protocol
HTTP
Parser
Linux based
17. It is the process of lowering your audio stream output volume to make transient audio from another app easier to hear without totally disrupting the audio from your own application.
setContentView
drawBitmap()
onPause();
Ducking
18. This class defines methods for drawing text - lines - bitmaps - and many other graphics primitives.
Canvas
Dalvik Virtual Machine
Entire
setVolumeControlStream()
19. Once a connection has been established - the app uses this method to retrieve the data as an InputStream.
onDestroy();
onStart() - onStop()
getInputStream()
Back stack
20. In order for the AccountManager to work with your custom account code - you need this class that implements the interfaces that AccountManager expects.
virtual table
authenticator class
ShareActionProvider
When the activity resumes
21. This callback method of the audio focus change listener you registered when requesting audio focus receives a parameter that describes the focus change event.
ActionProvider
onAudioFocusChange()
Intents
HTTP
22. It is an efficient and maintainable way to parse XML on Android.
getInputStream()
OAuth2 protocol
Standby
XmlPullParser
23. ______ are views derived from ViewGroup that provide a unique layout model for its child views
When the activity resumes
OAuth2 protocol
GET_ACCOUNTS
Layouts
24. 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
security sandbox
ACTION_SEND
PieChart
25. This is a lightweight view with no dimension and doesn't draw anything or participate in the layout.
Account
ACTION_DOCK_EVENT
ViewStub
BroadcastReceiver
26. 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.
View
SearchView
authenticator class
Dalvik Virtual Machine
27. When a new activity starts - it is pushed onto the ____ and takes user focus.
ETC1
Account Manager
Back stack
XmlPullParser
28. 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?
Paint
AttributeSet
View
EXTRA_STREAM
29. Callback method: The activity is about to be destroyed.
onDestroy();
Paint
Google Cloud Messaging for Android (GCM)
Intents
30. This defines how the SearchView behaves and is defined in a res/xml/searchable.xml file.
BatteryManager
searchable configuration
When the activity resumes
setVolumeControlStream()
31. It is called to invoke the search dialog on older devices.
onCreate() - onDestroy()
onStop();
security sandbox
onSearchRequested()
32. This is set up to animate for the duration of the fling.
setVolumeControlStream()
ValueAnimator
Canvas
onStart() - onStop()
33. An intermediate state that uses around 50% of the battery power at the full state.
NetworkInfo
Low power
Stack
Fragments
34. The entire lifetime of an activity happens between the call to _____ and the call to _____
Account Manager
onCreate() - onDestroy()
AbstractAccountAuthenticator
BatteryManager
35. This is used to fetch the account names that the user has stored on their device.
SQLite
Account Manager
onStart() - onStop()
When the activity resumes
36. Most network-connected Android apps use this to send and receive data.
getInputStream()
ShareActionProvider
HTTP
drawBitmap()
37. It is an HTTP client that is used for applications targeted at Gingerbread and higher.
isConnected()
HttpURLConnection
onStop();
setVolumeControlStream()
38. This is used to check that you're actually connected to the Internet and what type of connection is in place.
ConnectivityManager
AudioManager
onSearchRequested()
isConnected()
39. The dock-state details are included as an extra in a sticky broadcast of this action.
Google Cloud Messaging for Android (GCM)
Extensible Markup Language (XML)
ACTION_DOCK_EVENT
Android SDK
40. PieChart exposes a custom event to notify listeners that the user has rotated the pie chart to focus on a new pie slice.
onStop();
HttpURLConnection
OnCurrentItemChanged
resolveSizeAndState()
41. Represents the visual representation of an Android application
Activity
authenticator class
View
LocationManager
42. This action is used in sending text content from one activity to another.
ACTION_SEND
AsyncTask
BroadcastReceiver
Deserialize
43. The visible lifetime of an activity happens between the call to ____ and the call to ______
onStart() - onStop()
Services
Deserialize
Standby
44. 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 _____
onCreate() - onDestroy()
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
Canvas
Open Handset Alliance
45. Evaluation of registered components
Implicit intent
OnCurrentItemChanged
Ducking
visible
46. The Android SDK tools include a tool that allows you to analyze your layout while your application is running.
setVolumeControlStream()
Account Manager
Hierarchy Viewer
InputStream
47. 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
onSearchRequested()
ACTION_DOCK_EVENT
Component - screen
48. This class computes scroll positions for you - but it does not automatically apply those positions to your view.
BatteryManager
Scroller
onStart() - onStop()
LocationManager
49. Are used in activities to create the user interface and to interact with the user.
Stack
Application resources
Fragments
android.hardware.touchscreen
50. Relative to pixels and resolution screen
Explicit intent
auth scope
AndroidManifest.xml
Dots per inch