LearnFrenzy
Sign in Take a free test

DBMS & SQL · Topic 6 of 10

ER Model and Relational Mapping: questions with answers

Entities, attributes, weak entities, cardinality and participation, specialisation, and turning an ER diagram into tables.

Questions
45
Timed sets
3
Explained
100%
Your accuracy
–

What this topic covers

12 subtopics
  • ER to tables13
  • Cardinality5
  • Design5
  • Relationships5
  • Attributes4
  • Weak entities4
  • Generalisation and specialisation3
  • Participation2
  • Aggregation1
  • Entities1
  • Min–max notation1
  • Notation1
  • Beginner 15
  • Intermediate 15
  • Advanced 15

About this topic

The Entity–Relationship (ER) model describes data at the design stage: entities (things), their attributes, and the relationships between them, with cardinality (1:1, 1:N, M:N) and participation (total or partial). Interviews test the vocabulary and the design judgement; GATE regularly asks how many tables an ER diagram needs. The mapping rules used throughout: a strong entity becomes a table; an M:N relationship becomes its own table; a 1:N relationship becomes a foreign key on the N side; a multivalued attribute becomes a separate table.

Free preview

Sample questions

Try each one first, then open the answer for the explanation and why the other options are wrong.

Question 1 Entities Beginner Practice

In an ER model, what is the difference between an entity and an entity set?

They mean the same thing
An entity set is one row; an entity is the whole table
An entity is an attribute of an entity set
An entity is one real-world object (one student); an entity set is the collection of similar entities (all students)
Show answer and explanation
Correct answer D

Explanation

An entity is a single object with an identity; an entity set (or entity type) groups entities that share the same attributes. It maps to a table, and each entity to a row.

Why the other options are wrong

  • AOne is an instance, the other the collection.
  • BThis reverses the two.
  • CAttributes describe entities.
Question 2 Weak entities Beginner Practice

What is a weak entity?

An entity that is rarely used
An entity that cannot be uniquely identified by its own attributes and depends on an owner entity
An entity with few attributes
An entity with no relationships
Show answer and explanation
Correct answer B

Explanation

A weak entity is identified by its owner's key plus its own partial key. Example: Dependent (name) of an Employee – "Riya" is unique only within one employee's dependents.

Why the other options are wrong

  • AUsage has nothing to do with it.
  • CThe number of attributes is irrelevant.
  • DA weak entity always has an identifying relationship.
43 more questions in the timed setsSame format as the samples, with a timer, a question palette and a full review at the end.
Start practising

DBMS & SQL

All 10 topics

Topics, levels and full mocks
  1. 01 DBMS and SQL Fundamentals45 questions · 3 levels
  2. 02 Joins and Subqueries45 questions · 3 levels
  3. 03 Aggregates and GROUP BY45 questions · 3 levels
  4. 04 Window Functions45 questions · 3 levels
  5. 05 Keys and Constraints45 questions · 3 levels
  6. 06 ER Model and Relational Mapping45 questions · 3 levels
  7. 07 Normalization45 questions · 3 levels
  8. 08 Transactions and Concurrency45 questions · 3 levels
  9. 09 Indexing and Query Optimisation45 questions · 3 levels
  10. 10 Advanced SQL Queries45 questions · 3 levels

Search LearnFrenzy

Esc

Quick links