Android Programming (2180715) MCQ

MCQs of Data -- Saving, Retrieving, Loading

MCQ No - 1

SharedPreferences stores the data in which format?

(A) TXT
(B) XML
(C) DOC
(D) None of the above.

B
MCQ No - 2

Data type integrity is not maintained in SQLite, you can put a value of a certain data type in a column of another datatype (put string in an integer and vice versa)?

(A) TRUE
(B) FALSE

A
MCQ No - 3

The first step when working with SQLite is to create a class that inherits from a helper class, what is it?

(A) SQLiteOpenHelper class
(B) SQLiteHelper class
(C) SQLiteDatabaseHelper class
(D) SQLiteDatabase class

A
MCQ No - 4

Name the method that enables you to obtain the path of the external storage of an Android device.

(A) getExternalStorageDirectory()
(B) getPathExternalStorageDirectory()
(C) getExternalStorageFile()
(D) getExternalStoragePath()

A
MCQ No - 5

"There are two statements: Statement A: Using Shared Preferences, you can store private primitive data only. Statement B: Using External Storage option, you can store public data on the shared external storage. Which of them are correct?"

(A) Statement A is False, and Statement B is False
(B) Statement A is True, and Statement B is True
(C) Statement A is True, and Statement B is False
(D) Statement A is False, and Statement B is True

B