1. In an ER model for a hospital, each patient can have multiple allergies. How should "allergies" be represented?

A. As a simple attribute of Patient
B. As a multivalued attribute
C. As a weak entity
D. As a derived attribute

Answer: B
Explanation:

Since a patient can have more than one allergy, it must be modeled as a multivalued attribute or as a separate related table in logical design.

2. A product can be supplied by many suppliers, and each supplier may offer a different price. What is the correct ER design?

A. Store price in Product
B. Store price in Supplier
C. Use a ternary entity
D. Create an associative entity Product_Supplier

Answer: D
Explanation:

The price depends on the pair (Product, Supplier), so an associative entity is required to store relationship attributes like price.

3. If an entity type has a key attribute that consists of multiple attributes, that key is called:

A. Prime key
B. Composite key
C. Partial key
D. Weak key

Answer: B
Explanation:

A composite key contains two or more attributes that uniquely identify entity instances.

4. In a university ER model, “Section” is part of a “Course” and cannot exist independently. What is Section?

A. Strong entity
B. Composite attribute
C. Weak entity
D. Multivalued attribute

Answer: C
Explanation:

A section depends on the existence of a course, so it qualifies as a weak entity identified by a partial key and the course key.

5. A company wants to store that an employee mentors another employee. This is an example of:

A. Recursive relationship
B. Ternary relationship
C. Aggregation
D. Weak relationship

Answer: A
Explanation:

When an entity relates to itself, such as Employee ↔ Employee, it forms a recursive relationship.

6. Total participation of an entity in a relationship means:

A. Participation is optional
B. At least one entity participates
C. Every entity instance must participate
D. Only some instances participate

Answer: C
Explanation:

In total participation, every instance of the entity must take part in the relationship.

7. If two entities share a relationship that contains attributes, that relationship should be represented as:

A. Weak entity
B. Composite attribute
C. Associative entity
D. Derived entity

Answer: C
Explanation:

Attributes belonging to a relationship require converting the relationship into an associative entity.

8. A derived attribute is one that:

A. Is stored physically
B. Cannot be calculated
C. Is computed from other attributes
D. Must be multivalued

Answer: C
Explanation:

Derived attributes such as age (calculated from DOB) can be computed from stored values.

9. When converting an ER model to relations, a many-to-many relationship becomes:

A. A single table
B. Two tables
C. A table with foreign keys from both entities
D. A multivalued attribute

Answer: C
Explanation:

Many-to-many relationships convert into a separate table containing foreign keys from participating entities.

10. A specialization where an instance may belong to multiple subtypes simultaneously is:

A. Disjoint specialization
B. Overlapping specialization
C. Total specialization
D. Partial specialization

Answer: B
Explanation:

Overlapping specialization allows an entity (e.g., a student) to be in multiple subtypes such as Athlete and Scholar at the same time.