Select chapter



basics (6.papers)
activities (5.papers)
services (2.papers)
threads (2.papers)
receivers (1.papers)
advanced android (2.papers)
SQLite database (1.papers)
adapters (1.papers)
adb and ddms (1.papers)
widgets (1.papers)
fragments (1.papers)
UI (1.papers)
Hide

Sponsored Links


  

android sqlite database interview questions and answers

Show Answer
Share Facebook gmail Twitter
2
What is the use of SQlite open helper class in SQLite?
  1. A helper class provides functionalities for deleting rows, inserting data into rows into a table.
  2. A helper class allows database management ,creation and version management. This is the class where we will create all the tables, and upgrade tables.
  3. A helper class is used for fetching the data from remote servers and storing it into SQLiteDatabase.
  4. None are correct
Show Answer
Share Facebook gmail Twitter
3
What is the use of onUpgrade function in SQLiteOpenHelper?
  1. onUpgrade is a function available in SQLite DataBase which is used to update rows in a table.
  2. onUpgrade function available in SQLite DataBase which is used to update table names.
  3. onUpgrade is basically for handling new db changes(could be new columns addition,table addition) for any new version of your app.
    
    Droping the table is not always necessary in onUpgrade it all depends on what your use case is. If the requirment is to not to persists the data from your older version of app then drop should help,but if its like changing schema then it should only have alter scripts.
  4. None are correct
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
5
How to show SQLite Database table information in android application? what is the best way to do it?
  1. Use listview with cursor adapter.
  2. Use grid view with cursor adapter
  3. Use table layout with cursor adapter.
  4. Use table layout with cursor
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Read more papers :