FA 9 - CS0011 || CANVAS

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/4

encourage image

There's no tags or description

Looks like no tags are added yet.

5 Terms

1
New cards

This method creates and/or opens a database that will be used for reading and writing.

FeedReaderDbHelper()

getReadableDatabase()

getWritableDatabase()*

SQLiteOpenHelper()

2
New cards

You are creating a local SQLite database in your Android app to store user notes. You need a class that manages database creation and version management. Which class should you extend to create your database helper?

SQLiteDatabase

RoomDatabase

SQLiteOpenHelper*

ContentProvider

3
New cards

Which SQLite method returns a Cursor for query results?

db.insert()

db.query()*

db.update()

db.delete()

4
New cards

The return value for the delete() method indicates the number of rows that were deleted from the database.

True*

False

5
New cards

Since the cursor starts at position -1, calling moveToNext() places the "read position" on the first entry in the results

True*

False