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. _____ are views that provide a visual (and interactive) elements for the screen - such as a button - text field - checkbox - or just an image.
AttributeSet
Widgets
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
onDraw()
2. This is used for the need of finer control over your view's layout parameters.
ValueAnimator
Activity
onDraw()
onMeasure()
3. Callback method: The activity is about to be destroyed.
onDestroy();
OnCurrentItemChanged
ACTION_DOCK_EVENT
ActionProvider
4. This widget as an item in the action bar is the preferred way to provide search in your app.
SearchView
Destroyed - previous
SettingsActivity
LocationManager
5. If permissions are missing - the application will get this at runtime.
ShareActionProvider
GestureDetector
SecurityException
View
6. This is used to check that you're actually connected to the Internet and what type of connection is in place.
ConnectivityManager
inflate()
NetworkInfo
BroadcastReceiver
7. This is an interface which is used to pass image data from the camera hardware to the application.
SurfaceHolder.Callback
touch
Extensible Markup Language (XML)
LocationManager
8. It is an HTTP client that is used for applications targeted at Gingerbread and higher.
XmlPullParser
Google Cloud Messaging (GCM)
View
HttpURLConnection
9. This broadcasts an action whenever the device is connected or disconnected from power.
ETC1
getInputStream()
BatteryManager
Application resources
10. It provides a single value - called an auth token that represents both the user's identity and the application's authorization to act on the user's behalf.
PieChart
OAuth2
getInputStream()
authenticator class
11. This is used to register and de-register your media button event receiver.
onSearchRequested()
OAuth2 protocol
Scroller
AudioManager
12. This is a lightweight view with no dimension and doesn't draw anything or participate in the layout.
single-pane
Google Cloud Messaging for Android (GCM)
ViewStub
GET_ACCOUNTS
13. It is an efficient and maintainable way to parse XML on Android.
Extensible Markup Language (XML)
XmlPullParser
ShareActionProvider
Google
14. A styleable entity that contains these two custom attributes: showText and labelPosition.
PieChart
BackupHelper
ACTION_DOCK_EVENT
Intents
15. This action is used in sending text content from one activity to another.
Back stack
Deserialize
ACTION_SEND
onDestroy();
16. In order for the AccountManager to work with your custom account code - you need this class that implements the interfaces that AccountManager expects.
LocationManager
View
PieChart
authenticator class
17. Use this to draw text.
GestureDetector
drawText()
Google
security sandbox
18. In most cases this will offer greater bandwidth at a significantly lower battery cost.
single-pane
Wi-Fi radio
android.hardware.touchscreen
GestureDetector
19. It is called to invoke the search dialog on older devices.
security sandbox
SQLiteOpenHelper
onSearchRequested()
authenticator class
20. This callback method of the audio focus change listener you registered when requesting audio focus receives a parameter that describes the focus change event.
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
onCreate() - onDestroy()
onAudioFocusChange()
Dalvik Debug Monitor Server
21. This class is the basis for handling flywheel-style fling gestures.
touch
Scroller
Advanced Training
Layouts
22. This defines how the SearchView behaves and is defined in a res/xml/searchable.xml file.
Application resources
Entire
AudioManager
searchable configuration
23. A mode where navigation is set up with a spinner widget.
Geocoder
single-pane
onDestroy();
Service Content Provider
24. This class provides one of the simplest ways to fire off a new task from the UI thread.
ACTION_SEND
drawBitmap()
BackupHelper
AsyncTask
25. This can be used to draw previews of what the camera sensor is picking up.
SurfaceView
visible
searchable configuration
virtual table
26. Callback method: Another activity is taking focus
auth scope
onPause();
OAuth2
HTTP
27. Describes the status of a network interface of a given type (currently either Mobile or Wi-Fi).
NetworkInfo
Activity
SettingsActivity
EXTRA_STREAM
28. This class exposes a number of methods for applications to receive location updates.
Objects Activity lifecycle
AsyncTask
LocationManager
PieChart
29. This is used to fetch the account names that the user has stored on their device.
SurfaceView
SearchView
Account Manager
Deserialize
30. You can reacquire the necessary resources and resume actions that were interrupted. These state transitions are all part of the _________
onStart() - onStop()
Dots per inch
When the activity resumes
BatteryManager
31. To respond to media button clicks - you need to register this in your manifest that listens for this action broadcast.
ViewStub
When the activity resumes
onStop();
BroadcastReceiver
32. This is the most common input event in the Android system.
dual-
authenticator class
ViewStub
touch
33. The helper method is used to create the final width and height values.
adb
resolveSizeAndState()
Services
Intents
34. On a rooted device - the credentials would be readable by anyone with this access to the device.
adb
Account Manager
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
LocationManager
35. Where Android is currently primarily developed
OAuth2 protocol
Google
Low power
ACTION_DOCK_EVENT
36. Shows the actual amount of memory the application uses
dual-
Application footprint
Account
Geocoder
37. Your activity should perform setup of "global" state (such as defining layout) in ____ and release all remaining resources in _____
onCreate() - onDestroy()
PackageManager
Open Handset Alliance
setVolumeControlStream()
38. 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.
Lifecycle callback methods
View
View
SearchView
39. This class defines methods for drawing text - lines - bitmaps - and many other graphics primitives.
Destroyed - previous
LTE
onStop();
Canvas
40. Perform background tasks without providing a user interface
Component - screen
adb
Services
PackageManager
41. The minimal energy state during which no network connection is active or required.
GET_ACCOUNTS
GestureDetector
ETC1
Standby
42. To create an activity - you must create a subclass of
Canvas
Scroller
Intents
Activity
43. An intermediate state that uses around 50% of the battery power at the full state.
PieChart
Canvas
Application footprint
Low power
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 _____
Application resources
onCreate() - onDestroy()
Intent filters
Services
45. This is a readable source of bytes.
setVolumeControlStream()
InputStream
LTE
searchable configuration
46. Theseclasses simplify the steps required to enhance your app with powerful platform features or effectively optimize your app performance.
isConnected()
Android SDK
View
Advanced Training
47. This is the main class through which your application can access location services on Android.
LocationManager
AccountAuthenticatorActivity
Low power
ACTION_SEND
48. It provides a simple way to perform your work outside the main thread.
AsyncTask
OnCurrentItemChanged
ViewStub
Account Manager
49. Callback method: The activity is no longer visible
onStop();
SearchView
Activity
Services
50. Callback method: The activity has become visible.
Back stack
Android SDK
Canvas
onResume();