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. To create an activity - you must create a subclass of
resolveSizeAndState()
Activity
Lifecycle callback methods
NetworkInfo
2. This object contains an account name - which for Google accounts is an email address.
BroadcastReceiver
Account
onPause();
OAuth2
3. You can reacquire the necessary resources and resume actions that were interrupted. These state transitions are all part of the _________
OAuth2 protocol
When the activity resumes
security sandbox
Linux based
4. The ____ lifetime of an activity happens between the call to onCreate() and the call to onDestroy().
Entire
Widgets
Canvas
Activity
5. This broadcasts all battery and charging details in a sticky Intent that includes the charging status.
Account Manager
BatteryManager
Hierarchy Viewer
searchable configuration
6. 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
Entire
Low power
AsyncTask
7. This defines how the SearchView behaves and is defined in a res/xml/searchable.xml file.
Advanced Training
onMeasure()
onSearchRequested()
searchable configuration
8. The visible lifetime of an activity happens between the call to ____ and the call to ______
Objects Activity lifecycle
onStart() - onStop()
onCreate() - onDestroy()
Serialize
9. A styleable entity that contains these two custom attributes: showText and labelPosition.
onStop();
Scroller
PieChart
Google Cloud Messaging (GCM)
10. 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
AsyncTask
Intents
Layouts
11. In order for the AccountManager to work with your custom account code - you need this class that implements the interfaces that AccountManager expects.
Dalvik Virtual Machine
authenticator class
ACTION_DOCK_EVENT
SettingsActivity
12. The entire lifetime of an activity happens between the call to _____ and the call to _____
onCreate() - onDestroy()
Component - screen
onMeasure()
Canvas
13. Callback method: The activity is no longer visible
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
onStart() - onStop()
Application resources
onStop();
14. Use this to draw text.
drawText()
NetworkInfo
Implicit intent
setContentView
15. It typically consumes more energy than 3G - which is in turn more expensive than 2G.
Application resources
Intent filters
onMeasure()
LTE
16. The industry standard way to deal with authentication to third-party services.
Extensible Markup Language (XML)
OAuth2 protocol
Ducking
onDraw()
17. 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 ___ .
AsyncTask
onCreate() - onDestroy()
Stack
Paint
18. The dock-state details are included as an extra in a sticky broadcast of this action.
Google Cloud Messaging (GCM)
Standby
onPause();
ACTION_DOCK_EVENT
19. Callback method: The activity is about to be destroyed.
onCreate() - onDestroy()
Implicit intent
onDestroy();
resolveSizeAndState()
20. It is a lightweight mechanism used to transmit data from a server to a particular app instance.
Application resources
Back stack
OnCurrentItemChanged
Google Cloud Messaging for Android (GCM)
21. When a new activity starts - it is pushed onto the ____ and takes user focus.
onPause();
virtual table
Back stack
View
22. It is a string that defines the specific type of access your app is asking for.
auth scope
<declare-styleable>
isConnected()
setContentView
23. This action is used in sending text content from one activity to another.
HttpURLConnection
ACTION_SEND
BatteryManager
ConnectivityManager
24. Direct component call in Android
Entire
Google Cloud Messaging (GCM)
dual-
Explicit intent
25. ______ are views derived from ViewGroup that provide a unique layout model for its child views
Fragments
BroadcastReceiver
Layouts
ActionProvider
26. This class defines methods for drawing text - lines - bitmaps - and many other graphics primitives.
BroadcastReceiver
BroadcastReceiver
Canvas
onSearchRequested()
27. Your activity should perform setup of "global" state (such as defining layout) in ____ and release all remaining resources in _____
onCreate() - onDestroy()
AsyncTask
LTE
ACTION_DOCK_EVENT
28. PieChart exposes a custom event to notify listeners that the user has rotated the pie chart to focus on a new pie slice.
visible
OnCurrentItemChanged
Fragments
Canvas
29. It is used to load images in a background thread - then apply them to the UI once finished.
setVolumeControlStream()
AsyncTask
onSearchRequested()
inflate()
30. A mode where navigation is set up with a spinner widget.
Implicit intent
Wi-Fi radio
single-pane
Android SDK
31. This class computes scroll positions for you - but it does not automatically apply those positions to your view.
Scroller
SettingsActivity
AndroidManifest.xml
Android SDK
32. This is the main class through which your application can access location services on Android.
BroadcastReceiver
Ducking
SQLiteOpenHelper
LocationManager
33. The receiver is triggered whenever the device battery becomes low or exits the low condition by listening for this two.
Activity
Activity
Objects Activity lifecycle
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
34. Used when a connection is active - allowing the device to transfer data at its highest possible rate.
SQLiteOpenHelper
Full power
onMeasure()
Lifecycle callback methods
35. If permissions are missing - the application will get this at runtime.
SecurityException
InputStream
LocationManager
visible
36. The Android SDK tools include a tool that allows you to analyze your layout while your application is running.
<declare-styleable>
Hierarchy Viewer
AsyncTask
setContentView
37. This is the simplest way to monitor device state changes.
BroadcastReceiver
Android SDK
Google Cloud Messaging for Android (GCM)
Account Manager
38. This is used for the need of finer control over your view's layout parameters.
Widgets
OAuth2
onMeasure()
AsyncTask
39. This class defines abstract methods that you must override so that your database table can be created and upgraded when necessary.
SQLiteOpenHelper
single-pane
ETC1
onDestroy();
40. It made implementing an effective and user friendly share action in your ActionBar even easier.
ActionProvider
onResume();
Widgets
Standby
41. This includes tools to help you identify problems in your layout performance.
ACTION_DOCK_EVENT
Hierarchy Viewer
inflate()
Android SDK
42. This is an interface which is used to pass image data from the camera hardware to the application.
SurfaceHolder.Callback
Component - screen
NetworkInfo
dual-
43. The most common way to define a layout using views is with an XML layout file saved in your ______
Application resources
ShareActionProvider
BroadcastReceiver
Dots per inch
44. 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.
View
setContentView
Ducking
EXTRA_STREAM
45. It is available starting with API Level 14 and higher.
Paint
ShareActionProvider
onCreate() - onDestroy()
touch
46. This can be used to draw previews of what the camera sensor is picking up.
Canvas
SurfaceView
setContentView
BroadcastReceiver
47. 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()
BackupHelper
PieChart
authenticator class
48. The easiest way to create an authenticator class is to extend this and implement its abstract methods.
BroadcastReceiver
AbstractAccountAuthenticator
Extensible Markup Language (XML)
Full power
49. 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
Widgets
Component - screen
AbstractAccountAuthenticator
Stack - back stack
50. Android provides this handy method to direct volume key presses to the audio stream the user specify.
GestureDetector
InputStream
EXTRA_STREAM
setVolumeControlStream()