wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Quiz: Construct Database using SQLite CRUD

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

What does CRUD stand for?

a)

Copy, Replace, Upload, Download

b)

Create, Run, Undo, Deploy

c)

Create, Read, Update, Delete

d)

Compile, Render, Update, Debug

2.

Which class in Android is used to manage SQLite database creation and version management?

a)

SQLiteManager

b)

SQLiteOpenHelper

c)

DatabaseHelperActivity

d)

SQLiteCursor

3.

Which SQL statement is used to retrieve data from a table?

a)

INSERT INTO

b)

SELECT * FROM

c)

UPDATE

d)

DELETE

4.

Which SQL statement adds a new record into a table?

a)

INSERT INTO

b)

UPDATE

c)

SELECT

d)

ALTER TABLE

5.

In SQLite for Android, what is the purpose of ContentValues?

a)

To store user interface data

b)

To hold key-value pairs for inserting or updating data

c)

To manage app permissions

d)

To handle file storage

6.

What is the role of a Cursor object in SQLite?

a)

It saves images into database

b)

It reads query results (result set)

c)

It deletes old database files

d)

It updates the database schema

7.

Which CRUD operation modifies existing data in a database?

a)

CREATE

b)

READ

c)

UPDATE

d)

DELETE

8.

In Room Database, which annotation is used to define a table?

a)

@Dao

b)

@Entity

9.

Why should CRUD operations run on a background thread in Android?

a)

To reduce app file size

b)

To prevent the UI from freezing or crashing (ANR)

c)

To speed up app installation

d)

To compile code faster

10.

What does the DELETE operation in CRUD do?

a)

Removes the entire database

b)

Drops the whole table

c)

Deletes specific records from the table

d)

Clears all app data in the device