Multiple Choice Questions: Productnr
Multiple Choice Questions: Productnr
ProductNr
Supermarket Brand
products
t
d
Food Non-food
p
d
Fruits &
Meat
Vegetables
a. A supermarket product can be a food and non-food product at the same time.
b. There are certain supermarket products that are not Fruits&Vegetables, not meat and not non-food.
Question 2
Principles of Database Management Lecture 3
Question 3
Patient
p
u
Name Name
b. A patient only inherits the ‘Name’ and ‘Date of Birth’ attribute types from the superclass that the
Question 4
d. The attribute type ‘flightNR’ can be used to uniquely identify a private flight.
Question 5
Question 6
Principles of Database Management Lecture 3
c. An aggregation should have both attribute types and participate in one or more relationship types.
Question 7
Consider the following EER model of a database which stores information about scientific publications.
Phone DOI
ID Keywords
number (1..n) (0..n) Scientific
Author
article Title
t
o Author t
Person position
Citation d
(1..n) count
Reviewer
(1..n)
Peer reviewed
paper Technical Report
(0..n)
(0..n) (0..n)
Name
P Name
(1..1)
Title
Publisher (1..1) (1..n) Journal
Impact
(0..n) factor
Subscribes
(0..n) (1..1)
Institution
Works for (1..1) code
Research institution
a. According to the EER model, a scientific article can be at the same time a peer reviewed paper and a
technical report.
b. According to the EER model, an author can be a reviewer of his/her own peer reviewed paper.
Principles of Database Management Lecture 3
c. According to the EER model, two journals can never have the same title, even when they are being
d. The EER model has weak entity types, but no existence dependent entity types.
Question 8
d. Information hiding (also referred to as encapsulation) states that the variables of an object can only
Question 9
a. Composite variables
b. Multivalued variables
c. Variables with unique values (similar to key attribute types in the ER model)
d. Derived variables
Question 10
a. In UML, access modifiers can be used to specify who can have access to a variable or method.
b. A private access modifier (denoted by the symbol ‘–‘) is used in case the variable or method can only
c. A public access modifier (denoted by the symbol ‘+’) is used in case the variable or method can be
d. A protected access modifier (denoted by the symbol ‘#’) is used in case the variable or method can
Question 11
Which of the following statements about the above UML model is correct?
Question 12
Question 13
Principles of Database Management Lecture 3
A composite aggregation
Question 14
Question 15
a. The changeability property specifies the type of operations which are allowed on either variable
values or links.
c. OCL constraints can be used for various purposes such as, to specify invariants for classes, to specify
pre- and post-conditions for methods, to navigate between classes, or to define constraints on
operations.
d. In UML, dependency defines a ‘using’ relationship which states that a change in the specification of a
UML modeling concept may affect another modeling concept that uses it.
Principles of Database Management Lecture 3
Open Question
Fitness company “Conan” wants to setup a database for its members and trainers. One of the aims is to
record information about which members participated in which sessions and which trainers supervised which
sessions.
Conan operates various fitness centers in various cities. Every center is characterized by a unique name (e.g.
Fitplaza, my6pack, …). Every center has an address and one or more rooms (you can consider address as
atomic). Every room has a maximum capacity. Within a center, each room has a unique number such as 1, 2,
3, …
People can register for individual or group sessions in different centers. Each group session requires exactly 1
trainer. Individual sessions are done without a trainer. For each person, we want to store the first name,
family name and birth date. You can assume that the combination of first name, family name and birth date is
unique. For each trainer, the diploma is also recorded. A person can be trainer in one session and participant
in another session (either individual or group session). The model should also include information about
people (e.g. prospects) that have not participated in any sessions yet, or trainers (e.g. interns) which have not
For each session, the date and starting hour should be recorded. For group sessions, also the type should be
stored (e.g. aerobics, bodystyling, etc.). Sessions can start at the same time at the same day but in different
rooms of a center or in different centers. At a given start hour of a given day, at most one individual or group
Make an EER model and UML class diagram to model the data requirements for Conan. Comment on the