7 Lecture
CS403
Midterm & Final Term Short Notes
Entity-Relationship Data Model
The Entity-Relationship (ER) Data Model is a conceptual data model used to describe and analyze the data requirements and relationships within a system or organization. It represents the entities (objects or concepts) and their relationships wit
Important Mcq's
Midterm & Finalterm Prepration
Past papers included
Download PDF
Which of the following is a symbol used in an ER diagram to represent an entity? a) Circle b) Triangle c) Rectangle d) Diamond Answer: c) Rectangle In an ER diagram, what does a line with an arrow at one end represent? a) A one-to-one relationship b) A many-to-one relationship c) A one-to-many relationship d) A many-to-many relationship Answer: b) A many-to-one relationship Which of the following is NOT a cardinality constraint in an ER diagram? a) One-to-one b) One-to-many c) Many-to-one d) Many-to-many Answer: c) Many-to-one In an ER diagram, a weak entity is represented by: a) A rectangle with rounded corners b) A rectangle with double lines c) A rectangle with a dashed border d) A rectangle with a triangle in the corner Answer: c) A rectangle with a dashed border In an ER diagram, which of the following represents an attribute of an entity? a) Circle b) Triangle c) Rectangle d) Diamond Answer: a) Circle Which of the following is an example of a relationship in an ER diagram? a) Employee b) Salary c) Department d) Address Answer: c) Department In an ER diagram, a ternary relationship involves how many entities? a) One b) Two c) Three d) Four Answer: c) Three Which of the following is NOT a type of relationship in an ER diagram? a) Unary b) Binary c) Ternary d) Quadratic Answer: d) Quadratic In an ER diagram, what does a double line between entities represent? a) A one-to-one relationship b) A many-to-one relationship c) A one-to-many relationship d) A many-to-many relationship Answer: d) A many-to-many relationship In an ER diagram, what does a diamond shape represent? a) An entity b) An attribute c) A relationship d) A key Answer: c) A relationship
Subjective Short Notes
Midterm & Finalterm Prepration
Past papers included
Download PDF
What is an Entity-Relationship (ER) Data Model? Answer: The ER Data Model is a conceptual data model used to describe and analyze the data requirements and relationships within a system or organization. What is an entity in an ER diagram? Answer: An entity represents an object or concept in the system or organization being modeled. What is a relationship in an ER diagram? Answer: A relationship represents an association between two or more entities in the system or organization being modeled. What is a cardinality constraint in an ER diagram? Answer: A cardinality constraint specifies the number of instances of one entity that can be related to the number of instances of another entity in a relationship. What is an attribute in an ER diagram? Answer: An attribute is a characteristic or property of an entity, such as its name, age, or address. What is a weak entity in an ER diagram? Answer: A weak entity is an entity that cannot be uniquely identified by its own attributes and must be identified by its relationship with another entity. What is a primary key in an ER diagram? Answer: A primary key is a unique identifier for an entity that is used to distinguish it from other entities. What is a foreign key in an ER diagram? Answer: A foreign key is a reference to the primary key of another entity used to establish a relationship between the two entities. What is a subtype in an ER diagram? Answer: A subtype is a specialized version of an entity that inherits some of its attributes and relationships. What is a supertype in an ER diagram? Answer: A supertype is a generalization of one or more entities that have common attributes and relationships.