Unit 7
Unit 7
1. An ________ is a set of entities of the same type that share the same properties, or attributes.
a) Entity set
b) Attribute set
c) Relation set
d) Entity model
View Answer
Answer: a
Explanation: An entity is a “thing” or “object” in the real world that is distinguishable from all other objects.
2. Entity is a _________
a) Object of relation
b) Present working model
c) Thing in real world
d) Model of relation
View Answer
Answer: c
Explanation: For example, each person in a university is an entity.
3. The descriptive property possessed by each entity set is _________
a) Entity
b) Attribute
c) Relation
d) Model
View Answer
Answer: b
Explanation: Possible attributes of the instructor entity set are ID, name, dept name, and salary.
4. The function that an entity plays in a relationship is called that entity’s _____________
a) Participation
b) Position
c) Role
d) Instance
View Answer
Answer: c
Explanation: A relationship is an association among several entities.
5. The attribute name could be structured as an attribute consisting of first name, middle initial, and last name. This
type of attribute is called
a) Simple attribute
b) Composite attribute
c) Multivalued attribute
d) Derived attribute
View Answer
Answer: b
Explanation: Composite attributes can be divided into subparts (that is, other attributes).
6. The attribute AGE is calculated from DATE_OF_BIRTH. The attribute AGE is
a) Single valued
b) Multi valued
c) Composite
d) Derived
View Answer
Answer: d
Explanation: The value for this type of attribute can be derived from the values of other related attributes or entities.
7. Not applicable condition can be represented in relation entry as
a) NA
b) 0
c) NULL
d) Blank Space
View Answer
Answer: c
Explanation: NULL always represents that the value is not present.
8. Which of the following can be a multivalued attribute?
a) Phone_number
b) Name
c) Date_of_birth
d) All of the mentioned
View Answer
Answer: a
Explanation: Name and Date_of_birth cannot hold more than 1 value.
9. Which of the following is a single valued attribute
a) Register_number
b) Address
c) SUBJECT_TAKEN
d) Reference
View Answer
Answer: a
Explanation: None.
10. In a relation between the entities the type and condition of the relation should be specified. That is called
as______attribute.
a) Desciptive
b) Derived
c) Recursive
d) Relative
View Answer
Answer: a
Explanation: Consider the entity sets student and section, which participate in a relationship set takes. We may wish to
store a descriptive attribute grade with the relationship to record the grade that a student got in the class.
Which of the following indicates the maximum number of entities that can be involved in a relationship?
Which type of entity cannot exist in the database unless another type of entity also exists in the database, but does
not require that the identifier of that other entity be included as part of its own identifier?
A. Weak entity
B. Strong entity C. ID-dependent entity D. ID- independent entity
3.
In a one-to-many relationship, the entity that is on the one side of the relationship is called a(n) ________ entity.
7.Which of the following refers to something that can be identified in the user's work environment, something
that the users want to track?
8.In which of the following is a single-entity instance of one type related to many entity instances of another
type?
9.Which of the following refers to an entity in which the identifier of one entity includes the identifier of another
entity?
Which type of entity is related to two or more associated entities that each contain specialized attributes that
apply to some but not all of the instances of the entity?
In which of the following can many entity instances of one type be related to many entity instances of another
type?
Which of the following is NOT a basic element of all versions of the E-R model?
In which of the following is a single-entity instance of one type of related to a single-entity instance of another
type?
Which type of entity has its relationship to another entity determined by an attribute in that other entity called a
discriminator?
Which type of entity represents a logical generalization whose actual occurrence is represented by a second,
associated entity?
In a one-to-many relationship, the entity that is on the many side of the relationship is called a(n) ________
entity.
An ID-dependent entity is an entity whose identifier is a composite identifier where no portion of the composite
identifier is an identifier of another entity.
A. True B. False2.
A ternary relationship is so called because in contains two entities and one association between them.
A. True B. False23.
A. True B. False24.
A minimum cardinality is the minimum number of entity instances that may participate in a relationship
instance.
A. True B. False
Solution: In the context of data modeling with the Entity-Relationship (ER) model, minimum cardinality refers to the
minimum number of entity instances that must participate in a relationship instance. It defines the minimum
requirement for participation in a relationship.
For example, in a "Customer" and "Order" relationship where a customer may place zero or more orders, the minimum
cardinality on the "Order" side would be zero, indicating that a customer can exist without placing any orders.
Conversely, if there was a requirement that every customer must place at least one order, the minimum cardinality on
the "Order" side would be one, indicating that every customer must have at least one associated order.
Therefore, the statement that Option A: True is correct because the minimum cardinality indeed represents the
minimum number of entity instances that may participate in a relationship instance.
A. True B. False26.
The degree of a relationship refers to the number of entity classes in the relationship.
A. True B. False27.
A. True B. False28.
A. True B. False
29.
When designing a database, first identify the entities, then determine the attributes, and finally establish the
relationships.
A. True B. False30.
A. True B. False31.
An entity is something that can be identified in the user's work environment; something that the users want to
track.
A. True B. False32.
A. True B. False33.
1:1, 1:N and N:M relationships are also known as HAS-A relationships.
A. True B. False34.
In a 1:N relationship, the parent is the entity on the one side of the relationship and the child is the entity on the
N side of the relationship.
A. True B. False35.
A maximum cardinality is the maximum number of entity instances that can participate in a relationship
instance.
A. True B. False36.
An entity class is a collection of entities and is described by the structure of the entities in that class.
A. True B. False37.
A. True B. False38.
A. True B. False39.
A. True B. False
40.
A. True B. False
1. An Entity is a________________
A. Relationship model
B. Relational Model
For example each person in an enterprise is an entity, an entity has a set of properties, and value for some set of properties may
uniquely identify an entity.
2. __________is a set of entities of same type that share the same properties or attributes.
A. Attributes set
B. Relationship Set
C. Entity Set
D. Property set
C. Entity Set
For example the set of all persons who are customers at Shopping mall can be defined as the entity set customer.
C. Model
A. Attributes
Attributes are descriptive properties possessed by each members of an entity set. the designation of an attributes for an entity set
expresses that the database stores similar information concerning each entity in the entity set. Each entity has a value for each of
its attributes
C. Domain
D. B and C
D. B and C
For example the domain of the attribute customer name might be the set of all strings of certain length .
5. In a Entity sets Customer and Loan, an Attribute name consisting of first-name ,middle-
name, and last-name. An Attribute name is _______
A. Simple Attribute
B. Composite Attribute
C. Single-Valued Attributes
D. Multi-valued Attributes
B. Composite Attribute
Simple attributes cannot be divided into sub parts on the other hand composite attributes can be divided into subparts.
6. For example Loan-number attribute for a specific loan entity set is referred to as
A. Simple Attribute
B. Composite Attribute
D. Multi-valued Attributes
7. Consider an employee entity set with the attribute phone-number, attribute phone-number
is a ________
A. Simple Attribute
B. Composite Attribute
D. Multi-valued Attributes
D. Multi-valued Attributes
An Employee may have zero, one or several phone numbers and different employees may have different numbers of phones.
8. For example, the customer entity set has an attribute loan-taken, which represents how
many loans a customer has from the bank, the attribute loan-taken is______
A. Derived Attribute
B. Composite Attribute
D. Multi-valued Attributes
A. Derived Attribute
The value for this type of attributes can be derived from the values of other related attributes or entities; we can derive the value
for this attribute by counting the numbers of loan entities associated with that customer.
9. An Attribute takes a ________value when an entity does not have a value for it.
A. Zero
B. 0
C. Null
D. Not Applicable
C. Null
The Null value may indicate not applicable that is that the value does not exist for the entity, for example one may have no last
name ,Null can also designates that an attribute value is not known or may be missing.
10. A______is a set of relationships of the same type among several entities
A. Key set
B. Value Set
C. Domain
D. Relationship
D. Relationship
Consider the two entities sets customer and loan, we define the relationship set borrower to denote the association between
customers and the bank loans that the customers have.
11. The Relationship sets that involve two entity sets in known as___
A. Unary Relationship set
B. Binary Relationship set
12. The number of Entity sets that participate in a relationship set is know as ____________
of Relationship
A. Cardinality Ratio
B. Mapping Cardinality
C. Degree
D. Participate
C. Degree
The number of entity sets that participate in a relationship set is known as the degree of relationship set. A binary relationship set
is of degree 2; a ternary relationship set is of degree 3.
1. An ER diagram can express the overall __________of a database graphically
A. View Structure
B. Logical Structure
C. Model Structure
D. Architectural structure
B. Logical Structure
C. Rectangle
D. Ellipses
3. Ellipses represent_________
A. Relationship sets
B. Attributes
C. Derived attributes
D. Multivalued attributes
B. Attributes
4. Diamond Represents______
A. Relationship sets
B. Attributes
C. Derived attributes
D. Multi-valued attributes
A. Relationship sets
5. Which of the following diagram link attributes to entity sets and entity sets to relationship
sets?
A. Double lines
B. Dashed Ellipses
C. Double ellipses
D. Lines
D. Lines
B. Multi-valued Attributes
A. Derived attributes
Double lines are used in ER diagram to indicate that the participation of an entity set in a relationship set is total: that is each
entity in the entity set occurs in at least one relationship in that relationship set. For example consider the relationship borrower
between customers and loans. A double line from loan to borrower indicates that each loan must have at least one associated
customer.
10. Consider the entity relationship which consists of two entity sets, customer and loan,
related through a binary relationship set borrower. A directed line(->) from the relationship
set borrower to the entity set loan specified that borrower is either a_________ or _______
relationship.
A. One to one, many to one
B. many to many, one to many
11. Consider the entity relationship which consists of two entity sets, customer and loan,
related through a binary relationship set borrower. An undirected line (--) from the
relationship set borrower to the entity set loan specifies that borrower is either a __________
or __________relationship set from customer to loan.
A. One to one, many to one
B. many to many, one to many
12. An Edge between a entity set and a binary relationship set can have an associated
minimum and maximum cardinality, shown in the form of l and h, where l is the minimum and
h is the maximum cardinality. What a minimum Cardinality value of 1 indicates?
A. Partial Participation of the entity set in the relationship
B. Total Participation of the entity set in the relationship
D. No limit on participation
13. An Edge between a entity set and a binary relationship set can have an associated
minimum and maximum cardinality, shown in the form of l and h, where l is the minimum and
h is the maximum cardinality. What a Maximum Cardinality value of 1 indicates?
A. Partial Participation of the entity set in the relationship
B. Total Participation of the entity set in the relationship
D. No limit on participation
14. An Edge between a entity set and a binary relationship set can have an associated
minimum and maximum cardinality, shown in the form of l and h, where l is the minimum and
h is the maximum cardinality. What a Maximum Cardinality value of * indicates?
A. Partial Participation of the entity set in the relationship
B. Total Participation of the entity set in the relationship
D. No limit on participation
D. No limit on participation
15. An entity set may not have sufficient attributes to form a primary key; such an entity set
is termed as______
A. Strong Entity set
B. Weak Entity set
For example consider the entity set payment, which has the three attributes; payment –number, payment-date, and payment-
amount. Payment-numbers are typically sequence numbers, starting from 1.generated separately for each loan. Thus although
each payment entity is distinct, payment for different loan may share the same payment numbers. Thus this entity set does not
have a primary key; it is weak entity set.
16. An entity set that has attributes to form a primary key; such an entity set is termed
as______
A. Strong Entity set
B. Weak Entity set
17. For a weak entity set to be meaningful, it must be associated with another entity set
called the ___________
A. Strong entity set
B. stronger entity set
4. 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
View Answer
Answer: b
Explanation: This indicates that an instructor may advise at most one student, and a student may have at most one advisor.
5. 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
View Answer
Answer: d
Explanation: Diamond represents a relationship set and rectangle represents a entity set.
6. 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
View Answer
Answer: c
Explanation: An entity set that has a primary key is termed a strong entity set.
7. 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
View Answer
Answer: a
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.
10. What term is used to refer to a specific record in your music database; for instance; information stored about a specific
album?
a) Relation
b) Instance
c) Table
d) Column
View Answer
Answer: b
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.
1.Consider the following ER diagram depicting the relationship of an employee and supervisor:
What is the possible relation if the above ERD is mapped into a relational model?
Answer:
Option (d)
2. The methodology for documenting databases illustrating the relationship between various entities in the database is
Answer:
Option (c)
3. An entity set that does not have sufficient attributes to form a primary key is a
Answer:
Option (b)
4. In an E-R diagram attributes are represented by
(a) Rectangle
(b) Square
(c) Ellipse
(d) Triangle
Answer:
Option (c)
5. In an E-R diagram an entity set is represent by a
(a) Rectangle
(b) Ellipse
(c) Diamond box
(d) Circle
Answer:
Option (a)
6. E-R model uses which symbol to represent weak entity set ?
Answer:
Option (c)
7. Which of the following are the properties of entities?
(a) Groups
(b) Table
(c) Attributes
(d) Switchboards
Answer:
Option (c)
8. In E-R Diagram derived attribute are represented by _________
(a) Ellipse
(b) Dashed ellipse
(c) Rectangle
(d) Triangle
Answer:
Option (b)
9. In E-R Diagram relationship type is represented by ______________
(a) Ellipse
(b) Dashed ellipse
(c) Rectangle
(d) Diamond
Answer:
Option (d)
10. In E-R diagram generalization is represented by
(a) Ellipse
(b) Dashed ellipse
(c) Rectangle
(d) Triangle
Answer:
Option (d)
11. An entity type whose existence depends on another entity type is called a _____ entity
(a) Strong
(b) Weak
(c) Codependent
(d) Variant
Answer:
Option (b)
12. A property or characteristic of an entity type that is of interest to the organization is called an _________
(a) Attribute
(b) Coexisting entity
(c) Relationship
(d) Cross-function
Answer:
Option (a)
13. Attribute which can be devided in to the subparts are called ___________
(a) simple
(b) composite
(c) multivalued
(d) derived
Answer:
Option (b)
14. Attributes having more than one values are called ___________
(a) simple
(b) composite
(c) multivalued
(d) derived
Answer:
Option (c)
15. Attributes whose values are derived from other attributes are called _______
(a) simple
(b) composite
(c) multivalued
(d) derived
Answer:
Option (d)
16. Graphical representation of attributes and their relationship is called _______
Answer:
Option (b)
17. _______ represent the no of entities of another entity set which are connected to an entity using a relationship set.
Answer:
Option (a)
18. There are _______ types of mapping cardinality
(a) 1
(b) 2
(c) 3
(d) 4
Answer:
Option (d)
19. ________ is an entity from which another entity can be derived.
Answer:
Option (a)
20. ________ is an entity which can be derived another entity.
Answer:
Option (b)
21. Specilization proceed in which manner?
Answer:
Option (a)
22. Generalization proceed in which manner?
Answer:
Option (b)
23. Generalization is inverse of the _________
Answer:
Option (a)
25. A recursive relationship is a relationship between an entity and _______
(a) Itself
(b) subtype entity
(c) supertype entity
(d) instant entity
Answer:
Option (a)
26. Properties that describe the characteristic of an entities are called _____________
(a) Entities
(b) Attributes
(c) Indentifier
(d) Relationship
Answer:
Option (b)
27. Entities of same type are grouped into _________
(a) database
(b) Entityset
(c) Attributes
(d) ERD
Answer:
Option (b)
28. An entity is a _____________
(a) Student
(b) Professor
(c) Car
(d) Name
Answer:
Option (d)
30. Which of the following is not an attributes of Student entity.
(a) Name
(b) Address
(c) Age
(d) Salary
Answer:
Option (d)
31. Relationship between 2 entities is called relationship.
(a) Unary
(b) Binary
(c) Ternary
(d) Quatary
Answer:
Option (b)
32. Relationship between 3 entities is called _________relationship.
(a) Unary
(b) Binary
(c) Ternary
(d) Quatarnary
Answer:
Option (c)
33. Which of the following atrribute is Composite Attribute?
(a) Name
(b) Mobile Number
(c) Salary
(d) City
Answer:
Option (a)
34. Which of the following is an Multi-valued attribute?
(a) Rollno
(b) Age
(c) Phoneno
(d) Birthdate
Answer:
Option (c)
35. Which of the following is an Derived attribute?
(a) Age
(b) Birthdate
(c) Salary
(d) Phoneno
Answer:
Option (a)
36. Attributes of the relationship is called __________ attribute.
(a) Double
(b) Single
(c) Named
(d) Descriptive
Answer:
Option (d)
37. The same entity participates in a relationship set more than once then it is called _________
Answer:
Option (b)
38. Below given is an example of which mapping cardinality?
A customer is connected with only one loan using the relationship borrower and a loan is connected
Answer:
Option (a)
39. Below given is an example of which mapping cardinality?
A loan is connected with only one customer using borrower and a customer is connected with more than one loans using borrower.
Answer:
Option (b)
40. Below given is an example of which mapping cardinality?
A customer is connected with more than one loan using borrower and a loan is connected with more than
Answer:
Option (d)
1. ____ Data refers to describing the data description, representing data semantics, and describing the
consistency constraints that apply to the data.
A. Adding
B. Modifying
C. Modeling
D. Refining
Answer: C) Modeling
Explanation:
Modeling data refers to describing the data description, representing data semantics, and describing the
consistency constraints that apply to the data.
A. 1
B. 2
C. 3
D. 4
Answer: D) 4
Explanation:
C. Entity-Relationship Model
Explanation:
Process-based Data Model does not come under the type of data models.
A. Within a table, rows and columns are used to arrange the data.
B. As data, objects, and relationships among them are represented logically in this model.
C. Functions, encapsulation, and object identity are also considered in addition to the ER model.
D. These data models facilitate data specifications where different attributes are defined for the same
data items of the same type.
Answer: A) Within a table, rows and columns are used to arrange the data
Explanation:
Within a table, rows and columns are used to arrange the data in the Relational Data Model.
A. Tables are used in relational models to represent data and the relationships between them.
B. Edgar F. Codd presented this model in 1969.
C. Most commercial data processing applications use the relational data model.
Explanation:
i. Tables are used in relational models to represent data and the relationships between them.
ii. Edgar F. Codd presented this model in 1969.
iii. Most commercial data processing applications use the relational data model.
6. As data objects and relationships among them are represented logically in an ______.
C. Object-based Model
Answer: B) ER Model
Explanation:
As data objects and relationships among them are represented logically in an ER model.
C. Bond
D. Joint
Answer: D) Joint
Explanation:
A. Relationship Set
B. Entity Set
C. ER Set
Explanation:
Explanation:
Explanation:
11. Data specifications can be specified when the same-type data items have different attributes, as
in a ____ model.
C. ER Model
Explanation:
Data specifications can be specified when the same-type data items have different attributes, as in a semi-
structured model.
In many cases, semi-structured data is represented using Extensible Markup Language, or XML.
A. Data Definition
B. Data Manipulation
C. Data Models
D. Data Redundancy
Explanation:
A. Schema
B. Instance
C. Instant
D. Scheme
Answer: B) Instance
Explanation:
A. Schema
B. Instance
C. Design
D. Structure
Answer: A) Schema
Explanation:
16. Data schemas represent the skeleton structure of a database. They represent the ___ of the
database as a whole.
A. Analytical View
B. Logical View
C. Semantic View
D. Practical View
Explanation:
Data schemas represent the skeleton structure of a database. They represent the logical view of the
database as a whole.
A. Primary Key
B. Foreign Key
C. Views
Explanation:
The types of schema objects present in the schema are primary key, foreign key, views, columns, data types,
table & stored procedure, etc.
A. Data Creation
B. Data Processing
C. Data Modelling
D. Data Defining
Explanation:
A. Record Type
B. Data Type
C. Constraints
Explanation:
The aspects of schema that can be displayed in the schema diagram are record type, data type, and
constraints.
20. ____ are designed by database designers to facilitate communications between the database and
the software.
A. Database Instances
B. Database Schemas
C. Database Roles
D. Database Structure
Explanation:
Database schemas are designed by database designers to facilitate communications between the database
and the software.
A. Visual
B. Logical
C. Analytical
D. Structural
Answer: A) Visual
Explanation:
22. Objects and relationships between _____ are shown through the visual diagrams.
A. Tables
B. Rows
C. Columns
D. Databases
Answer: D) Databases
Explanation:
Objects and relationships between databases are shown through the visual diagrams.