✔ Scroll down and test yourself — answers are hidden under the “View Answer” button.
A. As a simple attribute of Patient
B. As a multivalued attribute
C. As a weak entity
D. As a derived attribute
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.
A. Store price in Product
B. Store price in Supplier
C. Use a ternary entity
D. Create an associative entity Product_Supplier
Explanation:
The price depends on the pair (Product, Supplier), so an associative entity is required to store relationship attributes like price.
A. Prime key
B. Composite key
C. Partial key
D. Weak key
Explanation:
A composite key contains two or more attributes that uniquely identify entity instances.
A. Strong entity
B. Composite attribute
C. Weak entity
D. Multivalued attribute
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.
A. Recursive relationship
B. Ternary relationship
C. Aggregation
D. Weak relationship
Explanation:
When an entity relates to itself, such as Employee ↔ Employee, it forms a recursive relationship.
A. Participation is optional
B. At least one entity participates
C. Every entity instance must participate
D. Only some instances participate
Explanation:
In total participation, every instance of the entity must take part in the relationship.
A. Weak entity
B. Composite attribute
C. Associative entity
D. Derived entity
Explanation:
Attributes belonging to a relationship require converting the relationship into an associative entity.
A. Is stored physically
B. Cannot be calculated
C. Is computed from other attributes
D. Must be multivalued
Explanation:
Derived attributes such as age (calculated from DOB) can be computed from stored values.
A. A single table
B. Two tables
C. A table with foreign keys from both entities
D. A multivalued attribute
Explanation:
Many-to-many relationships convert into a separate table containing foreign keys from participating entities.
A. Disjoint specialization
B. Overlapping specialization
C. Total specialization
D. Partial specialization
Explanation:
Overlapping specialization allows an entity (e.g., a student) to be in multiple subtypes such as Athlete and Scholar at the same time.
No comments:
Post a Comment