ER Model Questions with Answers

41 practice questions on ER Model (DBMS) with answers and step-by-step solutions. Try 10 samples below, then practise all 41 free in the AptiNest app.

Sample questions

Question 1Easy

An attribute like "age" that can be computed from "date of birth" is called a:

  1. Simple key attribute
  2. Composite attribute
  3. Multivalued attribute
  4. Derived attribute

Answer: D. Derived attribute

Explanation

Derived attributes (dashed ellipse) are calculated from other stored attributes and usually not stored.

Step-by-step solution

  1. Age can be calculated from date of birth and today's date.
  2. An attribute computed from another is called derived.
  3. It is drawn as a dashed ellipse.

Why the other options are wrong

  • A. Age is not a key and is not stored independently.
  • B. Age has no sub-parts.
  • C. A person has one age at a time.

Tip: If you can compute it, it is derived (dashed ellipse).

Question 2Easy

Total participation of an entity set in a relationship is drawn as a:

  1. Dashed line
  2. Arrow with a circle
  3. Single line
  4. Double line

Answer: D. Double line

Explanation

A double line means every entity in the set must participate in at least one relationship instance.

Step-by-step solution

  1. Total participation means every entity in the set takes part in the relationship.
  2. Chen notation draws it as a double line.
  3. Partial participation uses a single line.

Why the other options are wrong

  • A. Dashed lines are not standard for participation (dashed ellipses mark derived attributes).
  • B. That belongs to other notations, not Chen's participation symbol.
  • C. A single line means partial participation.

Tip: Double line = must participate (total).

Question 3Easy

An attribute such as "phone numbers" that can hold several values for one entity is called a:

  1. Multivalued attribute
  2. Key attribute
  3. Composite attribute
  4. Derived attribute

Answer: A. Multivalued attribute

Explanation

Multivalued attributes are drawn with a double ellipse. When mapped to tables, they get their own relation.

Step-by-step solution

  1. One person can have several phone numbers.
  2. An attribute holding several values for one entity is multivalued.
  3. It is drawn as a double ellipse in Chen notation.

Why the other options are wrong

  • B. A key attribute uniquely identifies the entity.
  • C. A composite attribute has sub-parts (like Name into First and Last), not several values.
  • D. A derived attribute is computed from another attribute.

Tip: Multivalued = double ellipse; derived = dashed ellipse.

Question 4Easy

Combining Car and Truck entity sets into a higher-level entity set Vehicle with their common attributes is called:

  1. Aggregation
  2. Generalization
  3. Specialization
  4. Normalization

Answer: B. Generalization

Explanation

Generalization is bottom-up (common features lifted to a superclass). Specialization is the top-down reverse.

Step-by-step solution

  1. Car and Truck share attributes such as registration number and make.
  2. Pulling common attributes up into Vehicle builds a superclass.
  3. This bottom-up step is generalization.

Why the other options are wrong

  • A. Aggregation treats a relationship as an entity.
  • C. Specialization goes the other way: from Vehicle down to Car and Truck.
  • D. Normalization is about removing redundancy in relations.

Tip: Generalization = bottom-up; specialization = top-down.

Question 5Medium

In Crow's Foot notation, a line ending in a circle followed by a crow's foot means:

  1. Exactly one
  2. Zero or many
  3. One or many
  4. Zero or one

Answer: B. Zero or many

Explanation

The circle means the minimum is zero (optional) and the crow's foot means the maximum is many.

Step-by-step solution

  1. The circle means zero (optional minimum).
  2. The crow's foot means many (maximum).
  3. Together: zero or many.

Why the other options are wrong

  • A. Exactly one is two bars.
  • C. One or many is a bar followed by a crow's foot.
  • D. Zero or one is a circle followed by a bar.

Tip: Circle = 0, bar = 1, foot = many.

Question 6Medium

Two strong entity sets are connected by a one-to-many relationship with total participation on the many side. What is the minimum number of tables?

  1. 4
  2. 3
  3. 1
  4. 2

Answer: D. 2

