Android
OA0-002 · Question #122
Which of these is the correct procedure to create and use an SQLite database?
The correct answer is B. Extend the android.database.sqlite.SQLiteOpenHelper class, implementing the onCreate(). See the full explanation below for the reasoning.
Question
Which of these is the correct procedure to create and use an SQLite database?
Options
- ACall the ApplicationContext methods createDatabase() and openDatabase().
- BExtend the android.database.sqlite.SQLiteOpenHelper class, implementing the onCreate()
- CDeclare an instance of the android.database.sqlite.SQLiteOpenHelper class and call each of the
- DImplement the android.database.SQLiteOpenHelper interface, writing the implementation of the
How the community answered
(25 responses)- A8% (2)
- B72% (18)
- C16% (4)
- D4% (1)
Community Discussion
No community discussion yet for this question.