Multiple Choice Questions
Multiple Choice Questions
Multiple Choice Questions
a) The catalog forms the heart of a database. It can be an integral part of the DBMS or a standalone
component.
b) The catalog makes sure the database continues to be correct by, among other measures, specifying all
integrity rules.
c) The catalog describes all metadata components that are defined in the metamodel.
Question 2
A data steward notices that part of the database contains values in a different language. Which type of data
a) Intrinsic.
b) Contextual.
c) Representational.
d) Accessibility.
Question 3
Is the following statement true or false: “The accuracy of a database depends on its representational and
contextual characteristics.”
a) True
b) False
Question 4
1
Principles of Database Management Lecture 4
a) We can track down faults in the database model, such as updating errors that cause inconsistencies.
b) We can track down the sources of incompleteness and thereby eliminate the cause thereof.
c) We can track down certain patterns in the complete fields, which can lead to more information about
a certain user.
Question 5
b) Consistency issues can arise due to sharing data across multiple departments.
d) All aspects of data quality need to be checked regularly, as every change in the database or even the
Question 6
Given the following relational model (primary keys are underlined, foreign keys in italics):
2
Principles of Database Management Lecture 4
Question 7
c) the corresponding minimum and maximum cardinality in the EER model are 1.
Question 8
Question 9
a) The Boyce Codd normal form is more strict than the fourth normal form.
b) The Boyce Codd normal form is more strict than the third normal form.
c) The second normal form is more strict than the Boyce Codd normal form
d) The first normal form is more strict than the Boyce Codd normal form.
Question 10
3
Principles of Database Management Lecture 4
a) The same room can be booked by the same customer on different dates and/or time.
c) A customer can book multiple rooms at the same date and time.
Question 11
Assume a wine is associated with one region and country, but can be composed of multiple grapes.
Question 12
Show(movieID, cinema name, movie name, date, time), ‘cinema name’ is a foreign key referring to ‘name’ in
4
Principles of Database Management Lecture 4
Question 13
‘artistID’ is a foreign key referring to ‘ID’ in ‘Artist’. This value cannot be NULL.
‘tour name’ is a foreign key referring to ‘name’ in ‘Tour’. This value cannot be NULL.
‘customerID’ is a foreign key referring to ‘ID’ in ‘Customer. This value cannot be NULL.
‘venue’ is a foreign key referring to ‘venue’ in ‘Show’. This value cannot be NULL.
‘tour name’ is a foreign key referring to ‘name’ in ‘Tour’. This value cannot be NULL.
Question 14
5
Principles of Database Management Lecture 4
b) Every non-prime attribute of this relation is fully functionally dependent on any key of this
relation.
Question 15
a) A foreign key of a relation A cannot refer to the primary key of the same relation A.
Question 16
Consider a data model for the Olympics storing information about countries and athletes. There is a 1-N
relationship type between country and athlete and an athlete always has to belong to exactly 1 country. A
Question 17
The following relational model represents a HRM system of a consultancy firm. The primary keys are
6
Principles of Database Management Lecture 4
ProjectID in Project
Company(Name, Location)
Suppose a new consultant is hired and immediately assigned to a new training project at a new firm and to 2
other, already existing projects. How many rows (tuples) must be added to the database to reflect this
change?
a) 1
b) 3
c) 5
d) 6
Question 18
d) The domain constraint states that the value of each attribute type A must be an atomic and single
Question 19
Given the following relational model (primary keys are underlined, foreign keys are in italics).
7
Principles of Database Management Lecture 4
DNR: foreign key refers to DNR in DEPARTMENT, NULL value not allowed
MGNR: foreign key refers to SSN in EMPLOYEE, NULL value not allowed
DNR: foreign key refers to DNR in DEPARTMENT, NULL value not allowed
SSN: foreign key refers to SSN in EMPLOYEE, NULL value not allowed
PNR: foreign key refers to PNR in PROJECT, NULL value not allowed
a) According to the model, a supervisor cannot supervise more than one employee.
d) According to the model, an employee should always work on projects assigned to his/her department.
Open Question
A library database records the authors and the publisher of each book. Normalize the following relation and
8
Principles of Database Management Lecture 4
EXTRA QUESTION: Suppose that one book can have multiple publishers. How can you extend your model to
accommodate this? Where would you put the attribute type “number_of_copies”?
Answer:
First Normal Form
The first normal form is violated because Author is a multivalued composite attribute type and Publisher is a
composite attribute type. The relation R can be brought in first normal form as follows:
The relation AUTHOR is not in second normal form because date_of_birth is partially dependent on ISBN and
authorname. In fact, it only depends on authorname. The relation AUTHOR can be brought in second normal
form as follows:
AUTHOR(authorname, date_of_birth)
9
Principles of Database Management Lecture 4
WRITES(authorname, ISBN)
The relation BOOK is not in third normal form since we have a transitive functional dependence from ISBN to
streetnumber via publishername, from ISBN to streetname via publishername, from ISBN to zipcode via
publishername and from ISBN to cityname via publishername. The relation BOOK can be brought in third
AUTHOR(authorname, date_of_birth)
WRITES(authorname, ISBN)
The relation PUBLISHER is still not in third normal form since we have a transitive functional dependency from
publishername to cityname via zipcode. The relation BOOK can be brought in third normal form as follows:
AUTHOR(authorname, date_of_birth)
WRITES(authorname, ISBN)
CITY(zipcode, cityname)
Extra Question
If you want to extend the model by allowing a book to be published by multiple publishers then the relation
BOOK is no longer in first normal form since publishername now becomes a multivalued attribute type. The
AUTHOR(authorname, date_of_birth)
WRITES(authorname, ISBN)
CITY(zipcode, cityname)
PUBLISHES(ISBN,publishername)
The attribute type “number_of_copies“ can then be stored in the PUBLISHES relation.
11