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. Callback method: The activity is no longer visible
PackageManager
Advanced Training
onStop();
Scroller
2. This is a base class supplied by Android framework - which you can extend to create your own custom authenticator.
AccountAuthenticatorActivity
HTTP
ViewStub
onAudioFocusChange()
3. Whenever the device is docked or undocked - this action is broadcast.
Activity
Extensible Markup Language (XML)
setContentView
ACTION_DOCK_EVENT
4. Android request its permission using its ________
Dalvik Virtual Machine
AndroidManifest.xml
ConnectivityManager
onMeasure()
5. Android provides this handy method to direct volume key presses to the audio stream the user specify.
onMeasure()
setVolumeControlStream()
Google Cloud Messaging (GCM)
Objects Activity lifecycle
6. An open source stand alone database
SQLite
Explicit intent
Deserialize
SurfaceHolder.Callback
7. 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 ___ .
LocationManager
Google Play
Stack
AudioManager
8. Creating drawing objects within this method significantly reduces performance and can make your UI appear sluggish.
onDraw()
Canvas
Standby
<declare-styleable>
9. The visible lifetime of an activity happens between the call to ____ and the call to ______
Stack - back stack
onStart() - onStop()
Activity
GET_ACCOUNTS
10. The ____ lifetime of an activity happens between the call to onStart() and the call to onStop().
Emulator
AsyncTask
Advanced Training
visible
11. It doesn't currently support the <merge/> tag in the layouts to be inflated.
ViewStub
Activity
PackageManager
OAuth2
12. It is a free service for sending messages to Android devices.
single-pane
Google Cloud Messaging (GCM)
Stack - back stack
ViewStub
13. The entire lifetime of an activity happens between the call to _____ and the call to _____
SurfaceView
Objects Activity lifecycle
AndroidManifest.xml
onCreate() - onDestroy()
14. It typically consumes more energy than 3G - which is in turn more expensive than 2G.
Emulator
onCreate();
LTE
Google Play
15. The industry standard way to deal with authentication to third-party services.
setVolumeControlStream()
OAuth2 protocol
XmlPullParser
SecurityException
16. This broadcasts an action whenever the device is connected or disconnected from power.
BatteryManager
OAuth2
Layouts
inflate()
17. This is the simplest way to monitor device state changes.
BroadcastReceiver
SecurityException
Explicit intent
Account Manager
18. 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?
Low power
AttributeSet
HttpURLConnection
Layouts
19. Shows the actual amount of memory the application uses
Application footprint
Emulator
Intents
auth scope
20. This class provides one of the simplest ways to fire off a new task from the UI thread.
AsyncTask
SearchView
ConnectivityManager
onDraw()
21. The Android framework has a large set of these classes for interacting with the user and displaying various types of data.
View
Back stack
Android SDK
Dalvik Virtual Machine
22. It inform the system what intents an application component is willing to accept.
Open Handset Alliance
SurfaceView
Intent filters
Emulator
23. Use this to draw text.
Explicit intent
LocationManager
ACTION_DOCK_EVENT
drawText()
24. Once installed on a device - each Android application lives in its own ______
BatteryManager
onAudioFocusChange()
NetworkInfo
security sandbox
25. It is an efficient and maintainable way to parse XML on Android.
Destroyed - previous
onSearchRequested()
XmlPullParser
onAudioFocusChange()
26. Theseare a key part of Android applications that directly affect the user experience.
View
Parser
Layouts
BroadcastReceiver
27. It is available starting with API Level 14 and higher.
When the activity resumes
ShareActionProvider
virtual table
Full power
28. It is used as a reverse-geocoding where translating latitude longitude coordinates to a human-readable address happens.
EXTRA_STREAM
Geocoder
PackageManager
Activity
29. An open source group led by Google
Open Handset Alliance
EXTRA_STREAM
ShareActionProvider
AttributeSet
30. You can reacquire the necessary resources and resume actions that were interrupted. These state transitions are all part of the _________
When the activity resumes
Stack - back stack
OAuth2
ConnectivityManager
31. Conversion of XML back to an object
Activity
touch
Deserialize
Full power
32. In order for the AccountManager to work with your custom account code - you need this class that implements the interfaces that AccountManager expects.
Lifecycle callback methods
onCreate();
authenticator class
BroadcastReceiver
33. A service in which programmers can offer their Android application to Android users.
ConnectivityManager
drawText()
Google Play
Activity
34. This can be used to draw previews of what the camera sensor is picking up.
AsyncTask
SurfaceView
dual-
Application footprint
35. Each time a new activity starts - the previous activity is stopped - but the system preserves the activity in a _____ (the ______).
EXTRA_STREAM
Stack
ConnectivityManager
Stack - back stack
36. Callback method: Another activity is taking focus
PackageManager
isConnected()
Serialize
onPause();
37. It is called to invoke the search dialog on older devices.
GestureDetector
onSearchRequested()
HttpURLConnection
Account Manager
38. ______ are views derived from ViewGroup that provide a unique layout model for its child views
drawBitmap()
onStart() - onStop()
Account
Layouts
39. 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.
Serialize
Lifecycle callback methods
Hierarchy Viewer
Paint
40. 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 _____
onCreate() - onDestroy()
HttpURLConnection
Dalvik Debug Monitor Server
authenticator class
41. 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.
SearchView
Activity
Services
onDestroy();
42. When a new activity starts - it is pushed onto the ____ and takes user focus.
Geocoder
Back stack
AndroidManifest.xml
SettingsActivity
43. This includes tools to help you identify problems in your layout performance.
Stack
Android SDK
AudioManager
visible
44. This broadcasts all battery and charging details in a sticky Intent that includes the charging status.
BatteryManager
Google Cloud Messaging (GCM)
NetworkInfo
Activity
45. This class exposes a number of methods for applications to receive location updates.
Open Handset Alliance
LocationManager
auth scope
AsyncTask
46. It is a lightweight mechanism used to transmit data from a server to a particular app instance.
Full power
security sandbox
Google Cloud Messaging for Android (GCM)
onResume();
47. This class is the basis for handling flywheel-style fling gestures.
SearchView
Parser
Scroller
InputStream
48. The helper method is used to create the final width and height values.
setVolumeControlStream()
resolveSizeAndState()
OAuth2
AsyncTask
49. 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.
touch
drawText()
OAuth2
Implicit intent
50. It is a string that defines the specific type of access your app is asking for.
AbstractAccountAuthenticator
Wi-Fi radio
auth scope
Scroller