Generalization in database management system: 26 MCQs

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.

Answers and explanations are in the Veda app.

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

Answers and explanations are in the Veda app.

Q3. In generalization, the higher-level entity type is called a:

Beginner
A Weak entity
B Composite entity
C Subclass
D Superclass

Answers and explanations are in the Veda app.

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.

Answers and explanations are in the Veda app.

Q5. Generalization is a top-down process in ER modeling.

Beginner
A True
B False

Answers and explanations are in the Veda app.

Q6. In a disjoint generalization, an entity can belong to multiple subclasses at the same time.

Beginner
A True
B False

Answers and explanations are in the Veda app.

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

Answers and explanations are in the Veda app.

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

Answers and explanations are in the Veda app.

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.

Answers and explanations are in the Veda app.

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

Answers and explanations are in the Veda app.

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

Answers and explanations are in the Veda app.

Q12. Which of the following is NOT a typical constraint associated with generalization?

Intermediate
A Overlap
B Completeness
C Disjointness
D Cardinality

Answers and explanations are in the Veda app.

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

Answers and explanations are in the Veda app.

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.

Answers and explanations are in the Veda app.

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.

Answers and explanations are in the Veda app.

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.

Answers and explanations are in the Veda app.

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

Answers and explanations are in the Veda app.

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.

Answers and explanations are in the Veda app.

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

Answers and explanations are in the Veda app.

Q20. Define generalization in the context of ER modeling. Explain how it differs from specialization, and provide a real-world example of each.

Intermediate

Answers and explanations are in the Veda app.

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

Answers and explanations are in the Veda app.

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.

Answers and explanations are in the Veda app.

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.

Answers and explanations are in the Veda app.

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.

Answers and explanations are in the Veda app.

Q25. Describe the different mapping strategies to transform a generalization hierarchy into relational tables. Discuss the advantages and disadvantages of each strategy.

Advanced

Answers and explanations are in the Veda app.

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

Answers and explanations are in the Veda app.

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 to start, in more than 40 languages.

  • Chapter notes
  • Flashcards
  • Practice MCQs
  • Scored tests
  • Paper Solver

Get Veda free See what students get

Free to start · Android app and web · More than 40 languages