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. It typically consumes more energy than 3G - which is in turn more expensive than 2G.
onCreate() - onDestroy()
LTE
single-pane
ViewStub
2. When an activity is stopped because a new activity starts - it is notified of this change in state through the activity's _______ .
isConnected()
Lifecycle callback methods
PieChart
ConnectivityManager
3. These helpers are specialized classes for backing up certain kinds of data.
Google Cloud Messaging (GCM)
BackupHelper
NetworkInfo
Hierarchy Viewer
4. Once installed on a device - each Android application lives in its own ______
AsyncTask
BackupHelper
SurfaceHolder.Callback
security sandbox
5. Android provides this handy method to direct volume key presses to the audio stream the user specify.
BatteryManager
setVolumeControlStream()
Activity
Dalvik Debug Monitor Server
6. It is available starting with API Level 14 and higher.
ShareActionProvider
onMeasure()
visible
<declare-styleable>
7. The ____ lifetime of an activity happens between the call to onCreate() and the call to onDestroy().
Full power
When the activity resumes
SecurityException
Entire
8. For instance - when stopped - your activity should release any large ____ - such as network or database connections.
Objects Activity lifecycle
onMeasure()
Widgets
Explicit intent
9. 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.
AttributeSet
single-pane
Standby
Activity
10. Conversion of an object to XML
BackupHelper
View
Explicit intent
Serialize
11. 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 ___ .
Activity
onStop();
auth scope
Stack
12. It is called to invoke the search dialog on older devices.
searchable configuration
View
onSearchRequested()
OAuth2
13. The helper method is used to create the final width and height values.
resolveSizeAndState()
onStop();
ETC1
onAudioFocusChange()
14. This defines how the SearchView behaves and is defined in a res/xml/searchable.xml file.
Google Play
Linux based
searchable configuration
security sandbox
15. This can be used to draw previews of what the camera sensor is picking up.
SurfaceView
PieChart
Implicit intent
authenticator class
16. Android request its permission using its ________
Application resources
onCreate() - onDestroy()
drawBitmap()
AndroidManifest.xml
17. Each time a new activity starts - the previous activity is stopped - but the system preserves the activity in a _____ (the ______).
onDestroy();
<declare-styleable>
Stack - back stack
resolveSizeAndState()
18. 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
Component - screen
When the activity resumes
onAudioFocusChange()
virtual table
19. It is a string that defines the specific type of access your app is asking for.
auth scope
ACTION_DOCK_EVENT
Paint
ACTION_SEND
20. Callback method: The activity is no longer visible.
onStop();
OAuth2
NetworkInfo
drawText()
21. This is used to check that you're actually connected to the Internet and what type of connection is in place.
onPause();
ConnectivityManager
Android SDK
auth scope
22. The ____ lifetime of an activity happens between the call to onStart() and the call to onStop().
visible
SQLite
AsyncTask
security sandbox
23. This broadcasts an action whenever the device is connected or disconnected from power.
Advanced Training
Hierarchy Viewer
touch
BatteryManager
24. Conversion of XML back to an object
SQLiteOpenHelper
Deserialize
ViewStub
GET_ACCOUNTS
25. This class defines abstract methods that you must override so that your database table can be created and upgraded when necessary.
Google Cloud Messaging for Android (GCM)
SQLiteOpenHelper
Emulator
Intent filters
26. It doesn't currently support the <merge/> tag in the layouts to be inflated.
ViewStub
Activity
Intent filters
AudioManager
27. Allow to combine loosely coupled components to perform certain tasks
OAuth2 protocol
BroadcastReceiver
Destroyed - previous
Intents
28. It provides a simple way to perform your work outside the main thread.
Google Cloud Messaging (GCM)
BroadcastReceiver
AsyncTask
Component - screen
29. The most common way to define a layout using views is with an XML layout file saved in your ______
Application resources
XmlPullParser
Service Content Provider
Lifecycle callback methods
30. This is a lightweight view with no dimension and doesn't draw anything or participate in the layout.
Application resources
Emulator
ShareActionProvider
ViewStub
31. Converts XML Document to XML DOM
PackageManager
View
BroadcastReceiver
Parser
32. Creating drawing objects within this method significantly reduces performance and can make your UI appear sluggish.
Google
adb
Advanced Training
onDraw()
33. Once a connection has been established - the app uses this method to retrieve the data as an InputStream.
Implicit intent
BroadcastReceiver
getInputStream()
BatteryManager
34. To define custom attributes - add this resources to your project.
<declare-styleable>
Open Handset Alliance
searchable configuration
Account Manager
35. The industry standard way to deal with authentication to third-party services.
OAuth2 protocol
onCreate();
Account
Wi-Fi radio
36. 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
Emulator
XmlPullParser
Wi-Fi radio
PackageManager
37. Use this to draw text.
adb
Google Play
drawText()
EXTRA_STREAM
38. An intermediate state that uses around 50% of the battery power at the full state.
Full power
ETC1
visible
Low power
39. This behaves similarly to a SQLite table - but reads and writes to an object in memory via callbacks - instead of to a database file.
virtual table
AsyncTask
Stack
Parser
40. It is a lightweight mechanism used to transmit data from a server to a particular app instance.
HTTP
Google Cloud Messaging for Android (GCM)
OAuth2 protocol
Android SDK
41. Callback method: Another activity is taking focus
drawBitmap()
onPause();
searchable configuration
SurfaceView
42. It is a subclass of PreferenceActivity.
Lifecycle callback methods
isConnected()
SettingsActivity
ShareActionProvider
43. Represents the visual representation of an Android application
ACTION_DOCK_EVENT
Explicit intent
Activity
Canvas
44. This class exposes a number of methods for applications to receive location updates.
onCreate() - onDestroy()
BroadcastReceiver
LocationManager
onStop();
45. Callback method: The activity is no longer visible
PackageManager
Standby
onStop();
BackupHelper
46. 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 _____
SettingsActivity
onCreate() - onDestroy()
Stack
Open Handset Alliance
47. 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
Deserialize
InputStream
Implicit intent
48. 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.
ETC1
GET_ACCOUNTS
Objects Activity lifecycle
AsyncTask
49. This is used to register and de-register your media button event receiver.
AudioManager
ConnectivityManager
View
Layouts
50. Callback method: The activity is being created.
setVolumeControlStream()
SQLiteOpenHelper
drawBitmap()
onCreate();