- In an enhanced entity-relationship (EER) model, what is the primary purpose of an entity?
a) To represent a real-world object or concept
b) To define the relationships between entities
c) To store data attributes
d) To create a hierarchy of entities
Answer: a) To represent a real-world object or concept
- What is a weak entity in an EER model?
a) An entity with a composite key
b) An entity that relies on another entity for identification
c) An entity with no relationship to other entities
d) An entity that cannot participate in relationships
Answer: b) An entity that relies on another entity for identification
- In an EER diagram, what does a diamond-shaped symbol represent?
a) A relationship between entities
b) An attribute of an entity
c) A weak entity
d) A composite attribute
Answer: a) A relationship between entities
- What is a derived attribute in an EER model?
a) An attribute that can be computed from other attributes
b) An attribute that cannot be null
c) An attribute that is dependent on the entity's identifier
d) An attribute with a multi-valued domain
Answer: a) An attribute that can be computed from other attributes
- What is a subtype in an EER model?
a) An entity that inherits attributes and relationships from a supertype
b) An attribute with multiple possible values
c) An entity that cannot participate in relationships
d) An entity with a one-to-one relationship
Answer: a) An entity that inherits attributes and relationships from a supertype
- What is the purpose of a weak relationship in an EER model?
a) To represent a one-to-one relationship between entities
b) To represent a strong connection between entities
c) To model a relationship that depends on the existence of a weak entity
d) To create a hierarchical structure of relationships
Answer: c) To model a relationship that depends on the existence of a weak entity
- What is the difference between a recursive relationship and a unary relationship in an EER model?
a) A recursive relationship involves multiple entity types, while a unary relationship involves a single entity type
b) A recursive relationship involves a weak entity, while a unary relationship involves a strong entity
c) A recursive relationship involves a many-to-many cardinality, while a unary relationship involves a one-to-one cardinality
d) A recursive relationship represents a relationship between instances of the same entity type, while a unary relationship represents a relationship between instances of different entity types
Answer: d) A recursive relationship represents a relationship between instances of the same entity type, while a unary relationship represents a relationship between instances of different entity types
- What is the purpose of a ternary relationship in an EER model?
a) To model a relationship between three weak entities
b) To model a relationship between three strong entities
c) To model a relationship that involves three attributes
d) To model a relationship that involves three entity types
Answer: d) To model a relationship that involves three entity types
- What is a total participation constraint in an EER model?
a) When an entity can participate in multiple relationships
b) When an entity is required to participate in a relationship
c) When an entity can exist without participating in any relationships
d) When an entity can exist without any attributes
Answer: b) When an entity is required to participate in a relationship
- What is a multivalued attribute in an EER model?
a) An attribute with multiple possible values
b) An attribute that cannot be null
c) An attribute that is dependent on the entity's identifier
d) An attribute with a derived value
Answer: a) An attribute with multiple possible values
- What is the purpose of a superclass in an EER model?
a) To contain common attributes and relationships for a group of entities
b) To limit the number of available attributes in an entity
c) To restrict the participation of entities in relationships
d) To create a one-to-one relationship between entities
Answer: a) To contain common attributes and relationships for a group of entities
- What is a disjoint subtype in an EER model?
a) A subtype that can exist independently of other subtypes
b) A subtype that shares attributes and relationships with other subtypes
c) A subtype that is created by a recursive relationship
d) A subtype that inherits attributes from multiple supertypes
Answer: a) A subtype that can exist independently of other subtypes
- What is the purpose of a composite attribute in an EER model?
a) To create a one-to-one relationship between attributes
b) To represent a relationship between attributes and entities
c) To represent a relationship between attributes
d) To combine multiple attributes into a single attribute
Answer: d) To combine multiple attributes into a single attribute
- What is a weak relationship in an EER model?
a) A relationship with a weak entity
b) A relationship with a composite key
c) A relationship that is dependent on the existence of a weak entity
d) A relationship between two weak entities
Answer: c) A relationship that is dependent on the existence of a weak entity
- What is a supertype in an EER model?
a) A parent entity that shares attributes and relationships with child entities
b) A parent entity that cannot participate in relationships
c) A parent entity that only has composite attributes
d) A parent entity that inherits attributes from multiple child entities
Answer: a) A parent entity that shares attributes and relationships with child entities
- What is a partial participation constraint in an EER model?
a) When an entity is required to participate in a relationship
b) When an entity can participate in multiple relationships
c) When an entity can exist without participating in any relationships
d) When an entity can exist without any attributes
Answer: c) When an entity can exist without participating in any relationships
- What is a multivalued relationship in an EER model?
a) A relationship with multiple possible values
b) A relationship that cannot be null
c) A relationship that is dependent on the existence of a weak entity
d) A relationship with a derived value
Answer: a) A relationship with multiple possible values
- What is an identifying relationship in an EER model?
a) A relationship that involves multiple entities
b) A relationship that relies on other relationships for identification
c) A relationship that is dependent on an entity's attributes
d) A relationship that involves a weak entity
Answer: c) A relationship that is dependent on an entity's attributes
- What is the purpose of a composite relationship in an EER model?
a) To create a relationship between attributes and entities
b) To combine multiple relationships into a single relationship
c) To represent a one-to-one relationship between relationships
d) To represent a relationship between attributes
Answer: b) To combine multiple relationships into a single relationship
- What is a total specialization constraint in an EER model?
a) When an entity is required to participate in a relationship
b) When an entity can participate in multiple relationships
c) When an entity can exist without participating in any relationships
d) When an entity can exist without any attributes
Answer: a) When an entity is required to participate in a relationship