Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DDL

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Below is an acronym for DDL

a)

Database Definition Language

b)

Data Definition Language

c)

Description Data Language

d)

Digital Data Language

2.

Which of the following is/are the DDL statements?

a)

Create

b)

Drop

c)

Alter

d)

All of the Mentioned

3.

SQL has how many main commands for DDL:

a)

1

b)

2

c)

3

d)

4

4.

Which of the following statement removes database including its related components?

a)

DROP DATABASE

b)

DELETE DATABASE

c)

REMOVE DATABASE

d)

None of the mentioned

5.

Which of the following statement removes sales and suppliers database?

a)

DROP DATABASE Sales, NewSales

b)

DROP DATABASE Sales, suppliers

c)

DROP DATABASE Sales and suppliers

d)

DROP DATABASE Sales-suppliers

6.

View used used for displaying current status of database is ___________

a)

system.databases

b)

current.databases

c)

sys.databases

d)

status.databases

7.

Command that is used to add attributes to an existing relation, is said to be

a)

Alter

b)

Modify

c)

Tailor

d)

Eliminate

8.

Which requirements can be implemented using a CHECK constraint?

a)

Customer must be greater than 21 years old

b)

Customer must have a residence in an Asian Country

c)

Both A and B

d)

None of the above

9.

Which of the following statements are TRUE?

a)

A Unique constraint allows multiple rows to have NULL value

b)

Integrity constraint can be added to a table even if table data is in violation

c)

A PRIMARY KEY allows a single row to contain NULL

d)

Both A and B

10.

Which statement would add a column CGPA to a table Student which is already created

a)

ALTER TABLE Student ADD COLUMN (CGPA NUMBER(3,1));

b)

ALTER TABLE Student CGPA NUMBER(3,1);

c)

ALTER TABLE Student ADD (CGPA NUMBER(3,1));

d)

Both A and C