Professional Documents
Culture Documents
Assignment 2 Solutions
Assignment 2 Solutions
The ER model is a
True
False
0.5 points
Entity sets need to be disjoint.
True
False
0.5 points
Values of some attributes of an entity type need not uniquely identify a
specific entity of that type.
True
False
0.5 points
Relationships describe associations among entities.
True
False
True
False
0.5 points
The Salary attribute of an Employee entity can be a derived attribute.
True
False
0.5 points
A Relationship type can not have an attribute.
True
False
0.5 points
A Relationship type can not have more than one attribute.
True
False
2 points
Consider the following statements:
S1: The key of an entity type always consists of more than one attribute.
S2: An entity type has exactly one key.
S3: An entity type may have more than one key.
Choose the correct option:
2 points
Consider the following sets:
S1: {p: entity; q: weak entity; r: relationship; s: derived attribute; t: multi-
valued attribute}
S2: {v: double-line rectangle; w: rectangle; x: double-line ellipse; y: diamond;z:
dash-line ellipse}
Choose the correct mapping between S1 and S2:
p: v; q: w; r: x; s: y; t:z
p: w; q: v; r: y; s: x; t:z
p: w; q: v; r: y; s: z; t:x
p: v; q: w; r: y; s: z; t:x
2 points
Consider the statements given below:
S1: The participation of an entity set S in a relationship set R is said to be
total if every entity in S participates in at least one relationship in R.
S2: The participation of an entity set S in a relationship set R is said to be
partial if some entities in S participate in R.
Choose the correct option:
2 points
Choose the FALSE statement:
A weak entity set may not have appropriate attributes to form a primary
key.
The identifying relationship from the weak entity set to the owner entity
set is always one-to-many.
2 points
Suppose hasPresident is a relationship type with two participating entity
types Country and Person. What is the appropriate cardinality ratio for
Country:Person?
1:1
1:M
M:1
M:N
2 points
Consider the binary relationship type hasBranch between entity types Bank
and Branch. Suppose the cardinality ratio (Bank: Branch) constraint of the
relationship is expressed using (min, max) notation as (u, v) on the line
connecting Bank to hasBranch and (x, y) on the line connecting Branch to
hasBranch, which one of the following is correct:
2 points
Consider two entity sets A = {a, b, c, d, e} and B = {p, q, r, s, t}, and they
participate in a relationship R. The instances of R are given as: { (a, p), (b, q),
(b, r), (c, r), (d, t), (e, t)}.
Which one of the following is correct: