Android Programming (2180715) MCQs

MCQs of Data - Saving, Retrieving, Loading

Showing 1 to 10 out of 29 Questions
1.
SharedPreferences stores the data in which format?
(a) TXT
(b) XML
(c) DOC
(d) None of the above.
Answer:

Option (b)

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
Answer:

Option (a)

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
Answer:

Option (a)

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()
Answer:

Option (a)

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
Answer:

Option (b)

6.
In Android, by default, SQLite database save data in?
(a) Memory
(b) External Storage
(c) Internal Storage
(d) On the cloud
Answer:

Option (c)

7.
Which database is natively supported by android?
(a) MSSQL
(b) MySQL
(c) SQLite
(d) Oracle
Answer:

Option (c)

8.
On Android SQLite where can we define tables, columns, views, triggers?
(a) onUpgrade()
(b) onInit()
(c) onStart()
(d) onCreate()
Answer:

Option (d)

9.
How do we get access to the preference?
(a) Via getPreference() method
(b) Via getSharedPreference() method
(c) Via getDefaultSharedPreference() method
(d) All of above
Answer:

Option (d)

10.
There are five different methods to store persistent data. They are: Shared Preference, Internal Storage, External Storage, Network and _____?
(a) Core Data
(b) SQLite Database
(c) Web Service
Answer:

Option (b)

Showing 1 to 10 out of 29 Questions