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 defines how the SearchView behaves and is defined in a res/xml/searchable.xml file.
searchable configuration
AsyncTask
Activity
Google Cloud Messaging (GCM)
2. It typically consumes more energy than 3G - which is in turn more expensive than 2G.
LTE
PackageManager
ViewStub
Implicit intent
3. This callback method of the audio focus change listener you registered when requesting audio focus receives a parameter that describes the focus change event.
Services
onAudioFocusChange()
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
Widgets
4. This broadcasts all battery and charging details in a sticky Intent that includes the charging status.
BatteryManager
onCreate() - onDestroy()
Wi-Fi radio
ACTION_SEND
5. Callback method: The activity is about to be destroyed.
onDestroy();
Google Play
Emulator
virtual table
6. The visible lifetime of an activity happens between the call to ____ and the call to ______
HttpURLConnection
BroadcastReceiver
onStart() - onStop()
Geocoder
7. Evaluation of registered components
Implicit intent
ConnectivityManager
BroadcastReceiver
SearchView
8. This is set up to animate for the duration of the fling.
Layouts
ValueAnimator
OAuth2 protocol
AudioManager
9. This is a lightweight view with no dimension and doesn't draw anything or participate in the layout.
AsyncTask
ViewStub
Account
onMeasure()
10. It is available starting with API Level 14 and higher.
Emulator
BroadcastReceiver
Google Cloud Messaging (GCM)
ShareActionProvider
11. In order to get a list of accounts on the device - your app needs this permission.
Entire
View
GET_ACCOUNTS
LocationManager
12. This class computes scroll positions for you - but it does not automatically apply those positions to your view.
android.hardware.touchscreen
SQLite
Google Cloud Messaging (GCM)
Scroller
13. Each activity can then start another activity in order to perform different actions. Each time a new activity starts - the previous activity is stopped - but the system preserves the activity in a ___ .
Services
Stack
Hierarchy Viewer
searchable configuration
14. 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?
AttributeSet
onStart() - onStop()
auth scope
Emulator
15. The minimal energy state during which no network connection is active or required.
Ducking
ACTION_SEND
Standby
Activity
16. You can reacquire the necessary resources and resume actions that were interrupted. These state transitions are all part of the _________
XmlPullParser
When the activity resumes
SurfaceView
Intent filters
17. Use this to draw text.
LTE
drawText()
When the activity resumes
ViewStub
18. Most network-connected Android apps use this to send and receive data.
onDestroy();
Layouts
InputStream
HTTP
19. It is used as a reverse-geocoding where translating latitude longitude coordinates to a human-readable address happens.
Geocoder
android.hardware.touchscreen
onStart() - onStop()
Explicit intent
20. The dock-state details are included as an extra in a sticky broadcast of this action.
BackupHelper
ACTION_DOCK_EVENT
SearchView
Emulator
21. It is called to invoke the search dialog on older devices.
touch
Full power
Serialize
onSearchRequested()
22. This class is the basis for handling flywheel-style fling gestures.
resolveSizeAndState()
Scroller
onDraw()
ConnectivityManager
23. 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.
SearchView
Dalvik Debug Monitor Server
Service Content Provider
resolveSizeAndState()
24. This is the main class through which your application can access location services on Android.
LocationManager
Component - screen
BackupHelper
onStop();
25. 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.
Scroller
BatteryManager
Paint
Linux based
26. When a new activity starts - it is pushed onto the ____ and takes user focus.
BroadcastReceiver
Back stack
<declare-styleable>
ETC1
27. Answers queries about the state of network connectivity. It also notifies applications when network connectivity changes.
Component - screen
touch
ConnectivityManager
resolveSizeAndState()
28. Callback method: Another activity is taking focus
ACTION_DOCK_EVENT
ConnectivityManager
onPause();
drawBitmap()
29. Callback method: The activity is being created.
Low power
Extensible Markup Language (XML)
onCreate();
authenticator class
30. For example - a ____ might be a button that initiates an action when the user touches it.
authenticator class
onStop();
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
View
31. Allow to combine loosely coupled components to perform certain tasks
ACTION_SEND
Intents
SettingsActivity
BroadcastReceiver
32. You can set the layout as the UI for your activity with passing the resource ID for the layout.
visible
setContentView
Ducking
Open Handset Alliance
33. is run when running Android on the pc
Lifecycle callback methods
setContentView
Open Handset Alliance
Emulator
34. This is the most common input event in the Android system.
Activity
HttpURLConnection
touch
ShareActionProvider
35. Represents the visual representation of an Android application
setVolumeControlStream()
NetworkInfo
Activity
Geocoder
36. 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 _____
Stack - back stack
onCreate() - onDestroy()
Google
Stack
37. This class provides one of the simplest ways to fire off a new task from the UI thread.
setVolumeControlStream()
Fragments
Back stack
AsyncTask
38. This broadcasts an action whenever the device is connected or disconnected from power.
BroadcastReceiver
Scroller
<declare-styleable>
BatteryManager
39. The most common way to define a layout using views is with an XML layout file saved in your ______
PackageManager
onStop();
<declare-styleable>
Application resources
40. This is used to fetch the account names that the user has stored on their device.
Android SDK
Explicit intent
ACTION_DOCK_EVENT
Account Manager
41. Whenever the device is docked or undocked - this action is broadcast.
GET_ACCOUNTS
Canvas
ACTION_DOCK_EVENT
Low power
42. It's generally a good idea for one of your APKs to support this texture format as it is supported by all Android-powered devices that support the OpenGL ES 2.0 spec.
Destroyed - previous
Lifecycle callback methods
ETC1
ConnectivityManager
43. This is an interface which is used to pass image data from the camera hardware to the application.
onDraw()
SurfaceHolder.Callback
Serialize
onStart() - onStop()
44. Callback method: The activity has become visible.
SearchView
HTTP
Android SDK
onResume();
45. The receiver is triggered whenever the device battery becomes low or exits the low condition by listening for this two.
SettingsActivity
Android SDK
resolveSizeAndState()
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
46. Perform background tasks without providing a user interface
Canvas
AsyncTask
SQLite
Services
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
ViewStub
PackageManager
NetworkInfo
ConnectivityManager
48. It is a subclass of PreferenceActivity.
Deserialize
SettingsActivity
Android SDK
Low power
49. The entire lifetime of an activity happens between the call to _____ and the call to _____
onCreate() - onDestroy()
ACTION_DOCK_EVENT
EXTRA_STREAM
virtual table
50. When an activity is stopped because a new activity starts - it is notified of this change in state through the activity's _______ .
BroadcastReceiver
adb
LocationManager
Lifecycle callback methods