nerdexam
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)
  • A
    8% (2)
  • B
    72% (18)
  • C
    16% (4)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full OA0-002 Practice