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. This class exposes a number of methods for applications to receive location updates.
LocationManager
AsyncTask
SQLiteOpenHelper
Objects Activity lifecycle
2. 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 ___ .
HttpURLConnection
BroadcastReceiver
BroadcastReceiver
Stack
3. Callback method: The activity is no longer visible.
onResume();
OAuth2
onSearchRequested()
onStop();
4. Evaluation of registered components
SurfaceView
drawBitmap()
Implicit intent
Google Cloud Messaging for Android (GCM)
5. This is a lightweight view with no dimension and doesn't draw anything or participate in the layout.
AttributeSet
Stack - back stack
ViewStub
Intent filters
6. Once installed on a device - each Android application lives in its own ______
onStop();
AsyncTask
InputStream
security sandbox
7. This broadcasts all battery and charging details in a sticky Intent that includes the charging status.
GET_ACCOUNTS
Parser
OnCurrentItemChanged
BatteryManager
8. Callback method: Another activity is taking focus
visible
onPause();
Activity
onAudioFocusChange()
9. You can set the layout as the UI for your activity with passing the resource ID for the layout.
setContentView
getInputStream()
android.hardware.touchscreen
onAudioFocusChange()
10. To create an activity - you must create a subclass of
View
Activity
PieChart
Back stack
11. It is a string that defines the specific type of access your app is asking for.
inflate()
auth scope
GestureDetector
NetworkInfo
12. Your activity should perform setup of "global" state (such as defining layout) in ____ and release all remaining resources in _____
Layouts
onCreate() - onDestroy()
EXTRA_STREAM
ACTION_SEND
13. The minimal energy state during which no network connection is active or required.
Standby
Destroyed - previous
AttributeSet
NetworkInfo
14. The Android framework has a large set of these classes for interacting with the user and displaying various types of data.
drawText()
<declare-styleable>
Activity
View
15. 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.
NetworkInfo
ETC1
Ducking
onCreate() - onDestroy()
16. This can be used to draw previews of what the camera sensor is picking up.
SurfaceView
Hierarchy Viewer
Android SDK
onPause();
17. In order to get a list of accounts on the device - your app needs this permission.
LTE
SQLite
GET_ACCOUNTS
onStop();
18. PieChart exposes a custom event to notify listeners that the user has rotated the pie chart to focus on a new pie slice.
onStop();
OnCurrentItemChanged
resolveSizeAndState()
Android SDK
19. The dock-state details are included as an extra in a sticky broadcast of this action.
AudioManager
ACTION_DOCK_EVENT
Objects Activity lifecycle
SurfaceView
20. It is used as a reverse-geocoding where translating latitude longitude coordinates to a human-readable address happens.
onAudioFocusChange()
ValueAnimator
Geocoder
Layouts
21. Used when a connection is active - allowing the device to transfer data at its highest possible rate.
View
Open Handset Alliance
Full power
BroadcastReceiver
22. Use this to draw bitmaps.
HttpURLConnection
Objects Activity lifecycle
PackageManager
drawBitmap()
23. For instance - when stopped - your activity should release any large ____ - such as network or database connections.
AndroidManifest.xml
searchable configuration
Ducking
Objects Activity lifecycle
24. 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
Ducking
ETC1
SQLiteOpenHelper
PackageManager
25. This is a base class supplied by Android framework - which you can extend to create your own custom authenticator.
touch
AccountAuthenticatorActivity
onCreate() - onDestroy()
Destroyed - previous
26. 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?
Scroller
Scroller
AttributeSet
Account
27. Theseare a key part of Android applications that directly affect the user experience.
Stack - back stack
onStart() - onStop()
Layouts
ACTION_DOCK_EVENT
28. This widget as an item in the action bar is the preferred way to provide search in your app.
onSearchRequested()
Android SDK
LocationManager
SearchView
29. Callback method: The activity is no longer visible
onStop();
Hierarchy Viewer
Android SDK
AttributeSet
30. This behaves similarly to a SQLite table - but reads and writes to an object in memory via callbacks - instead of to a database file.
authenticator class
virtual table
Explicit intent
drawText()
31. If you want your APK to be visible on TVs which are non-touchscreen devices you should add this to your manifest.
PackageManager
Service Content Provider
Extensible Markup Language (XML)
android.hardware.touchscreen
32. Once a connection has been established - the app uses this method to retrieve the data as an InputStream.
Android SDK
Low power
AsyncTask
getInputStream()
33. If permissions are missing - the application will get this at runtime.
Services
SecurityException
Application footprint
Full power
34. Android is __________.
Geocoder
SettingsActivity
Linux based
auth scope
35. It typically consumes more energy than 3G - which is in turn more expensive than 2G.
LTE
Google Cloud Messaging (GCM)
BatteryManager
Activity
36. Perform background tasks without providing a user interface
SearchView
Services
ACTION_DOCK_EVENT
Activity
37. This is the main class through which your application can access location services on Android.
Intents
LocationManager
onResume();
SearchView
38. Direct component call in Android
GestureDetector
ActionProvider
Widgets
Explicit intent
39. Creating drawing objects within this method significantly reduces performance and can make your UI appear sluggish.
onDraw()
Entire
LocationManager
Activity
40. It provides a simple way to perform your work outside the main thread.
AsyncTask
PackageManager
LocationManager
NetworkInfo
41. Allow to combine loosely coupled components to perform certain tasks
Hierarchy Viewer
authenticator class
Layouts
Intents
42. The receiver is triggered whenever the device battery becomes low or exits the low condition by listening for this two.
Services
Application resources
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
Dalvik Virtual Machine
43. Describes the status of a network interface of a given type (currently either Mobile or Wi-Fi).
onDestroy();
PackageManager
Layouts
NetworkInfo
44. Use this to draw text.
Open Handset Alliance
drawText()
AbstractAccountAuthenticator
GestureDetector
45. These helpers are specialized classes for backing up certain kinds of data.
Stack - back stack
HttpURLConnection
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
BackupHelper
46. This search feature was introduced in Android 3.0 and can maintain backward compatibility with older versions of Android by using the default search dialog provided by the system.
Google Cloud Messaging for Android (GCM)
Layouts
SearchView
SQLite
47. The visible lifetime of an activity happens between the call to ____ and the call to ______
onStart() - onStop()
Advanced Training
onSearchRequested()
dual-
48. Android system uses a special virtual machine to run java based applicatons
Dalvik Virtual Machine
resolveSizeAndState()
ConnectivityManager
Entire
49. Conversion of an object to XML
Serialize
authenticator class
drawBitmap()
ACTION_DOCK_EVENT
50. 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
View
ACTION_SEND
View