Exam AND-401 All QuestionsBrowse all questions from this exam
Question 100

Which of the following is NOT true about SQLiteOpenHelper class? (Choose two)

    Correct Answer: B, D

    SQLiteOpenHelper class is mainly used to manage database creation and version management. It does not perform database querying directly; rather, it provides methods like getReadableDatabase() and getWritableDatabase() that return database instances for querying. Therefore, it is incorrect to say it is used to perform database querying. Also, SQLiteOpenHelper does not manage database versions using ContentProvider; it manages them internally by itself through the methods onCreate() and onUpgrade(). Hence, options B and D are not true about the SQLiteOpenHelper class.

Discussion
Mmadi

A. It has two abstract methods: onCreate() and onUpgrade(). C. It manages database creation and updates.