Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Question Text: Clear My Choice

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Question 1

Answer saved
Marked out of 1.00

Flag question

Question text

This is used to enable a currentlt disable constraint in the table definition.


Select one:
a. ON DELETE CASCADE
b. DISABLE CONSTRAINT
c. DROP CASCADE
d. ENABLE CONSTRAINT
Clear my choice

Question 2
Answer saved
Marked out of 1.00

Remove flag

Question text

Which two of the following forms key itergrity constraint.


Select one:
a. Foreign Key and Unique
b. Foreign key and Primary Key
c. Check and Not Null
d. Primary Key and Unique
Clear my choice

Question 3
Answer saved
Marked out of 1.00
Flag question

Question text

Which of the following is the correct example of disabling an integrity constraint?


Select one:
a. ALTER TABLE STUDENTS
DISABLE usn_pk;
b. ALTER TABLE STUDENTS
MODIFY CONSTRAINT DISABLE usn_pk;
c. ALTER TABLE STUDENTS
DISABLE CONSTRAINT usn_pk;
d. ALTER TABLE STUDENTS
DROP CONSTRAINT usn_pk;
Clear my choice

Question 4
Answer saved
Marked out of 1.00

Flag question

Question text

Which of the following is the correct example of create a default constraint.


Select one:
a. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20) CONSTRAINT CODE_df DEFAULT(CODE 'BSIT');
b. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20),
CONSTRAINT CODE_df DEFAULT(CODE BSIT));
c. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20),
CONSTRAINT CODE_df DEFAULT(CODE 'BSIT'));
d. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20) DEFAULT ‘Invalid’));
Clear my choice

Question 5
Answer saved
Marked out of 1.00

Flag question

Question text

Which of the following is the correct example of adding a CHECK constraint where CODE
should start with the character ‘BS’.
Select one:
a. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE LIKE ‘%BS’));
b. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE = ‘BS’));
c. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE LIKE ‘%BS%’));
d. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE VARCHAR(20),
CONSTRAINT CODE_ck CHECK (CODE LIKE ‘BS%’));
Clear my choice

Question 6
Answer saved
Marked out of 1.00

Flag question

Question text

This is used to deactivate an integrity constraint.


Select one:
a. DISABLE CONSTRAINT
b. DROP CASCADE
c. ON DELETE CASCADE
d. ENABLE CONSTRAINT
Clear my choice

Question 7
Answer saved
Marked out of 1.00

Flag question

Question text

This is used to delete child row when a parent key is deleted.


Select one:
a. ON DELETE CASCADE
b. DROP CASCADE
c. ENABLE CONSTRAINT
d. DISABLE CONSTRAINT
Clear my choice

Question 8
Answer saved
Marked out of 1.00

Flag question

Question text

Which of the following statement is not true about Foreign Key constraint.
Select one:
a. The foreign key constraint also prevents invalid data from being inserted into the foreign
key column, because it has to be one of the values contained in the table it points to.
b. A foreign key in one table points to a foreign key in another table.
c. The foreign key constraint is used to prevent actions that would destroy links between
tables.
d. Ensures that the relationship between tables remain preserved as data is inserted, deleted and
modified
Clear my choice

Question 9
Answer saved
Marked out of 1.00

Flag question

Question text

A type of constraint uniquely identifies each record in a database table.


Select one:
a. Primary key
b. Unique
c. Foreign key
d. Check
Clear my choice

Question 10
Answer saved
Marked out of 1.00

Flag question

Question text

A type of constraint that is used to limit the value range that can be placed in a column.
Select one:
a. Default
b. Unqiue
c. Check
d. Not Null

You might also like