Database
Database
Database
Constraints - Question 1
Which of the following statements is correct?
Student Response Value Correct Answer Feedback
1. A PRIMARY KEY constraint allows NULL values in the primary key column(s).
2. You can enable a dropped constraint if you need it in the future.
3. Every table must have at least one PRIMARY KEY constraint, or Oracle 10g doe
s not allow the table to be created.
4. None of the above statements is correct. 100%
Score: 5/5
2. Constraints - Question 2.
Which of the following is not a valid constraint type?
3. Constraints - Question 3.
Which of the following SQL statements is invalid and returns an error message?
4. Constraints - Question 4.
What is the maximum number of PRIMARY KEY constraints allowed for a table?
Student Response Value Correct Answer Feedback
1. 1
2. 2
3. 30
4. 255 0%
Score: 0/5
5. Constraints - Question 5.
How many NOT NULL constraints can be created at the table level using the CREA
TE TABLE command?
Student Response Value Correct Answer Feedback
1. 0 100%
2. 1
3. 12
4. 30
5. 255
Score: 5/5
6. Constraints - Question 6.
The FOREIGN KEY constraint should be added to which table?
Student Response Value Correct Answer Feedback
1. the table representing the "one" side of a one-to-many relationship
2. the parent table in a parent-child relationship
3. the child table in a parent-child relationship 100%
4. the table that does not have a primary key
Score: 5/5
7. Constraints - Question 7.
Which of the following commands can you use to rename a constraint?
Student Response Value Correct Answer Feedback
1. RENAME
2. ALTER CONSTRAINT
3. MOVE
4. NEW NAME
5. None of the above commands can be used. 100%
Score: 5/5
8. Constraints - Question 8.
Which type of constraint would you use on a column to allow values only above
100 to be entered?
Student Response Value Correct Answer Feedback
1. PRIMARY KEY
2. UNIQUE
3. CHECK 100%
4. NOT NULL
Score: 5/5
9. Constraints - Question 9.
Which of the following can be used to enable a disabled constraint?
Student Response Value Correct Answer Feedback
1. ALTER TABLE...MODIFY
2. ALTER TABLE...ADD
3. ALTER TABLE...DISABLE
4. ALTER TABLE...ENABLE 100%
Score: 5/5
1 4
2 1
3 3
4 1
5 1
6 3
7 5
8 3
9 4
10 5
11 4
12 1
13 3
14 2
15 1
16 3
17 1
18 1
19 1
20 1