Lec - 4 MCQ

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 9

Lecture 4

Topic: Entity-Relationship (ER) Model

1. What is the purpose of the ER model?

a) To collect and analyze data requirements

b) To design high-level conceptual data models

c) To represent entities, attributes, and relationships

d) All of the above

Answer: d) All of the above

2. How are entities represented in the ER model?

a) By rectangles

b) By ovals

c) By diamonds

d) By double rectangles

Answer: a) By rectangles

3. What is an entity occurrence?

a) A unique object of an entity

b) A physical object in the real world

c) A conceptual object with independent existence

d) A record or tuple of an entity

Answer: d) A record or tuple of an entity

4. What are attributes in the ER model?


1
a) Particular properties that describe entities

b) Relationships between entities

c) Constraints on entities

d) All of the above

Answer: a) Particular properties that describe entities

5. How are attributes represented in the ER model?

a) By rectangles

b) By ovals

c) By diamonds

d) By double ovals

Answer: b) By ovals

Topic: Attribute Types

6. What is a composite attribute?

a) An attribute that describes multiple properties

b) An attribute with multiple values

c) An attribute that can be derived from another attribute

d) An attribute that is both composite and multivalued

Answer: a) An attribute that describes multiple properties

7. What is a multivalued attribute?

a) An attribute that describes multiple properties

b) An attribute with multiple values

c) An attribute that can be derived from another attribute


2
d) An attribute that is both composite and multivalued

Answer: b) An attribute with multiple values

8. What is a derived attribute?

a) An attribute that describes multiple properties

b) An attribute with multiple values

c) An attribute that can be derived from another attribute

d) An attribute that is both composite and multivalued

Answer: c) An attribute that can be derived from another attribute

9. What is a complex attribute?

a) An attribute that describes multiple properties

b) An attribute with multiple values

c) An attribute that can be derived from another attribute

d) An attribute that is both composite and multivalued

Answer: d) An attribute that is both composite and multivalued

10. How is a complex attribute represented in the ER model?

a) By rectangles

b) By ovals

c) By diamonds

d) By double ovals

Answer: d) By double ovals

Topic: Key Attribute

11. What is a key attribute in the ER model?


3
a) An attribute with multiple values

b) An attribute that can be derived from another attribute

c) An attribute that uniquely identifies each entity in an entity set

d) An attribute that describes multiple properties

Answer: c) An attribute that uniquely identifies each entity in an entity set

12. Can an entity type have multiple key attributes?

a) Yes

b) No

Answer: a) Yes

13. How are key attributes represented in the ER model?

a) By solid lines under the attribute

b) By dotted lines under the attribute

c) By rectangles

d) By ovals

Answer: a) By solid lines under the attribute

Topic: Weak Entity Types

14. What is a weak entity type?

a) An entity type without any attributes

b) An entity type with key attributes from another entity type

c) An entity type with total participation constraint

d) An entity type represented by double rectangles

Answer: b) An entity type with key attributes from another entity type
4
15. How are weak entity types represented in the ER model?

a) By rectangles

b) By ovals

c) By diamonds

d) By double rectangles

Answer: d) By double rectangles

16. Give an example of a weak entity type.

a) Hotel/room

b) Employee/department

c) Student/course

d) Parent/child

Answer: a) Hotel/room

17. What is a relationship set in the ER model?

a) A set of relationships between entities

b) A set of attributes for an entity

c) A set of entities

d) A set of constraints

Answer: a) A set of relationships between entities

18. How are relationship sets represented in the ER model?

a) By rectangles

b) By ovals

c) By diamonds
5
d) By double diamonds

Answer: c) By diamonds

19. What is a degree of a relationship set?

a) The number of entities involved in the relationship

b) The number of attributes for an entity

c) The number of entities in the entity set

d) The number of constraints

Answer: a) The number of entities involved in the relationship

20. What is a binary relationship set?

a) A relationship set with two entities

b) A relationship set with one entity

c) A relationship set with three or more entities

d) A relationship set with no entities

Answer: a) A relationship set with two entities

21. What is a ternary relationship set?

a) A relationship set with two entities

b) A relationship set with one entity

c) A relationship set with three or more entities

d) A relationship set with no entities

Answer: c) A relationship set with three or more entities

22. What is a recursive relationship set?

a) A relationship set between two different entities


6
b) A relationship set between the same entity

c) A relationship set with no entities

d) A relationship set with three or more entities

Answer: b) A relationship set between the same entity

23. What is a one-to-one relationship set?

a) A relationship set where each entity is related to only one other entity

b) A relationship set where each entity is related to many other entities

c) A relationship set where many entities are related to one entity

d) A relationship set where many entities are related to many other entities

Answer: a) A relationship set where each entity is related to only one other entity

24. What is a one-to-many relationship set?

a) A relationship set where each entity is related to only one other entity

b) A relationship set where each entity is related to many other entities

c) A relationship set where many entities are related to one entity

d) A relationship set where many entities are related to many other entities

Answer: c) A relationship set where many entities are related to one entity

25. What is a many-to-many relationship set?

a) A relationship set where each entity is related to only one other entity

b) A relationship set where each entity is related to many other entities

c) A relationship set where many entities are related to one entity

d) A relationship set where many entities are related to many other entities

Answer: d) A relationship set where many entities are related to many other entities
7
26. What is a participation constraint in the ER model?

a) A constraint that specifies the minimum number of entities that must participate in a
relationship

b) A constraint that specifies the maximum number of entities that can participate in a
relationship

c) A constraint that specifies the minimum and maximum number of entities that can
participate in a relationship

d) A constraint that specifies the attributes of an entity

Answer: a) A constraint that specifies the minimum number of entities that must
participate in a relationship

27. What is a total participation constraint in the ER model?

a) A constraint that specifies that all entities of an entity type must participate in a
relationship

b) A constraint that specifies that only some entities of an entity type can participate in
a relationship

c) A constraint that specifies the minimum number of entities that must participate in a
relationship

d) A constraint that specifies the maximum number of entities that can participate in a
relationship

Answer: a) A constraint that specifies that all entities of an entity type must participate
in a relationship

28. What is a partial participation constraint in the ER model?

a) A constraint that specifies that all entities of an entity type must participate in a
relationship

b) A constraint that specifies that only some entities of an entity type can participate in
a relationship

8
c) A constraint that specifies the minimum number of entities that must participate in a
relationship

d) A constraint that specifies the maximum number of entities that can participate in a
relationship

Answer: b) A constraint that specifies that only some entities of an entity type can
participate in a relationship

29. What is a relationship attribute in the ER model?

a) An attribute that describes a relationship between entities

b) An attribute that describes a property of an entity

c) An attribute that uniquely identifies a relationship

d) An attribute that is both composite and multivalued

Answer: a) An attribute that describes a relationship between entities

30. What is a relationship entity in the ER model?

a) An entity that describes a relationship between entities

b) An entity that describes a property of an entity

c) An entity that uniquely identifies a relationship

d) An entity that is both composite and multivalued

Answer: a) An entity that describes a relationship between entities

You might also like