Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

Assignment 2 Solutions:

The ER model is a

Record-based data model

Representational data model

Conceptual data model

All of the above

Yes, the answer is correct.


Score: 2
Accepted Answers:
Conceptual data model

State TRUE or FALSE:


0.5 points
Entities in an entity set can have different properties.

True

False

No, the answer is incorrect.


Score: 0
Accepted Answers:
False

0.5 points
Entity sets need to be disjoint.

True

False

Yes, the answer is correct.


Score: 0.5
Accepted Answers:
False

0.5 points
Values of some attributes of an entity type need not uniquely identify a
specific entity of that type.

True
False

Yes, the answer is correct.


Score: 0.5
Accepted Answers:
True

0.5 points
Relationships describe associations among entities.

True

False

Yes, the answer is correct.


Score: 0.5
Accepted Answers:
True

State TRUE or FALSE:


0.5 points
Only entity types can have attributes.

True

False

Yes, the answer is correct.


Score: 0.5
Accepted Answers:
False

0.5 points
The Salary attribute of an Employee entity can be a derived attribute.

True

False

Yes, the answer is correct.


Score: 0.5
Accepted Answers:
True

0.5 points
A Relationship type can not have an attribute.

True
False

Yes, the answer is correct.


Score: 0.5
Accepted Answers:
False

0.5 points
A Relationship type can not have more than one attribute.

True

False

Yes, the answer is correct.


Score: 0.5
Accepted Answers:
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:

S1: TRUE; S2: TRUE; S3: TRUE

S1: FALSE; S2: TRUE; S3: FALSE

S1: TRUE; S2: FALSE; S3: TRUE

S1: FALSE; S2: FALSE; S3: TRUE

No, the answer is incorrect.


Score: 0
Accepted Answers:
S1: FALSE; S2: FALSE; S3: TRUE

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

Yes, the answer is correct.


Score: 2
Accepted Answers:
p: w; q: v; 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:

S1: TRUE; S2: TRUE

S1: FALSE; S2: TRUE

S1: FALSE; S2: FALSE

S1: TRUE; S2: FALSE

Yes, the answer is correct.


Score: 2
Accepted Answers:
S1: TRUE; S2: TRUE

2 points
Choose the FALSE statement:

A weak entity set may not have appropriate attributes to form a primary
key.

Every weak entity must be associated with an identifying entity.

The identifying relationship from the weak entity set to the owner entity
set is always one-to-many.

The participation of the weak entity set in the identifying relationship is


always total.

Yes, the answer is correct.


Score: 2
Accepted Answers:
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

No, the answer is incorrect.


Score: 0
Accepted Answers:
1:1

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:

(u,v) = (1,1) and (x, y) = (1, N)

(u,v) = (1,N) and (x, y) = (1, 1)

(u,v) = (1,1) and (x, y) = (M, N)

(u,v) = (M,N) and (x, y) = (1, 1)

Yes, the answer is correct.


Score: 2
Accepted Answers:
(u,v) = (1,N) and (x, y) = (1, 1)

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:

Cardinality ratio of A:B is one-to-many; A participates partially; B


participates completely

Cardinality ratio of A:B is one-to-many; A participates partially; B


participates partially

Cardinality ratio of A:B is many-to-many; A participates completely; B


participates completely
Cardinality ratio of A:B is many-to-many; A participates completely; B
participates partially

Yes, the answer is correct.


Score: 2
Accepted Answers:
Cardinality ratio of A:B is many-to-many; A participates completely; B
participates partially

You might also like