data Flashcards
What does ERD stand for?
o A) Entity Relationship Data
o B) Entity Relational Diagram
o C) Entity Relationship Diagram
o D) Entity Realization Diagram
Entity Relationship Diagram
Which symbol is commonly used to represent an entity in an ERD?
o A) Rectangle
o B) Oval
o C) Diamond
o D) Triangle
Rectangle
What does a relationship represent in an ERD?
o A) A unique identifier
o B) A connection between entities
o C) An attribute of an entity
o D) A database table
A connection between entities
Which symbol represents a relationship in an ERD?
o A) Rectangle
o B) Oval
o C) Diamond
o D) Triangle
Diamond
What is the purpose of attributes in an ERD?
o A) To define the relationships
o B) To describe the properties of an entity
o C) To create entities
o D) To link tables
To describe the properties of an entity
What type of attribute can have multiple values?
o A) Simple attribute
o B) Composite attribute
o C) Multi-valued attribute
o D) Derived attribute
Multi-valued attribute
Which of the following best describes a composite attribute?
o A) An attribute with a unique value
o B) An attribute that can be broken down into smaller parts
o C) An attribute that is calculated from other attributes
o D) An attribute that can have multiple values
An attribute that can be broken down into smaller parts
What is the role of a foreign key in a database?
o A) To uniquely identify a record
o B) To link two tables together
o C) To provide data integrity
o D) To define an attribute
To link two tables together
What is the cardinality of a relationship?
o A) The number of entities involved
o B) The type of relationship
o C) The number of attributes in an entity
o D) The number of relationships in a diagram
The number of entities involved
What does an oval represent in an ERD?
o A) An entity
o B) An attribute
o C) A relationship
o D) A weak entity
An attribute
In ER modeling, what does ‘normalization’ refer to?
o A) Simplifying the diagram
o B) Organizing data to reduce redundancy
o C) Creating more entities
o D) Adding more attributes
Organizing data to reduce redundancy
What is a derived attribute?
o A) An attribute that is static
o B) An attribute calculated from other attributes
o C) An attribute that can have multiple values
o D) An attribute that is always unique
An attribute calculated from other attributes
Which of the following is NOT a type of relationship in an ERD?
o A) One-to-one
o B) One-to-many
o C) Many-to-zero
o D) Many-to-many
Many-to-zero
Which of the following best describes a ‘one-to-one’ relationship?
o A) One entity relates to many entities
o B) Each entity relates to exactly one other entity
o C) Many entities relate to many entities
o D) One entity relates to zero entities
Each entity relates to exactly one other entity
Which of the following is a characteristic of a primary key?
o A) It can contain duplicate values
o B) It can be null
o C) It must be unique for each record
o D) It is always an auto-increment field
It must be unique for each record
Which of the following is true about weak entities?
o A) They can exist independently.
o B) They depend on a strong entity.
o C) They have their own primary key.
o D) They cannot have relationships.
They depend on a strong entity
What is the significance of an ‘attribute type’?
o A) It defines the relationships between entities.
o B) It determines how data is stored.
o C) It categorizes attributes based on their functionality.
o D) It specifies the cardinality of a relationship.
It determines how data is stored
Which type of diagram is used to visually represent entities and their relationships?
o A) Flowchart
o B) ERD
o C) UML diagram
o D) Class diagram
ERD
What is the purpose of an ERD in database design?
o A) To document data flow
o B) To illustrate data relationships
o C) To define user interfaces
o D) To create backup plans
To illustrate data relationships
Which of the following is an example of a multi-valued attribute?
o A) Date of birth
o B) Phone numbers
o C) Email address
o D) Employee ID
Phone numbers
What does it mean when an entity is represented with a rounded rectangle?
o A) It is a weak entity.
o B) It is an associative entity.
o C) It is an attribute.
o D) It is a strong entity.
It is a strong entity
not sure
not sure 8aleban c mesh d
Which of the following correctly represents a ‘one-to-many’ relationship?
o A) 1:1
o B) 1:N
o C) M:N
o D) N:1
1:N
What is a composite key?
o A) A key composed of multiple attributes
o B) A key that is derived from other attributes
o C) A single attribute key
o D) A key that is always unique
A key composed of multiple attributes
What does a ‘relationship attribute’ represent?
o A) An identifier for the relationship
o B) A property of the relationship
o C) A composite attribute
o D) An entitys primary key
A property of the relationship