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. Your activity should perform setup of "global" state (such as defining layout) in ____ and release all remaining resources in _____
Back stack
onCreate() - onDestroy()
SQLite
Full power
2. You can reacquire the necessary resources and resume actions that were interrupted. These state transitions are all part of the _________
Google
visible
When the activity resumes
BroadcastReceiver
3. An open source group led by Google
Open Handset Alliance
BroadcastReceiver
AndroidManifest.xml
getInputStream()
4. The ____ lifetime of an activity happens between the call to onStart() and the call to onStop().
visible
OAuth2 protocol
BatteryManager
Stack - back stack
5. It is available starting with API Level 14 and higher.
Activity
ShareActionProvider
Entire
Android SDK
6. It is used to load images in a background thread - then apply them to the UI once finished.
AsyncTask
BatteryManager
onStop();
View
7. Most network-connected Android apps use this to send and receive data.
searchable configuration
HTTP
onStop();
authenticator class
8. Are used in activities to create the user interface and to interact with the user.
NetworkInfo
Dots per inch
Fragments
Standby
9. Direct component call in Android
Dots per inch
Application resources
Application footprint
Explicit intent
10. Whenever the device is docked or undocked - this action is broadcast.
Activity
ACTION_DOCK_EVENT
SQLite
SecurityException
11. Callback method: Another activity is taking focus
PackageManager
onCreate() - onDestroy()
Standby
onPause();
12. You can set the layout as the UI for your activity with passing the resource ID for the layout.
GestureDetector
SurfaceView
HttpURLConnection
setContentView
13. This broadcasts all battery and charging details in a sticky Intent that includes the charging status.
AbstractAccountAuthenticator
onCreate();
Android SDK
BatteryManager
14. This is the most common input event in the Android system.
Paint
SecurityException
ValueAnimator
touch
15. This handles cases like flaky mobile networks - airplane mode - and restricted background data.
Google Cloud Messaging for Android (GCM)
Low power
isConnected()
security sandbox
16. This is a readable source of bytes.
InputStream
AudioManager
setVolumeControlStream()
PieChart
17. Callback method: The activity has become visible.
onResume();
ETC1
onCreate() - onDestroy()
dual-
18. This class defines abstract methods that you must override so that your database table can be created and upgraded when necessary.
Dalvik Virtual Machine
SecurityException
LocationManager
SQLiteOpenHelper
19. Callback method: The activity is no longer visible.
onStop();
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
Android SDK
Linux based
20. Describes the status of a network interface of a given type (currently either Mobile or Wi-Fi).
Low power
getInputStream()
Linux based
NetworkInfo
21. It is a subclass of PreferenceActivity.
searchable configuration
onPause();
SurfaceHolder.Callback
SettingsActivity
22. 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
Advanced Training
AccountAuthenticatorActivity
onCreate() - onDestroy()
23. For instance - when stopped - your activity should release any large ____ - such as network or database connections.
Canvas
LTE
dual-
Objects Activity lifecycle
24. 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
When the activity resumes
Destroyed - previous
SurfaceHolder.Callback
Activity
25. It is called to invoke the search dialog on older devices.
Google Play
onSearchRequested()
Activity
getInputStream()
26. ______ are views derived from ViewGroup that provide a unique layout model for its child views
Layouts
Scroller
AsyncTask
Google Play
27. Evaluation of registered components
XmlPullParser
ACTION_SEND
Implicit intent
onSearchRequested()
28. It is a string that defines the specific type of access your app is asking for.
GET_ACCOUNTS
Extensible Markup Language (XML)
auth scope
Emulator
29. Once installed on a device - each Android application lives in its own ______
onStop();
Scroller
security sandbox
BatteryManager
30. If you want your APK to be visible on TVs which are non-touchscreen devices you should add this to your manifest.
android.hardware.touchscreen
AndroidManifest.xml
ViewStub
adb
31. Conversion of XML back to an object
dual-
onAudioFocusChange()
Account
Deserialize
32. This defines how the SearchView behaves and is defined in a res/xml/searchable.xml file.
adb
setVolumeControlStream()
searchable configuration
Services
33. To respond to media button clicks - you need to register this in your manifest that listens for this action broadcast.
BroadcastReceiver
AndroidManifest.xml
Dots per inch
GET_ACCOUNTS
34. These helpers are specialized classes for backing up certain kinds of data.
Android SDK
single-pane
SurfaceHolder.Callback
BackupHelper
35. This callback method of the audio focus change listener you registered when requesting audio focus receives a parameter that describes the focus change event.
SecurityException
onAudioFocusChange()
onStart() - onStop()
Google Play
36. 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.
HttpURLConnection
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
OAuth2
ConnectivityManager
37. It is a set of rules for encoding documents in machine-readable form.
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
PackageManager
Extensible Markup Language (XML)
onResume();
38. It inform the system what intents an application component is willing to accept.
InputStream
Intent filters
Layouts
GET_ACCOUNTS
39. This is set up to animate for the duration of the fling.
Google Cloud Messaging (GCM)
Linux based
adb
ValueAnimator
40. The most common way to define a layout using views is with an XML layout file saved in your ______
AsyncTask
Component - screen
Application resources
ConnectivityManager
41. This is an interface which is used to pass image data from the camera hardware to the application.
Paint
SurfaceHolder.Callback
onPause();
visible
42. In most cases this will offer greater bandwidth at a significantly lower battery cost.
AccountAuthenticatorActivity
isConnected()
Wi-Fi radio
Stack - back stack
43. It is used as a reverse-geocoding where translating latitude longitude coordinates to a human-readable address happens.
authenticator class
Geocoder
Layouts
Account Manager
44. 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
<declare-styleable>
Emulator
PackageManager
Google Cloud Messaging (GCM)
45. This is the simplest way to monitor device state changes.
Google
Activity
authenticator class
BroadcastReceiver
46. Callback method: The activity is about to be destroyed.
onStop();
onResume();
onDestroy();
Implicit intent
47. The Android SDK tools include a tool that allows you to analyze your layout while your application is running.
Fragments
Hierarchy Viewer
virtual table
Application resources
48. Callback method: The activity is no longer visible
onStop();
Component - screen
InputStream
onCreate() - onDestroy()
49. In order to get a list of accounts on the device - your app needs this permission.
BroadcastReceiver
Open Handset Alliance
Low power
GET_ACCOUNTS
50. This includes tools to help you identify problems in your layout performance.
SettingsActivity
Android SDK
EXTRA_STREAM
NetworkInfo