Data Models Into Database Designs(Computer Science > Database ) Questions and Answers
Question 1. Which of the following data constraints would be used to specify that the value of cells in a column must be one of a specific set of possible values?
A domain constraint
A range constraint
An intrarelation constraint
An interrelation constraint
Explanation:-
Answer: Option A. -> A domain constraint
Question 2. In a 1:N relationship, the foreign key is placed in:
either table without specifying parent and child tables.
the parent table.
the child table.
either the parent table or the child table.
Explanation:-
Answer: Option C. -> the child table.
Question 3. A primary key should be defined as:
NULL.
NOT NULL.
Either of the above can be used.
None of the above are correct.
Explanation:-
Answer: Option B. -> NOT NULL.
Question 4. Which of the following situation requires the use of ID-dependent entities?
Association relationships only
Multivalued attributes only
Archetype/instance relationships only
All of the above use ID dependent entities
Explanation:-
Answer: Option D. -> All of the above use ID dependent entities
Question 5. A foreign key is:
a column containing the primary key of another table.
used to define data types.
used to define null status.
all of the above are above correct.
Explanation:-
Answer: Option A. -> a column containing the primary key of another table.
Question 6. In a 1:1 relationship, the foreign key is placed in:
either table without specifying parent and child tables.
the parent table.
the child table.
either the parent table or the child table.
Explanation:-
Answer: Option A. -> either table without specifying parent and child tables.
Question 7. Which of the following columns is(are) are required in a table?
A foreign key
An alternate key
A primary key
A surrogate key
Explanation:-
Answer: Option C. -> A primary key
Question 8. Which of the following column properties would be used to specify that cells in a column must be immediately filled with a monetary value of $10,000?
Null status
Data type
Default value
Data constraints
Explanation:-
Answer: Option C. -> Default value
Question 9. The identifier of an entity will become the ________ of the new table.
foreign key
main attribute
primary key
identity key
Explanation:-
Answer: Option C. -> primary key
Question 10. Which of the following data constraints would be used to specify that the value of a cell in one column must be less than the value of a cell in another column in the same row of the same table?