Q. In an ER model, how is a one-to-many relationship typically represented?
-
A.
With a single line connecting two entities
-
B.
With a crow's foot notation
-
C.
With a dashed line
-
D.
With a double line
Solution
A one-to-many relationship is typically represented with a crow's foot notation.
Correct Answer:
B
— With a crow's foot notation
Learn More →
Q. In an ER model, what does a solid line between two entities indicate?
-
A.
A weak relationship
-
B.
A strong relationship
-
C.
A one-to-many relationship
-
D.
A many-to-many relationship
Solution
A solid line between two entities indicates a strong relationship in an ER model.
Correct Answer:
B
— A strong relationship
Learn More →
Q. In an ER model, what does a solid line connecting two entities represent?
-
A.
A weak relationship
-
B.
A strong relationship
-
C.
An attribute
-
D.
A foreign key constraint
Solution
A solid line connecting two entities in an ER model represents a strong relationship.
Correct Answer:
B
— A strong relationship
Learn More →
Q. What does the term 'cardinality' refer to in an ER model?
-
A.
The number of attributes in an entity
-
B.
The number of entities in a relationship
-
C.
The type of data stored in an entity
-
D.
The uniqueness of an entity
Solution
Cardinality refers to the number of entities involved in a relationship.
Correct Answer:
B
— The number of entities in a relationship
Learn More →
Q. What is a business rule in the context of an ER model?
-
A.
A guideline for database performance
-
B.
A constraint that defines how data can be created, stored, and modified
-
C.
A method for indexing data
-
D.
A type of transaction control
Solution
A business rule defines constraints on how data can be created, stored, and modified in a database.
Correct Answer:
B
— A constraint that defines how data can be created, stored, and modified
Learn More →
Q. What is a weak entity in an ER model?
-
A.
An entity that cannot exist without a strong entity
-
B.
An entity with no attributes
-
C.
An entity that has a composite key
-
D.
An entity that is not related to any other entity
Solution
A weak entity is one that cannot exist without a strong entity.
Correct Answer:
A
— An entity that cannot exist without a strong entity
Learn More →
Q. What is the main goal of creating an ER model?
-
A.
To define the physical structure of the database
-
B.
To visualize the data requirements and relationships
-
C.
To write SQL queries
-
D.
To implement security measures
Solution
The main goal of creating an ER model is to visualize the data requirements and relationships.
Correct Answer:
B
— To visualize the data requirements and relationships
Learn More →
Q. What is the main goal of using an ER model in database design?
-
A.
To create complex SQL queries
-
B.
To visually represent data and relationships
-
C.
To enforce data integrity
-
D.
To optimize database performance
Solution
The main goal of using an ER model is to visually represent data and the relationships between them.
Correct Answer:
B
— To visually represent data and relationships
Learn More →
Q. What is the primary key in an entity?
-
A.
A unique identifier for each record
-
B.
An attribute that can be null
-
C.
A foreign key from another entity
-
D.
An attribute that is not used in relationships
Solution
The primary key is a unique identifier for each record in an entity.
Correct Answer:
A
— A unique identifier for each record
Learn More →
Q. What is the purpose of a foreign key in a database?
-
A.
To uniquely identify a record
-
B.
To establish a link between two tables
-
C.
To enforce data integrity
-
D.
To improve query performance
Solution
A foreign key is used to establish a link between two tables in a database.
Correct Answer:
B
— To establish a link between two tables
Learn More →
Q. What is the role of an attribute in an ER model?
-
A.
To represent a relationship
-
B.
To define the properties of an entity
-
C.
To serve as a primary key
-
D.
To enforce data integrity
Solution
An attribute defines the properties or characteristics of an entity in an ER model.
Correct Answer:
B
— To define the properties of an entity
Learn More →
Q. Which of the following best describes a business rule?
-
A.
A guideline for database design
-
B.
A constraint on data values
-
C.
A policy that governs data usage
-
D.
All of the above
Solution
A business rule can be a guideline, a constraint, or a policy regarding data.
Correct Answer:
D
— All of the above
Learn More →
Q. Which of the following best describes a primary key?
-
A.
A unique identifier for a record in a table
-
B.
A foreign key that links to another table
-
C.
An attribute that can have null values
-
D.
A composite of multiple attributes
Solution
A primary key is a unique identifier for a record in a table.
Correct Answer:
A
— A unique identifier for a record in a table
Learn More →
Q. Which of the following is a characteristic of a strong entity?
-
A.
It has a partial key
-
B.
It can exist independently
-
C.
It is represented by a dashed rectangle
-
D.
It has no attributes
Solution
A strong entity can exist independently and has its own primary key.
Correct Answer:
B
— It can exist independently
Learn More →
Q. Which of the following is an example of an attribute in an ER model?
-
A.
Customer
-
B.
Orders
-
C.
OrderID
-
D.
Many-to-Many
Solution
OrderID is an example of an attribute in an ER model.
Correct Answer:
C
— OrderID
Learn More →
Showing 1 to 15 of 15 (1 Pages)