wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

22IT4252-DBMS-1

Total questions: 20

Worksheet time: 20mins

Name
Class
Date
1.

Which SQL command is used to remove a specific customer's data from the customer table?

a)

DELETE

b)

UPDATE

c)

SELECT

d)

INSERT

2.

What is the main purpose of Data Definition Language (DDL) in SQL?

a)

To create the ultimate blueprint of the database and determine the organization and layout of the data

b)

To query and modify the data stored in the database

c)

To define and manage the structure of the database

d)

To retrieve, insert, update, and delete data within the database

3.
Which SQL command is used to add a new column to an existing table?
a)
UPDATE
b)
INSERT
c)
CREATE TABLE
d)
ADD COLUMN
4.
What is the purpose of the CREATE TABLE statement in SQL?
a)
To delete data from a table
b)
To retrieve data from the database
c)
To add new records to a table
d)
To create a new table within the database
5.

What's the magic SQL command to sprinkle new records into a table?

a)

SELECT

b)

INSERT

c)

UPDATE

d)

DELETE

6.

Which SQL command is used to jazz up the structure of an existing table?

a)

INSERT

b)

UPDATE

c)

CREATE TABLE

d)

ALTER TABLE

7.

What's the connection between DDL and DML in managing and manipulating relational databases?

a)

DDL is like the architect, designing and managing the structure of the database, while DML is the builder, retrieving, inserting, updating, and deleting data within the database

b)

DDL and DML are like two ships passing in the night, unrelated and not interacting with each other

c)

DDL is the master planner, defining and managing the structure of the database, while DML is the executor, retrieving, inserting, updating, and deleting data within the database

d)

DDL and DML are like two sides of the same coin, interchangeable and used for the same purposes

8.

What does the DELETE statement do in SQL?

a)

Deletes data from a table

b)

Retrieves data from the database

c)

Adds new records to a table

d)

Modifies the structure of an existing table

9.
What is the purpose of Data Manipulation Language (DML) in SQL?
a)
To define and manage the structure of the database
b)
To establish the blueprint of the database and determine the organization and layout of the data
c)
To retrieve, insert, update, and delete data within the database
d)
To create, modify, and delete database objects such as tables, indexes, views, and schemas
10.

Which SQL command is used to insert new records into a table?

a)

UPDATE

b)

CREATE

c)

INSERT

d)

ADD

11.

What does the INSERT statement do in SQL?

a)

To define and manage the structure of the database

b)

To modify the structure of an existing table

c)

To retrieve data from the database

d)

To add new records to a table

12.

What does the UPDATE statement do in SQL?

a)

Adds new records to a table

b)

Updates existing records in a table

c)

Retrieves data from the database

d)

Deletes data from a table

13.

What does the SELECT statement do in SQL?

a)

Retrieves data from the database

b)

Defines and manages the structure of the database

c)

Adds new records to a table

d)

Modifies the structure of an existing table

14.

Which SQL command is used to fetch data from the database?

a)

SELECT

b)

INSERT

c)

UPDATE

d)

DELETE

15.

Which SQL command is used to fetch all records from a table?

a)

SELECT *

b)

RETRIEVE

c)

GET

d)

INSERT

16.
Which SQL command is used to create a new table within the database?
a)
INSERT
b)
SELECT
c)
UPDATE
d)
CREATE TABLE
17.
What is the purpose of the ALTER TABLE statement in SQL?
a)
To define and manage the structure of the database
b)
To add new records to a table
c)
To modify the structure of an existing table
d)
To retrieve data from the database
18.

What is the main goal of using the SELECT statement in SQL?

a)

To retrieve data from the database

b)

To organize and manage the database structure

c)

To insert new records into a table

d)

To alter the structure of an existing table

19.

Which SQL command is used to add a new column to an existing table?

a)

UPDATE TABLE

b)

INSERT COLUMN

c)

CREATE TABLE

d)

ADD COLUMN

20.

What is the main purpose of using the UPDATE statement in SQL?

a)

To insert new data into a table

b)

To modify existing data in a table

c)

To fetch data from the database

d)

To remove data from a table