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. The helper method is used to create the final width and height values.
Extensible Markup Language (XML)
SearchView
onDraw()
resolveSizeAndState()
2. When an activity is stopped because a new activity starts - it is notified of this change in state through the activity's _______ .
PackageManager
ShareActionProvider
ACTION_DOCK_EVENT
Lifecycle callback methods
3. This class computes scroll positions for you - but it does not automatically apply those positions to your view.
Scroller
Application resources
onDraw()
<declare-styleable>
4. Conversion of XML back to an object
Standby
Deserialize
OAuth2
Advanced Training
5. 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.
Ducking
AndroidManifest.xml
auth scope
AudioManager
6. This broadcasts an action whenever the device is connected or disconnected from power.
Activity
BatteryManager
SQLiteOpenHelper
isConnected()
7. This is a readable source of bytes.
SettingsActivity
InputStream
isConnected()
GestureDetector
8. Perform background tasks without providing a user interface
Services
Stack - back stack
EXTRA_STREAM
InputStream
9. To respond to media button clicks - you need to register this in your manifest that listens for this action broadcast.
BatteryManager
BroadcastReceiver
Layouts
Android SDK
10. Represents the visual representation of an Android application
ViewStub
resolveSizeAndState()
BroadcastReceiver
Activity
11. 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?
Activity
ViewStub
AttributeSet
getInputStream()
12. Amode where the action bar is set up with tabs for navigation.
dual-
GestureDetector
Linux based
drawBitmap()
13. It is an efficient and maintainable way to parse XML on Android.
drawText()
XmlPullParser
touch
setVolumeControlStream()
14. It is a subclass of PreferenceActivity.
AndroidManifest.xml
onDestroy();
SettingsActivity
android.hardware.touchscreen
15. This includes tools to help you identify problems in your layout performance.
Advanced Training
Android SDK
LocationManager
BroadcastReceiver
16. For example - a ____ might be a button that initiates an action when the user touches it.
Full power
Google
LTE
View
17. You can set the layout as the UI for your activity with passing the resource ID for the layout.
Activity
BatteryManager
setContentView
SurfaceHolder.Callback
18. It made implementing an effective and user friendly share action in your ActionBar even easier.
Entire
ActionProvider
Hierarchy Viewer
ViewStub
19. 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.
Activity
onCreate() - onDestroy()
SettingsActivity
OAuth2 protocol
20. In most cases this will offer greater bandwidth at a significantly lower battery cost.
adb
BatteryManager
Wi-Fi radio
Linux based
21. The visible lifetime of an activity happens between the call to ____ and the call to ______
Activity
SQLite
onStart() - onStop()
ACTION_DOCK_EVENT
22. This is a lightweight view with no dimension and doesn't draw anything or participate in the layout.
Advanced Training
ACTION_SEND
ViewStub
Google Cloud Messaging for Android (GCM)
23. Use this to draw bitmaps.
onAudioFocusChange()
drawBitmap()
searchable configuration
resolveSizeAndState()
24. Your activity should perform setup of "global" state (such as defining layout) in ____ and release all remaining resources in _____
Fragments
EXTRA_STREAM
onCreate() - onDestroy()
setContentView
25. It is used to load images in a background thread - then apply them to the UI once finished.
Layouts
AsyncTask
Deserialize
Account
26. The most common way to define a layout using views is with an XML layout file saved in your ______
Application resources
onStart() - onStop()
Service Content Provider
ACTION_SEND
27. This is an interface which is used to pass image data from the camera hardware to the application.
Scroller
onAudioFocusChange()
onSearchRequested()
SurfaceHolder.Callback
28. This widget as an item in the action bar is the preferred way to provide search in your app.
SearchView
View
touch
getInputStream()
29. The ____ lifetime of an activity happens between the call to onCreate() and the call to onDestroy().
PackageManager
Destroyed - previous
AbstractAccountAuthenticator
Entire
30. This is used to check that you're actually connected to the Internet and what type of connection is in place.
Geocoder
ConnectivityManager
setContentView
Serialize
31. Evaluation of registered components
<declare-styleable>
Dalvik Debug Monitor Server
AsyncTask
Implicit intent
32. Used when a connection is active - allowing the device to transfer data at its highest possible rate.
Full power
ViewStub
Android SDK
Application footprint
33. This broadcasts all battery and charging details in a sticky Intent that includes the charging status.
onCreate() - onDestroy()
setVolumeControlStream()
Services
BatteryManager
34. The Android framework has a large set of these classes for interacting with the user and displaying various types of data.
onDraw()
View
Google Cloud Messaging for Android (GCM)
isConnected()
35. This behaves similarly to a SQLite table - but reads and writes to an object in memory via callbacks - instead of to a database file.
onPause();
virtual table
Fragments
onCreate() - onDestroy()
36. If you want your APK to be visible on TVs which are non-touchscreen devices you should add this to your manifest.
setVolumeControlStream()
ShareActionProvider
android.hardware.touchscreen
isConnected()
37. ______ are views derived from ViewGroup that provide a unique layout model for its child views
EXTRA_STREAM
Layouts
onStop();
AccountAuthenticatorActivity
38. In order for the AccountManager to work with your custom account code - you need this class that implements the interfaces that AccountManager expects.
Canvas
authenticator class
Extensible Markup Language (XML)
Entire
39. A styleable entity that contains these two custom attributes: showText and labelPosition.
PieChart
XmlPullParser
AsyncTask
SurfaceHolder.Callback
40. Callback method: Another activity is taking focus
setContentView
onPause();
Stack
Linux based
41. Relative to pixels and resolution screen
onStart() - onStop()
BatteryManager
View
Dots per inch
42. Android request its permission using its ________
SurfaceHolder.Callback
AndroidManifest.xml
AsyncTask
AsyncTask
43. An open source group led by Google
Activity
Open Handset Alliance
onMeasure()
Paint
44. This class provides one of the simplest ways to fire off a new task from the UI thread.
Intents
AsyncTask
OAuth2
Google
45. This is used to fetch the account names that the user has stored on their device.
onStop();
Account Manager
Explicit intent
Google Cloud Messaging for Android (GCM)
46. Converts XML Document to XML DOM
Full power
GestureDetector
Parser
HTTP
47. Most network-connected Android apps use this to send and receive data.
Application footprint
HTTP
setVolumeControlStream()
AudioManager
48. It is called to invoke the search dialog on older devices.
Implicit intent
Intent filters
setContentView
onSearchRequested()
49. It is available starting with API Level 14 and higher.
setVolumeControlStream()
ConnectivityManager
ValueAnimator
ShareActionProvider
50. 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()
Application resources
Canvas
onSearchRequested()