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?

Beginner
A The process of combining two tables into one to improve query performance. B The process of splitting a table into multiple tables to reduce redundancy. C The process of creating an index on a table to speed up search operations. D The process of defining a more general entity type from a set of more specialized entity types.
Show 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?

Beginner
A From entity to attribute B From attribute to entity C From subclass to superclass D From superclass to subclass
Show 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:

Beginner
A Weak entity B Composite entity C Subclass D Superclass
Show 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'?

Beginner
A Inheritance is only applicable in object-oriented programming, not databases. B Superclasses inherit attributes from subclasses. C Subclasses cannot have their own attributes. D Subclasses inherit attributes and relationships from the superclass.
Show 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.

Beginner
A True B False
Show 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.

Beginner
A True B False
Show 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?

Intermediate
A Deleting a redundant table from a database B Defining 'Vehicle' as a superclass of 'Car' and 'Truck' C Defining 'Student' as a subclass of 'Person' D Adding a new attribute to an existing table
Show 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?

Intermediate
A To reduce data redundancy B To enforce referential integrity C To improve security of the database D To capture commonalities among entity types and simplify the model
Show 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?

Intermediate
A An entity can belong to at most one subclass. B A superclass cannot have any subclasses. C An entity can belong to multiple subclasses simultaneously. D A subclass must have at least one entity.
Show 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?

Intermediate
A Completeness B Overlap C Cascade D Disjointness
Show 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:

Intermediate
A Total specialization B Overlapping specialization C Partial specialization D Disjoint specialization
Show 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?

Intermediate
A Overlap B Completeness C Disjointness D Cardinality
Show 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:

Intermediate
A Can belong to only one subclass B Can belong to multiple subclasses simultaneously C Must belong to at least one subclass D Cannot belong to any subclass
Show 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?

Intermediate
A A user can have multiple roles. B A book can be both a textbook and a novel. C A person can be both a customer and a supplier. D An employee can be either a manager or a worker, but not both.
Show 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?

Intermediate
A Generalization is bottom-up, specialization is top-down. B They are unrelated concepts. C Generalization is top-down, specialization is bottom-up. D They are the same process.
Show 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?

Intermediate
A It automatically secures the database. B It eliminates the need for foreign keys. C It guarantees faster query performance. D It reduces redundancy by storing common attributes once.
Show 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?

Intermediate
A Car -> Vehicle B Student -> Person C Employee -> Manager D Person -> Student, Employee
Show 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?

Intermediate
A A superclass cannot have subclasses. B Subclasses cannot overlap. C Every superclass entity must belong to at least one subclass. D Every subclass must have at least one entity.
Show 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:

Intermediate
A Overlapping specialization B Total specialization C Disjoint specialization D Partial specialization
Show 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.

Intermediate
Show 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.

Intermediate
Show 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?

Advanced
A A vehicle is either a car or a truck, but not both. B A product is either electronic or clothing, but not both. C A person can be both a student and an employee. D A bank account is either savings or checking, but not both.
Show 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?

Advanced
A By creating separate tables for each subclass with no relationship. B By creating a single table for all subclasses without a superclass table. C By creating a single table for the superclass and separate tables for each subclass with foreign keys referencing the superclass. D By creating a view for each subclass.
Show 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?

Advanced
A It eliminates the need for indexing. B It makes the schema less flexible. C It increases data redundancy. D It can lead to complex queries when joining multiple tables.
Show 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.

Advanced
Show 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.

Advanced
Show 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…

Make your own

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