Explanation

Add the key of the 'one' side as a foreign key in the 'many' side's table; no separate relationship table is needed.

Step-by-step solution

  1. Each strong entity gets a table: 2.
  2. The 1:N relationship becomes a foreign key in the many-side table.
  3. Total participation lets that FK be NOT NULL; still 2 tables.

Why the other options are wrong

  • A. 4 is far more than needed.
  • B. No separate relationship table is needed for 1:N.
  • C. Merging the two entities would repeat the "one" side's data.

Tip: 1:N = 2 tables (FK on the many side).

Question 7Medium

A ternary relationship among Supplier, Part and Project (all many-to-many) is mapped to a table whose primary key is typically:

  1. The key of Supplier
  2. Any two of the three keys
  3. A new surrogate key only
  4. The combination of the three entity keys

Answer: D. The combination of the three entity keys

Explanation

Each relationship instance links one supplier, part and project, so all three keys together identify it.

Step-by-step solution

  1. The relationship is M:N in every direction.
  2. A row records one (Supplier, Part, Project) fact.
  3. Only all three keys together identify a row.

Why the other options are wrong

  • A. One supplier appears in many rows.
  • B. With all sides many, any pair can repeat with a different third value.
  • C. A surrogate could be added, but the natural key is still the three keys.

Tip: All-many ternary: key = all three keys.

Question 8Medium

For a one-to-many relationship, where can a relationship attribute be moved?

  1. It must be dropped
  2. To the table on the 'one' side
  3. To the table of the entity on the 'many' side
  4. It must always have its own table

Answer: C. To the table of the entity on the 'many' side

Explanation

Each 'many' entity takes part in at most one instance, so the attribute can sit with its foreign key.

Step-by-step solution

  1. In 1:N, each entity on the many side takes part at most once.
  2. So the relationship attribute has one value per many-side entity.
  3. It can be stored in the many-side table next to the foreign key.

Why the other options are wrong

  • A. Nothing is lost; there is a natural place for it.
  • B. The one side relates to many instances, so a single column cannot hold all values.
  • D. A separate table is allowed but not required for 1:N.

Tip: 1:N: the foreign key and relationship attributes go on the many side.

Question 9Hard

Aggregation in an EER model is used to:

  1. Model a weak entity's identifying relationship together with its owner's key attributes
  2. Merge two entity sets into one table
  3. Treat a relationship set as an entity so it can take part in another relationship
  4. Compute derived attributes from stored ones

Answer: C. Treat a relationship set as an entity so it can take part in another relationship

Explanation

For example, (Employee works-on Project) can be aggregated and then related to Manager via a monitors relationship.

Step-by-step solution

  1. Sometimes a relationship needs to relate to another entity.
  2. Example: (Employee works_on Project) is monitored by a Manager.
  3. Aggregation treats the relationship as a higher-level entity.

Why the other options are wrong

  • A. That describes a weak entity.
  • B. Merging entity sets is not aggregation.
  • D. Derived attributes are computed from stored ones.

Tip: Relationship about a relationship = aggregation.

Question 10Hard

Converting a one-to-many relationship between Department (one) and Employee (many) to tables, where should the foreign key go?

  1. In both tables
  2. In the Employee table, referencing Department
  3. In a new table only
  4. In the Department table, referencing Employee

Answer: B. In the Employee table, referencing Department

Explanation

Put the foreign key on the "many" side. Each employee row stores one dept_id; putting employee ids in Department would need multiple values per row.

Step-by-step solution

  1. Each employee belongs to one department; a department has many employees.
  2. Put DeptID as a foreign key in Employee, the many side.
  3. Each Employee row then holds exactly one DeptID.

Why the other options are wrong

  • A. Putting it in both tables is redundant.
  • C. A separate table is needed only for M:N or optional relationships.
  • D. One Department row would need many EmpIDs, which breaks 1NF.

Tip: Foreign key lives on the many side.

Practise all 41 questions free

The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.

Open this topic in the app →

Related topics

See all DBMS topics · All topics