Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Practice Exam: Enhanced Entity-Relationship (EER) Model

Total questions: 51

Worksheet time: 26mins

Name
Class
Date
1.

What is the primary purpose of the Enhanced Entity-Relationship (EER) model?

a)

To replace the traditional E-R model

b)

To extend the E-R model with additional modeling constructs

c)

To simplify database design by removing relationships

d)

To enforce strict one-to-one relationships in all cases

2.

Which of the following best describes a supertype in the EER model?

a)

A generic entity type with common attributes shared by its subtypes

b)

A subgrouping of entities with distinct attributes

c)

A relationship between two entities

d)

A constraint that ensures uniqueness in a database

3.

In the context of supertype/subtype relationships, attribute inheritance means:

a)

Subtypes do not inherit any attributes from the supertype

b)

Subtypes inherit all attributes and relationships from the supertype

c)

Only unique attributes are inherited by the subtypes

d)

Each subtype must have completely different attributes from the supertype

4.

What symbol represents a Total Specialization constraint in an EER diagram?

a)

A single line

b)

A dashed line

c)

A double line

d)

A diamond shape

5.

If an instance of a supertype must be a member of at least one subtype, which rule applies?

a)

Partial Specialization Rule

b)

Total Specialization Rule

c)

Disjoint Rule

d)

Overlap Rule

6.

Specialization is the process of:

a)

Combining multiple entities into one supertype

b)

Dividing an entity into multiple subtypes

c)

Ensuring that an entity belongs to a subtype

d)

Eliminating redundancy in a database

7.

A supertype/subtype hierarchy is used when:

a)

All attributes are unique to individual entities

b)

An entity has multiple categories with shared and unique attributes

c)

Every entity is independent and has no common attributes

d)

All relationships must be one-to-one

8.

The disjoint rule ensures that:

a)

An instance of a supertype can belong to multiple subtypes

b)

An instance of a supertype can only belong to one subtype

c)

A supertype must always have multiple subtypes

d)

The supertype can exist without any subtypes

9.

A subtype discriminator is:

a)

A unique identifier for each subtype

b)

An attribute that determines which subtype an entity belongs to

c)

A relationship between subtypes

d)

A rule that forces specialization

10.

Overlapping subtypes occur when:

a)

An instance of a supertype can belong to multiple subtypes

b)

An instance of a supertype must belong to only one subtype

c)

A supertype has no attributes

d)

Subtypes are unrelated to each other

11.

What does a single line between a supertype and the circle in an EER diagram indicate?

a)

Total specialization

b)

Partial specialization

c)

Disjoint constraints

d)

Overlapping constraints

12.

Which of the following is an example of generalization?

a)

Creating an EMPLOYEE supertype from the entities MANAGER and ENGINEER

b)

Dividing VEHICLE into subtypes CAR and TRUCK

c)

Assigning unique attributes to each instance of an entity

d)

Ensuring that an entity belongs to a subtype

13.

Which of the following is not an advantage of using supertype/subtype relationships?

a)

Reducing redundancy in data models

b)

Allowing for more specific entity attributes

c)

Simplifying complex database relationships

d)

Eliminating the need for primary keys

14.

Which of the following is an example of partial specialization?

a)

Every instance of EMPLOYEE must be classified as either MANAGER or ENGINEER

b)

Some instances of VEHICLE do not belong to any subtype

c)

Every instance of VEHICLE must be either a CAR or a TRUCK

d)

A supertype instance belongs to multiple subtypes

15.

If a subtype has a composite subtype discriminator, it means:

a)

The supertype has only one subtype

b)

The discriminator has multiple attributes for different subtypes

c)

Each subtype is independent from the supertype

d)

Every subtype has the same attributes

16.

Which constraint allows an entity to exist at the supertype level without being a subtype?

a)

Total Specialization

b)

Partial Specialization

c)

Disjoint Rule

d)

Attribute Inheritance

17.

What does a double line from a supertype to a circle represent?

a)

Total Specialization

b)

Disjoint Rule

c)

Overlapping Subtypes

d)

Partial Specialization

18.

What type of attribute is used to determine the subtype for an entity?

a)

Foreign Key

b)

Subtype Discriminator

c)

Primary Key

d)

Derived Attribute

19.

Which scenario would require overlapping subtypes?

a)

A database of books classified as Fiction or Non-Fiction

b)

A student who can be both an athlete and a scholar

c)

A vehicle that is either a car or a truck, but not both

d)

A hospital where each patient must be an outpatient or inpatient

20.

In an EER diagram, what does the letter "d" inside a circle indicate?

a)

Disjoint rule

b)

Overlap rule

c)

Derived attribute

d)

Double specialization

21.

The "o" in an EER diagram signifies:

a)

Overlapping subtypes

b)

Disjoint subtypes

c)

Optional attributes

d)

Outdated entity types

22.

What is the root in a supertype/subtype hierarchy?

a)

The most specialized subtype

b)

The entity with no attributes

c)

The top-most supertype

d)

The least important entity

23.

What kind of relationship exists between a supertype and its subtypes?

a)

Many-to-many

b)

One-to-many

c)

One-to-one

d)

Many-to-one

24.

In an employee database, which of the following would best represent an example of an EER model?

a)

A single EMPLOYEE entity with all attributes

b)

EMPLOYEE as a supertype with subtypes MANAGER and INTERN

c)

Separate MANAGER and INTERN entities with duplicate attributes

d)

A table without any hierarchical relationships

25.

When should you use a supertype/subtype relationship in database modeling?

a)

When all entities share the exact same attributes

b)

When there are distinct categories of an entity with some shared attributes

c)

When all attributes are unique to each entity

d)

When multiple entities have no relationships

