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. It is a subclass of PreferenceActivity.
SettingsActivity
adb
onAudioFocusChange()
onCreate() - onDestroy()
2. Android system uses a special virtual machine to run java based applicatons
inflate()
HttpURLConnection
Dalvik Virtual Machine
ACTION_SEND
3. The ____ lifetime of an activity happens between the call to onCreate() and the call to onDestroy().
onCreate() - onDestroy()
Lifecycle callback methods
Entire
LocationManager
4. An Activity is an application ______ that provides a _______ 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
Stack
Objects Activity lifecycle
BatteryManager
Component - screen
5. Most network-connected Android apps use this to send and receive data.
Component - screen
android.hardware.touchscreen
HTTP
drawBitmap()
6. This broadcasts an action whenever the device is connected or disconnected from power.
BatteryManager
Services
onResume();
security sandbox
7. If you want your APK to be visible on TVs which are non-touchscreen devices you should add this to your manifest.
ETC1
Layouts
android.hardware.touchscreen
SearchView
8. This broadcasts all battery and charging details in a sticky Intent that includes the charging status.
BatteryManager
Standby
Paint
Google Cloud Messaging for Android (GCM)
9. The receiver is triggered whenever the device battery becomes low or exits the low condition by listening for this two.
onStart() - onStop()
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
Low power
ShareActionProvider
10. Direct component call in Android
Activity
onStart() - onStop()
ValueAnimator
Explicit intent
11. Use this to draw bitmaps.
drawBitmap()
ACTION_DOCK_EVENT
Activity
LocationManager
12. Conversion of an object to XML
onPause();
onStart() - onStop()
Serialize
onCreate() - onDestroy()
13. This is used to register and de-register your media button event receiver.
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
Entire
AsyncTask
AudioManager
14. Each time a new activity starts - the previous activity is stopped - but the system preserves the activity in a _____ (the ______).
Stack - back stack
Dalvik Virtual Machine
BroadcastReceiver
OAuth2 protocol
15. For instance - when stopped - your activity should release any large ____ - such as network or database connections.
GET_ACCOUNTS
Objects Activity lifecycle
<declare-styleable>
onDraw()
16. This is an interface which is used to pass image data from the camera hardware to the application.
ViewStub
ViewStub
Low power
SurfaceHolder.Callback
17. _____ are views that provide a visual (and interactive) elements for the screen - such as a button - text field - checkbox - or just an image.
Account
Widgets
Services
LTE
18. Callback method: The activity is being created.
Back stack
ConnectivityManager
Layouts
onCreate();
19. This class exposes a number of methods for applications to receive location updates.
GET_ACCOUNTS
LocationManager
drawBitmap()
ViewStub
20. The industry standard way to deal with authentication to third-party services.
Dots per inch
OAuth2 protocol
setContentView
Dalvik Debug Monitor Server
21. This is used to check that you're actually connected to the Internet and what type of connection is in place.
onCreate();
ConnectivityManager
BatteryManager
Fragments
22. It is available starting with API Level 14 and higher.
ShareActionProvider
onSearchRequested()
Ducking
Emulator
23. This handles cases like flaky mobile networks - airplane mode - and restricted background data.
Application footprint
Layouts
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
isConnected()
24. Converts XML Document to XML DOM
drawText()
Parser
onStop();
AccountAuthenticatorActivity
25. This is the most common input event in the Android system.
EXTRA_STREAM
Emulator
touch
Application footprint
26. 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.
Scroller
Google
Activity
visible
27. This object contains an account name - which for Google accounts is an email address.
BroadcastReceiver
Dots per inch
When the activity resumes
Account
28. Whenever the device is docked or undocked - this action is broadcast.
Advanced Training
ACTION_DOCK_EVENT
GestureDetector
<declare-styleable>
29. is run when running Android on the pc
Destroyed - previous
isConnected()
Emulator
OAuth2
30. An intermediate state that uses around 50% of the battery power at the full state.
SearchView
Low power
AsyncTask
Intents
31. Where Android is currently primarily developed
onMeasure()
BatteryManager
Google
onAudioFocusChange()
32. In order for the AccountManager to work with your custom account code - you need this class that implements the interfaces that AccountManager expects.
authenticator class
Layouts
Scroller
Low power
33. 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.
resolveSizeAndState()
ETC1
Android SDK
Ducking
34. It is an efficient and maintainable way to parse XML on Android.
Serialize
Geocoder
XmlPullParser
Linux based
35. It is a set of rules for encoding documents in machine-readable form.
Layouts
When the activity resumes
Extensible Markup Language (XML)
Hierarchy Viewer
36. Callback method: Another activity is taking focus
Objects Activity lifecycle
onPause();
dual-
Fragments
37. This callback method of the audio focus change listener you registered when requesting audio focus receives a parameter that describes the focus change event.
onAudioFocusChange()
ActionProvider
SurfaceView
Paint
38. 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 ___ .
Stack
onAudioFocusChange()
Activity
onResume();
39. This class provides one of the simplest ways to fire off a new task from the UI thread.
resolveSizeAndState()
BatteryManager
AsyncTask
Android SDK
40. When an activity is stopped because a new activity starts - it is notified of this change in state through the activity's _______ .
Lifecycle callback methods
Serialize
ViewStub
Google
41. 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 _____
visible
onCreate() - onDestroy()
View
ViewStub
42. This is used for the need of finer control over your view's layout parameters.
onMeasure()
ShareActionProvider
ACTION_DOCK_EVENT
Layouts
43. The easiest way to create an authenticator class is to extend this and implement its abstract methods.
android.hardware.touchscreen
onAudioFocusChange()
AbstractAccountAuthenticator
Android SDK
44. It is used to load images in a background thread - then apply them to the UI once finished.
AsyncTask
SurfaceHolder.Callback
Google Cloud Messaging for Android (GCM)
ShareActionProvider
45. Once installed on a device - each Android application lives in its own ______
Paint
security sandbox
AttributeSet
When the activity resumes
46. The ____ lifetime of an activity happens between the call to onStart() and the call to onStop().
onAudioFocusChange()
HTTP
ConnectivityManager
visible
47. This class computes scroll positions for you - but it does not automatically apply those positions to your view.
Deserialize
Scroller
EXTRA_STREAM
AsyncTask
48. Evaluation of registered components
Layouts
searchable configuration
Implicit intent
onCreate() - onDestroy()
49. This can be used to draw previews of what the camera sensor is picking up.
PackageManager
Account Manager
SurfaceView
Lifecycle callback methods
50. This is a lightweight view with no dimension and doesn't draw anything or participate in the layout.
Account
onCreate() - onDestroy()
ViewStub
onResume();