1.
____ object allows to modify the preference values.
Select one:
a. Preferences.Editor
b. Preferences.Modificator
c. SharedPreferences.Editor
d. SharedPreferences.Modificator - Answers c
2. Which of following methods is used to launch an activity for which you would like a result when it
finished?
Select one:
a. startActivity()
b. startActivityForResult()
c. startActivityIfNeeded ()
d. startIntentSender() - Answers b
3.PendingIntent is used to grant to another application the right to perform the operation that specified
as if the other application was in current app.
Select one:
a.True
b. False - Answers a
4. Identify two ways to execute a delete statement, in SQLite: (db is instance of SQLiteDatabase class)
Select one or more:
a. To execute db.delete method
b. To execute db.execSQL method
c. To execute db.update method
d. To execute db.exec method - Answers a,b
,5. Which of followings provides the getLatitude and getLongitude methods?
Select one:
a. LocationManager
b. All of others
c. Location
d. Map - Answers c
6.
_____ are asynchronous messages which allow Android components to request functionality from other
components of the Android system
Select one:
a. Messages
b. Filters
c. Activities
d. Bundles
e. Intents - Answers e
7. What is the persistence mechanism that allows to sort and retrieve quickly large data sets and can
easily be used to store customized data?
Select one:
a. Persistent Storage
b. Android File API
c. Shared Preferences
d. SQLite - Answers d. SQLite
8. A broadcast receiver will be able to receive intents which can be generated via the _____ method
Select one:
a. Context.broadcast()
b. Context.startBroadcast()
,c. Context.sendBroadcast()
d. Context.notify () - Answers c. Context.sendBroadcast()
. Consider the file object:
InputStream in = null;
Which one of followings can be used to create in object?
Select one:
a. in = openFileInput( "myfile", MODE_WORLD_READABLE);
b. in = openFileInput( "myfile", MODE_PRIVATE);
c. in = openFileInput( "myfile")
d. in = new InputStream( "myfile", MODE_WORLD_READABLE); - Answers c. in = openFileInput( "myfile")
10.
_____ class exposes methods to manage a SQLite database.
Select one:
a. SQLiteQueryBuild
b. SQLiteOpenHelper
c. SQLiteDatabase
d. SQLiteProgram - Answers c. SQLiteDatabase
11. Intent is used to grant to another application the right to perform the operation that specified as if
the other application was in current app.
Select one:
a. True
b. False - Answers b. False/
12. The openFile () method opens a named file for writing, with the mode specified.
Select one:
a. True
b. False - Answers b. False/
, 13. Identify the correct statements about a task in Android:
A. A task is a collection of related applications.
B. A task is capable of spanning multiple processes.
Select one:
a. B is correct
b. Both are incorrect
c. Both are correct
d. A is correct - Answers a. B is correct
14. Which of following permissions needs to specify when using the Network location service?
Select one:
a. android.permission.INTERNET
b. All of others
c. android.permission.ACCESS_FINE_LOCATION
d. android.permission.ACCESS_COARSE_LOCATION - Answers d.
android.permission.ACCESS_COARSE_LOCATION
15. HTML5 Canvas supports for event handlers
Select one:
a. True
b. False - Answers b. False
16.
_____ class provides the onCreate() and onUpgrade() methods to manage database creation and version
management.
Select one:
a. SQLiteOpenHelper
b. Cursor
c. ContentValues