Engineering Questions with Answers - Multiple Choice Questions
Database MCQ – Entity-Relationship Diagrams
Which of the following gives a logical structure of the database graphically?
a) Entity-relationship diagram
b) Entity diagram
c) Database diagram
d) Architectural representation
Explanation: E-R diagrams are simple and clear—qualities that may well account in large part for the widespread use of the E-R model.
The entity relationship set is represented in E-R diagram as
a) Double diamonds
b) Undivided rectangles
c) Dashed lines
Explanation: Dashed lines link attributes of a relationship set to the relationship set.
The Rectangles divided into two parts represents
a) Entity set
b) Relationship set
c) Attributes of a relationship set
d) Primary key
Explanation: The first part of the rectangle, contains the name of the entity set. The second part contains the names of all the attributes of the entity set.
Consider a directed line(->) from the relationship set advisor to both entity sets instructor and student. This indicates _________ cardinality
a) One to many
b) One to one
c) Many to many
d) Many to one
Explanation: This indicates that an instructor may advise at most one student, and a student may have at most one advisor.
We indicate roles in E-R diagrams by labeling the lines that connect ___________ to __________
a) Diamond , diamond
b) Rectangle, diamond
c) Rectangle, rectangle
d) Diamond, rectangle
Explanation: Diamond represents a relationship set and rectangle represents a entity set.
An entity set that does not have sufficient attributes to form a primary key is termed a __________
a) Strong entity set
b) Variant set
c) Weak entity set
d) Variable set
Explanation: An entity set that has a primary key is termed a strong entity set.
For a weak entity set to be meaningful, it must be associated with another entity set, called the
a) Identifying set
b) Owner set
c) Neighbour set
d) Strong entity set
Explanation: Every weak entity must be associated with an identifying entity; that is, the weak entity set is said to be existence dependent on the identifying entity set. The identifying entity set is said to own the weak entity set that it identifies. It is also called as owner entity set.
Weak entity set is represented as
b) Double line
c) Double diamond
d) Double rectangle
Explanation: Weak entity set is represented as a double rectangle in entity relationship diagram.
If you were collecting and storing information about your music collection, an album would be considered a(n) _____
Explanation: An entity set is a logical container for instances of an entity type and instances of any type derived from that entity type.
What term is used to refer to a specific record in your music database; for instance; information stored about a specific album?
Explanation: The environment of database is said to be an instance. A database instance or an ‘instance’ is made up of the background processes needed by the database.