wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Database2

Total questions: 7

Worksheet time: 4mins

Name
Class
Date
1.

Which of the following commands is used to insert data into a SQLite database?

a)


ADD

b)

DELETE

c)

UPDATE

d)

INSERT

2.

What is the syntax for creating a table in SQLite?

a)


CREATE TABLE table_name (first_col, second_col, third_col)

b)


CREATE table_name TABLE (first_col, second_col, third_col)

c)

CREATE table_name (first_col, second_col, third_col) TABLE

d)


CREATE (first_col, second_col, third_col) TABLE table_name

3.

Which command is used to retrieve data from a SQLite database?

a)


SELECT

b)

GET

c)


FETCH

d)

RECEIVE

4.

What is the purpose of the WHERE clause in a SQLite SELECT statement?

a)


To join tables together

b)

To order the results by a specific column

c)


To group the results by a specific column

d)

To filter the results based on a condition

5.

What is a SQLite index?

a)

A foreign key in a related table

b)

A column that stores unique identifiers for each row

c)


A data structure that improves the speed of database queries

d)


A special type of table used for storing binary data

6.

Which datatype is used to store date and time values in SQLite?

a)


INT

b)


TEXT

c)

DATETIME

d)


CHAR

7.

What is the difference between a DELETE and DELETE with where clause command in SQLite?

a)


DELETE removes all rows, while DELETE with where clause removes individual rows

b)


DELETE removes individual rows, while DELETE with where clause removes all rows at once

c)

Both are same