AND-401 Exam QuestionsBrowse all questions from this exam

AND-401 Exam - Question 100


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

Show Answer
Correct Answer: BD

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

1 comment
Sign in to comment
Mmadi
Dec 31, 2022

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