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. Once a connection has been established - the app uses this method to retrieve the data as an InputStream.
View
Ducking
getInputStream()
AudioManager
2. This defines how the SearchView behaves and is defined in a res/xml/searchable.xml file.
AccountAuthenticatorActivity
Account
Extensible Markup Language (XML)
searchable configuration
3. 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
adb
Explicit intent
Account Manager
4. 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.
onDestroy();
Scroller
AndroidManifest.xml
Activity
5. This method returns the inflated View once complete so you don't need to call findViewById() if you need to interact with the layout.
GestureDetector
inflate()
OAuth2
Services
6. The most common way to define a layout using views is with an XML layout file saved in your ______
Stack
ShareActionProvider
ActionProvider
Application resources
7. 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.
Dalvik Debug Monitor Server
Services
SearchView
ACTION_DOCK_EVENT
8. If permissions are missing - the application will get this at runtime.
GestureDetector
SecurityException
AccountAuthenticatorActivity
Activity
9. This is the simplest way to monitor device state changes.
AsyncTask
SQLiteOpenHelper
BroadcastReceiver
Service Content Provider
10. Callback method: The activity has become visible.
onResume();
View
SQLite
NetworkInfo
11. It is used as a reverse-geocoding where translating latitude longitude coordinates to a human-readable address happens.
onCreate() - onDestroy()
Android SDK
Geocoder
SQLite
12. The ____ lifetime of an activity happens between the call to onCreate() and the call to onDestroy().
onResume();
SettingsActivity
SearchView
Entire
13. The dock-state details are included as an extra in a sticky broadcast of this action.
ACTION_DOCK_EVENT
onStart() - onStop()
Dalvik Debug Monitor Server
Account Manager
14. Represents the visual representation of an Android application
Parser
Activity
Intents
Deserialize
15. This class defines abstract methods that you must override so that your database table can be created and upgraded when necessary.
Application resources
SQLiteOpenHelper
Activity
Google
16. ______ are views derived from ViewGroup that provide a unique layout model for its child views
Layouts
Dalvik Virtual Machine
Scroller
Scroller
17. This callback method of the audio focus change listener you registered when requesting audio focus receives a parameter that describes the focus change event.
ActionProvider
Android SDK
onAudioFocusChange()
Full power
18. Callback method: The activity is being created.
onCreate();
EXTRA_STREAM
SurfaceHolder.Callback
View
19. Once installed on a device - each Android application lives in its own ______
SettingsActivity
security sandbox
Objects Activity lifecycle
ViewStub
20. It is a subclass of PreferenceActivity.
HttpURLConnection
onDestroy();
AttributeSet
SettingsActivity
21. This is a readable source of bytes.
authenticator class
Lifecycle callback methods
InputStream
Account
22. Your activity should perform setup of "global" state (such as defining layout) in ____ and release all remaining resources in _____
Stack - back stack
SearchView
onCreate() - onDestroy()
HTTP
23. It is an HTTP client that is used for applications targeted at Gingerbread and higher.
onStop();
Emulator
View
HttpURLConnection
24. Each time a new activity starts - the previous activity is stopped - but the system preserves the activity in a _____ (the ______).
onStop();
onCreate();
Stack - back stack
Implicit intent
25. 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.
BackupHelper
AccountAuthenticatorActivity
ETC1
onMeasure()
26. The back stack abides to the basic "last in - first out" stack mechanism - so - when the user is done with the current activity and presses the Back button - it is popped from the stack (and ____) and the ____ activity resumes
Destroyed - previous
GestureDetector
Scroller
adb
27. Shows the actual amount of memory the application uses
Layouts
BroadcastReceiver
Dalvik Virtual Machine
Application footprint
28. _____ are views that provide a visual (and interactive) elements for the screen - such as a button - text field - checkbox - or just an image.
Android SDK
Standby
Widgets
NetworkInfo
29. This class is the basis for handling flywheel-style fling gestures.
Hierarchy Viewer
Google Play
ShareActionProvider
Scroller
30. This handles cases like flaky mobile networks - airplane mode - and restricted background data.
Full power
ACTION_DOCK_EVENT
isConnected()
onCreate() - onDestroy()
31. To define custom attributes - add this resources to your project.
<declare-styleable>
Dalvik Virtual Machine
Application footprint
onStart() - onStop()
32. This class computes scroll positions for you - but it does not automatically apply those positions to your view.
Scroller
single-pane
Fragments
drawText()
33. 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
BackupHelper
Emulator
ACTION_BATTERY_LOW and ACTION_BATTERY_OKAY
34. An open source stand alone database
LocationManager
SQLite
Objects Activity lifecycle
SettingsActivity
35. Sharing of data in Android is done via________
searchable configuration
onStop();
AndroidManifest.xml
Service Content Provider
36. The minimal energy state during which no network connection is active or required.
ValueAnimator
Emulator
Standby
Layouts
37. The visible lifetime of an activity happens between the call to ____ and the call to ______
onAudioFocusChange()
View
Hierarchy Viewer
onStart() - onStop()
38. Android is __________.
resolveSizeAndState()
Linux based
Activity
Google
39. 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.
onStop();
dual-
OAuth2
Account
40. Are used in activities to create the user interface and to interact with the user.
SQLiteOpenHelper
inflate()
Android SDK
Fragments
41. This is used for the need of finer control over your view's layout parameters.
Service Content Provider
BroadcastReceiver
onMeasure()
authenticator class
42. The helper method is used to create the final width and height values.
AsyncTask
resolveSizeAndState()
ETC1
BackupHelper
43. The industry standard way to deal with authentication to third-party services.
OAuth2 protocol
SettingsActivity
<declare-styleable>
SurfaceHolder.Callback
44. Conversion of XML back to an object
Serialize
Deserialize
Advanced Training
onPause();
45. Whenever the device is docked or undocked - this action is broadcast.
ACTION_DOCK_EVENT
Linux based
Activity
virtual table
46. Answers queries about the state of network connectivity. It also notifies applications when network connectivity changes.
Implicit intent
ConnectivityManager
Stack
AttributeSet
47. This class provides one of the simplest ways to fire off a new task from the UI thread.
ETC1
Google Play
AsyncTask
OAuth2 protocol
48. This broadcasts all battery and charging details in a sticky Intent that includes the charging status.
Intent filters
Dots per inch
BatteryManager
virtual table
49. The Android framework has a large set of these classes for interacting with the user and displaying various types of data.
AsyncTask
resolveSizeAndState()
auth scope
View
50. A service in which programmers can offer their Android application to Android users.
Standby
BatteryManager
AttributeSet
Google Play