26.

What type of specialization occurs when an instance of a supertype must belong to at least one subtype?

a)

Partial specialization

b)

Total specialization

c)

Disjoint specialization

d)

Composite specialization

27.

If a supertype/subtype relationship has overlapping subtypes, how should its subtype discriminator be structured?

a)

A single attribute with multiple values

b)

A composite attribute with Boolean values for each subtype

c)

A derived attribute from another entity

d)

A primary key shared across all entities

28.

In a supertype/subtype hierarchy, what ensures that all instances of a supertype fit into at least one subtype?

a)

Disjoint rule

b)

Overlap rule

c)

Total specialization

d)

Partial specialization

29.

Which specialization rule allows an entity to belong to multiple subtypes?

a)

Overlap rule

b)

Overlapping rule

c)

Total specialization

d)

Partial specialization

30.

In which scenario would a partial specialization rule be more appropriate?

a)

Every EMPLOYEE must be classified as either a MANAGER or an ENGINEER

b)

A VEHICLE entity where some vehicles are neither a CAR nor a TRUCK

c)

A STUDENT entity where each student must be an UNDERGRADUATE or GRADUATE

d)

A COMPANY entity where every company must be a startup or a corporation

31.

How is a subtype discriminator typically represented in an EER diagram?

a)

A dashed line connecting the supertype and subtype

b)

A labeled attribute inside the supertype

c)

A separate entity linking all subtypes

d)

A unique identifier in the subtype

32.

If a database model includes an EMPLOYEE supertype with subtypes MANAGER and ENGINEER, and each employee can only be one subtype, what constraint applies?

a)

Overlap rule

b)

Disjoint rule

c)

Total specialization

d)

Partial specialization

33.

A hospital has a PATIENT supertype with OUTPATIENT and INPATIENT subtypes. If every patient must be one or the other, but not both, which constraints apply?

a)

Total specialization and overlap rule

b)

Partial specialization and disjoint rule

c)

Total specialization and disjoint rule

d)

Partial specialization and overlap rule

34.

If a supertype/subtype hierarchy has multiple levels of subtypes, what is this structure called?

a)

Disjoint model

b)

Generalization pattern

c)

Supertype nesting

d)

Supertype/subtype hierarchy

35.

A company database tracks employees, alumni, and students under a PERSON supertype. If a person can be both an ALUMNUS and a STUDENT, which rule applies?

a)

Disjoint rule

b)

Overlapping rule

c)

Partial specialization

d)

Total specialization

36.

Which of the following best describes the purpose of generalization in an EER model?

a)

It reduces redundancy by creating a higher-level entity that encompasses multiple lower-level entities

b)

It breaks down a broad entity into more specific subtypes

c)

It ensures that every instance of a supertype is assigned to a subtype

d)

It prevents an entity from inheriting attributes from multiple sources

37.

True or False: Generalization is the process of defining a more specific entity type from an existing supertype.

a)

True

b)

False

38.

True or False: The Disjoint Rule allows an instance of a supertype to belong to multiple subtypes.

a)

True

b)

False

39.

True or False: The Overlap Rule is indicated by the letter "d" in the circle connecting a supertype and its subtypes.

a)

True

b)

False

40.

True or False: A subtype discriminator is used to determine which subtype an entity belongs to.

a)

True

b)

False

41.

True or False: A supertype/subtype hierarchy can only have two levels.

a)

True

b)

False

42.

True or False: The Partial Specialization Rule means that not all instances of a supertype must belong to a subtype.

a)

True

b)

False

43.

True or False: Overlapping subtypes require the use of composite subtype discriminators.

a)

True

b)

False

44.

True or False: In an EER diagram, a double line represents a partial specialization constraint.

a)

True

b)

False

45.

True or False: A supertype may have multiple subtypes, but each subtype can only belong to one supertype.

a)

True

b)

False

46.

True or False: The Overlap Rule allows an instance of a supertype to be a member of multiple subtypes.

a)

True

b)

False

47.

Explain the difference between specialization and generalization in the EER model.

a)

Specialization is the process of defining a set of subclasses of an entity type, while generalization is the process of defining a generalized entity type from a set of entity types.

b)

Specialization is the process of defining a generalized entity type from a set of entity types, while generalization is the process of defining a set of subclasses of an entity type.

c)

Specialization and generalization are the same processes in the EER model.

d)

Specialization and generalization are unrelated concepts in the EER model.

48.

Disjoint and overlapping constraints are types of constraints in database design. Which of the following is an example of a disjoint constraint?

a)

A student can either be an undergraduate or a graduate, but not both.

b)

A person can be both an employee and a manager.

c)

A vehicle can be either a car or a truck, but not both.

d)

A book can be both a hardcover and a paperback.

49.

The Total Specialization Rule differs from the Partial Specialization Rule in that:

a)

Total Specialization requires all instances of a superclass to be a member of at least one subclass, while Partial Specialization does not.

b)

Partial Specialization requires all instances of a superclass to be a member of at least one subclass, while Total Specialization does not.

c)

Both rules require all instances of a superclass to be a member of at least one subclass.

d)

Neither rule requires instances of a superclass to be a member of any subclass.

50.

A real-world scenario where a supertype/subtype relationship would be useful in database design is:

a)

Managing different types of vehicles in a transportation database

b)

Storing a single type of product in an inventory system

c)

Tracking identical user profiles in a social media app

d)

Recording uniform transactions in a banking system

51.

In an EER diagram, a supertype/subtype relationship is typically represented by:

a)

a rectangle with a line connecting to a circle

b)

a triangle with lines connecting to rectangles

c)

a diamond shape with lines connecting to circles

d)

a circle with lines connecting to triangles