0% found this document useful (0 votes)
22 views3 pages

Worksheet

The document contains 15 multiple choice questions about database integrity constraints. The questions cover topics like defining constraints through DDL commands, the ALTER TABLE command, foreign keys, referenced and referencing tables, referencing actions, and deleting related records through cascading. Integrity constraints help maintain data accuracy and consistency between tables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views3 pages

Worksheet

The document contains 15 multiple choice questions about database integrity constraints. The questions cover topics like defining constraints through DDL commands, the ALTER TABLE command, foreign keys, referenced and referencing tables, referencing actions, and deleting related records through cascading. Integrity constraints help maintain data accuracy and consistency between tables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

QNo.

Question Correct Answer

1 Database maintains data integrity with the


help of the following.
a. DDL commands
b. DML commands
c. Constraints
d. TCL commands

2 You can define integrity constraints


through following.
a. DML commands
b. DDL commands
c. Both A & B
d. None

3 Which of the following things can be done


with ALTER TABLE command ?
a. Add constraint
b. Modify constraint
c. Drop Constraint
d. All of the above

4 When two tables are related by common


columns, then the related column in the
parent table should be declared as :
a. PRIMARY KEY
b. UNIQUE KEY
c. FOREIGN KEY
d. A and B Both

5 The table in which foreign key is defined


is called :
a. Parent Table
b. Referencing Table
c. Child Table
d. Both b and c.

6 A table to which a foreign key points is


called :
a. Referenced Table
b. Parent Table
c. Child Table
d. Both b and c
7 Which of the following is not an
referencing action ?
a. RESTRICT
b. CASCADE
c. NOT NULL
d. NO ACTION

8 With reference to foreign key which of the


following is not true ?
a. A primary key must be defined for the
referenced table.
b. A null value is not permitted in a
foreign key.
c. The data types of corresponding
columns should match.
d. The referenced table must already be
created.

9 Which of the following cannot be done


with ALTER TABLE ?
a. Adding columns to a table
b. Deleting columns of a table
c. Enabling/Disabling constraints
d. Deleting records of a table.

10 Which key declares that an index in one


table is related to another table.
a) FOREIGN KEY b) UNIQUE KEY
b) PRIMARY KEY d) NOT NULL

11 Deletion of an employee from one tale


also deletes the employee data from
another table. This kind of deletion is
called.
a) Transparent b) Concrete
c) Elaborate d) Cascade

12 Which clause is used to remove a


constraint.
a) Remove b) Delete
c) Drop d) Exclude

13 Which keyword is used to specify the


constraint after the creation of the table.
a) Alter Table b) Specify
c) Setup d) Set
14. Which if the following is not a integrity
Constraint.
a) NOT NULL b) POSITIVE
c) UNIQUE d) CHECK

15. Domain name, Referential integrity and


Functional Dependency are special form
of.
a) Foreign Key b) Primary Key
c) Assertion d) Data Integrity

You might also like