📚 CS340 Chapter 2 Exam

Enhanced Entity-Relationship (EER) Modeling

Course: Introduction to Database Systems (CS340)

Chapter: 2 - Enhanced Entity-Relationship Model

Total Questions: 25

Time Limit: 90 minutes (suggested)

Question 1 (MCQ) Past Exam
A weak entity type always has a _______ participation constraint with respect to its identifying relationship.
Question 2 (MCQ) Past Exam
The disjoint constraint in the EER model specifies that:
Question 3 (MCQ) New
Which of the following best describes specialization in EER diagrams?
Question 4 (MCQ) New
What symbol is used in EER diagrams to represent the subset (IS-A) relationship?
Question 5 (MCQ) New
In a total specialization constraint:
Question 6 (MCQ) New
Which of the following statements about generalization is TRUE?
Question 7 (MCQ) New
A union type (category) in EER diagrams:
Question 8 (MCQ) New
What is the difference between overlapping and disjoint constraints?
Question 9 (MCQ) New
In an EER diagram, a subclass discriminator attribute:
Question 10 (MCQ) New
Which of the following is TRUE about attribute inheritance in EER?
Question 11 (Short Answer) New
Explain the difference between specialization and generalization in EER modeling. Provide an example for each.
Question 12 (Short Answer) New
What is a weak entity type? Describe the characteristics that distinguish it from a regular (strong) entity type.
Question 13 (Scenario) Past Exam
At a weekend retreat, the entity type PERSON has three subclasses: CAMPER, BIKER, and RUNNER. Describe how you would model the following scenario using EER notation:

"At a given time, a person may or may not be one of these subclasses. However, a person may be any two (or even three) of these subclasses at the same time."

What constraints would you use (disjoint/overlapping, total/partial)?
Question 14 (Short Answer) New
Explain what a "category" (union type) is in EER modeling and provide a real-world example where it would be appropriate to use.
Question 15 (Multiple Choice) New
Which of the following statements about shared subclasses is TRUE? (Select all that apply)
Question 16 (Design Problem) Past Exam
A university hospital is implementing a patient management system. Doctors are categorized into three types: General Practitioner, Surgeon, and Specialist. A doctor must belong to at least one type but can belong to multiple types at once.

Describe the EER modeling approach you would use. Specify:
  • Whether this is specialization or generalization
  • Whether to use disjoint or overlapping constraint
  • Whether to use total or partial participation
  • Justify your choices
Question 17 (MCQ) New
In EER diagrams, what does a double-lined rectangle represent?
Question 18 (Short Answer) New
What is the purpose of using a discriminator attribute in specialization? Give an example.
Question 19 (Scenario) New
Consider a library database where BOOK is an entity with subclasses HARDCOVER, PAPERBACK, and EBOOK. A book can only be one of these types. What constraints would you apply and why?
Question 20 (MCQ) New
Which notation is used to show total specialization in an EER diagram?
Question 21 (Short Answer) New
Explain the concept of participation constraints in identifying relationships for weak entities. Why must a weak entity have total participation?
Question 22 (Error Detection) Past Exam
Identify at least THREE errors in the following EER design description:

"A COPY entity is defined with its own primary key (copy_number). It does not have a total participation constraint with the BOOK entity. The LIBRARY entity is shown as a subclass of BUILDING, and the BORROWER entity has partial participation in the LOAN relationship."
Question 23 (MCQ) New
Derived attributes in EER diagrams are shown using:
Question 24 (Design Problem) New
Design an EER schema for the following scenario:

"A company tracks VEHICLES which can be CARS or TRUCKS. Some vehicles are COMPANY_OWNED and others are LEASED. A vehicle can be both a car and company-owned, or a truck and leased, etc."

Describe your design approach, including what constraints you would use and why.
Question 25 (Comprehensive) New
Compare and contrast the following pairs of EER concepts:
  • Specialization vs. Generalization
  • Disjoint vs. Overlapping constraints
  • Total vs. Partial specialization
  • Strong vs. Weak entities
Provide examples for each.
Your Score
0/25
0%