Generalization in database management system: 26 MCQs with answers
All 26 multiple-choice questions from this kit, free and with no sign-up.
Warm-up · 6 questions
Q1. In the context of ER modeling, what is generalization?
BeginnerShow answer & explanation
The process of defining a more general entity type from a set of more specialized entity types.
Generalization is a top-down approach in ER modeling where common attributes of multiple entity types are abstracted into a higher-level (superclass) entity type.
Q2. Which of the following best describes the direction of generalization?
BeginnerShow answer & explanation
From subclass to superclass
Generalization proceeds from specialized entity types (subclasses) upward to a more general entity type (superclass), identifying commonalities.
Q3. In generalization, the higher-level entity type is called a:
BeginnerShow answer & explanation
Superclass
The higher-level entity type resulting from generalization is the superclass, while the specialized types are subclasses.
Q4. In a generalization hierarchy, what is an 'inheritance'?
BeginnerShow answer & explanation
Subclasses inherit attributes and relationships from the superclass.
In generalization, subclasses automatically have all the attributes and relationships of the superclass, which is known as inheritance.
Q5. Generalization is a top-down process in ER modeling.
BeginnerShow answer & explanation
False
Generalization is a bottom-up process, combining subclasses into a superclass. Specialization is top-down.
Q6. In a disjoint generalization, an entity can belong to multiple subclasses at the same time.
BeginnerShow answer & explanation
False
Disjoint means an entity can belong to at most one subclass, not multiple.
Building up · 15 questions
Q7. Which of the following is an example of generalization?
IntermediateShow answer & explanation
Defining 'Vehicle' as a superclass of 'Car' and 'Truck'
Generalization identifies common features of 'Car' and 'Truck' to form a more general 'Vehicle' entity type. The other options do not represent generalization.
Q8. What is the primary purpose of generalization in database design?
IntermediateShow answer & explanation
To capture commonalities among entity types and simplify the model
Generalization helps in abstracting common attributes and relationships, making the model cleaner and reducing duplication in the schema.
Q9. In the context of generalization, what is a 'disjoint' constraint?
IntermediateShow answer & explanation
An entity can belong to at most one subclass.
A disjoint constraint specifies that an entity instance can be a member of at most one of the subclasses in the generalization.
Q10. Which of the following constraints determines whether every superclass entity must be a member of at least one subclass?
IntermediateShow answer & explanation
Completeness
Completeness (or total specialization) requires that every superclass entity belongs to at least one subclass; partial specialization allows some entities to not belong to any subclass.
Q11. In a total specialization, every superclass entity must be a member of at least one subclass. This is also known as:
IntermediateShow answer & explanation
Total specialization
Total specialization means the superclass is completely covered by its subclasses; every superclass entity is also a member of some subclass.
Q12. Which of the following is NOT a typical constraint associated with generalization?
IntermediateShow answer & explanation
Cardinality
Cardinality is a constraint on relationships, not on generalization. Disjointness, completeness, and overlap are constraints that apply to generalization/specialization.
Q13. In an overlapping generalization, an entity:
IntermediateShow answer & explanation
Can belong to multiple subclasses simultaneously
Overlapping generalization allows an entity to be a member of more than one subclass at the same time.
Q14. In a disjoint generalization, an entity can belong to at most one subclass. Which of the following is a disjoint generalization?
IntermediateShow answer & explanation
An employee can be either a manager or a worker, but not both.
Disjoint means no overlap; an employee cannot be both a manager and a worker in this classification.
Q15. What is the relationship between generalization and specialization?
IntermediateShow answer & explanation
Generalization is bottom-up, specialization is top-down.
Generalization is a bottom-up process (combining subclasses into a superclass), while specialization is top-down (dividing a superclass into subclasses).
Q16. Which of the following is a benefit of using generalization in a database schema?
IntermediateShow answer & explanation
It reduces redundancy by storing common attributes once.
By placing common attributes in the superclass, generalization avoids repeating them in each subclass, thus reducing redundancy.
Q17. Which of the following is an example of a generalization hierarchy?
IntermediateShow answer & explanation
Person -> Student, Employee
Person is a superclass with Student and Employee as subclasses, representing a generalization hierarchy.
Q18. What does the 'total' constraint in generalization mean?
IntermediateShow answer & explanation
Every superclass entity must belong to at least one subclass.
Total specialization means that the superclass is completely covered by its subclasses; every superclass entity is also a member of some subclass.
Q19. In a partial specialization, some superclass entities may not belong to any subclass. This is also known as:
IntermediateShow answer & explanation
Partial specialization
Partial specialization allows some superclass entities to not be members of any subclass.
Q20. Define generalization in the context of ER modeling. Explain how it differs from specialization, and provide a real-world example of each.
IntermediateShow answer & explanation
—
1 mark for correct definition of generalization (bottom-up, combining subclasses into superclass). 1 mark for correct definition of specialization (top-down, dividing superclass into subclasses). 1 mark for clear explanation of the difference (direction and purpose). 1 mark for a valid real-world example of generalizat…
Q21. Explain the four constraints that can be applied to a generalization/specialization hierarchy: disjointness, completeness, overlap, and total/partial. Provide an example for each constraint.
IntermediateShow answer & explanation
—
1 mark for explaining disjointness with example. 1 mark for explaining overlap with example. 1 mark for explaining total completeness with example. 1 mark for explaining partial completeness with example. 1 mark for clarity and organization. 1 mark for overall correctness.
Topper level · 5 questions
Q22. Which of the following is an example of overlapping generalization?
AdvancedShow answer & explanation
A person can be both a student and an employee.
Overlapping allows an entity to be in multiple subclasses; a person can be both a student and an employee, so it is overlapping.
Q23. In a relational database, how is a generalization typically implemented?
AdvancedShow answer & explanation
By creating a single table for the superclass and separate tables for each subclass with foreign keys referencing the superclass.
A common mapping strategy is to create a table for the superclass and tables for each subclass, linking them via foreign keys (often using the primary key of the superclass).
Q24. Which of the following is a potential drawback of using generalization?
AdvancedShow answer & explanation
It can lead to complex queries when joining multiple tables.
Generalization can result in multiple tables that need to be joined to retrieve complete information, potentially complicating queries.
Q25. Describe the different mapping strategies to transform a generalization hierarchy into relational tables. Discuss the advantages and disadvantages of each strategy.
AdvancedShow answer & explanation
—
1 mark for describing the single table strategy. 1 mark for its advantages and disadvantages. 1 mark for describing the superclass/subclass tables strategy. 1 mark for its advantages and disadvantages. 1 mark for describing the only subclass tables strategy. 1 mark for its advantages and disadvantages.
Q26. Consider a database for a university. There is a 'Person' entity with attributes 'ID', 'Name', and 'Address'. Subclasses include 'Student' (with 'GPA') and 'Employee' (with 'Salary'). A person can be both a student and an employee. Draw the ER diagram conceptually and explain how you would implement this in a relational database, including the constraints.
AdvancedShow answer & explanation
—
1 mark for correctly identifying the superclass and subclasses. 1 mark for identifying the overlapping and partial constraints. 1 mark for describing the Person table. 1 mark for describing the Student and Employee tables with foreign keys. 1 mark for explaining how the implementation supports overlapping and partial c…
Your notes can be a kit like these
Every kit here was made from real study material. Point Veda at a chapter, a PDF, a photo or a link and get notes, flashcards, practice MCQs, games and a scored test — free, in 42 languages.
- Chapter notes
- Flashcards
- Practice MCQs
- Scored tests
- Exam prep
Get Veda free See what students get
Free to start · No ads · Works in 42 languages