Vous êtes sur la page 1sur 4

Knowledge Check 8 – Solution

1) What is Constraints
a) Constraint is a rule or set of rules that apply to a column or
combination of columns
b) It does not achieve data integrity
c) It allows data corruption
d) None of the above

Feedback:

A) Correct. The constraint is a rule or set of rules that is applied to a column or


combination of columns
B) Incorrect. The correct option is A
C) Incorrect. The correct option is A
D) Incorrect. The correct option is A

2) Check constraint is also known as _________


a) Domain integrity
b) Referential integrity
c) Entity integrity
d) None of the above

Feedback:

A) Correct. Check constraint is also known as Domain integrity

B) Incorrect. A is the correct answer.

C) Incorrect. A is the correct answer.

D) Incorrect. A is the correct answer.

3) To maintains relationship between two related tables


a) Domain integrity
b) Referential integrity
c) Entity integrity
d) None of the above
Feedback:

A) Incorrect B is the correct answer. It maintains relationship between two


related tables.

B) correct. It maintains relationship between two related tables.

C) Incorrect. B is the correct answer. It maintains relationship between two


related tables.

D) Incorrect .B is the correct answer. It maintains relationship between two


related tables.

4) Foreign key constraint is also known as


a) Domain integrity
b) Referential integrity
c) Entity integrity
d) None of the above

Feedback:

A) Incorrect. B is the correct answer.

B) Correct. Foreign key is also known as referential integrity

C) Incorrect. B is the correct answer.

D) Incorrect. B is the correct answer.

5) ___________ allows null values to be stored


a) primary key
b) unique key
c) composite key
d) None of the above

Feedback:

A) Incorrect B is the correct answer. Unique key constraint allows only unique
value to be stored and it allows null values.

B) correct. B is the correct answer. Unique key constraint allows only unique
value to be stored and it allows null values.

C) Incorrect. B is the correct answer. Unique key constraint allows only unique
value to be stored and it allows null values.
D) Incorrect .B is the correct answer. Unique key constraint allows only unique
value to be stored and it allows null values.

6) By default a table allows null records


a) True
b) false
c) None of the above

Feedback:

A) correct Its True by default a table allows null records..

B) Incorrect. A is the correct answer. Its True by default a table allows null
records.

C) Incorrect A is the correct answer. Its True by default a table allows null
records.

7) Which of the following statement is true about tables


a) A table can have only one primary key constraint but can have
several UNIQUE constraints
b) A table can have multiple primary keys
c) Null value can be stored in the primary key
d) None

Feedback:

A) Correct. A table can have one primary key constraint but can have multiple
UNIQUE constraints
B) Incorrect. The correct option is A
C) Incorrect. The correct option is A. NULL value cannot be stored in the
Primary key filed
D) Incorrect. The correct option is A.

8) Important constrains are


a) Primary key
b) Foreign Key
c) UNIQUE Key
d) a, b and c
e) a and b
f) b and c
Feedback:

A) Incorrect. The correct option is d. Primary key constraint is one of the


important constraints.
B) Incorrect. The correct option is d. Foreign key constraint is one of the
important constraints.
C) Incorrect. The correct option is d. Unique key constraint is one of the
important constraints.
D) Correct
E) Incorrect. The correct option is D
F) Incorrect. The correct option is D

Vous aimerez peut-être aussi