wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Entity-Relationship Model Worksheet

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

In an ER model, what does a weak entity represent?

a)

An entity that has a primary key

b)

An entity that cannot be identified by its own attributes alone

c)

An entity with many-to-many relationships

d)

An entity with only composite attributes

2.

Which of the following is true about the relationship in an ER diagram?

a)

Relationships can only exist between two entities

b)

Relationships can have attributes, and these are called relationship attributes

c)

Relationships cannot have multiplicities

d)

Relationships are represented as rectangles in ER diagrams

3.

In an ER diagram, a composite attribute is:

a)

An attribute that can be further divided into smaller subparts

b)

An attribute that cannot be divided further

c)

A relationship between two entities

d)

A type of weak entity

4.

In the ER model, which of the following can represent multivalued attributes?

a)

A circle with a double line

b)

A rectangle

c)

A diamond with a double line

d)

A double rectangle

5.

Which of the following constraints applies to a one-to-many (1:N) relationship in an ER diagram?

a)

The maximum cardinality of the relationship is 1 on both sides

b)

Each entity on the "one" side can be related to multiple entities on the "many" side

c)

The relationship has no restrictions on how many instances can exist on the "many" side

d)

Every entity on the "many" side must be related to exactly one entity on the "one" side

6.

Which of the following statements is true about cardinality constraints in an ER diagram?

a)

Cardinality specifies the number of entities that can participate in a relationship

b)

Cardinality only specifies the minimum number of relationships that can exist

c)

Cardinality does not allow relationships to be restricted to one-to-one

d)

Cardinality is concerned only with the number of attributes an entity can have

7.

A university maintains a database with the following entities: Student (StudentID, Name, DateOfBirth), Course (CourseID, CourseName, Credits), Instructor (InstructorID, Name, Department), Enrollment (StudentID, CourseID, EnrollmentDate). Which type of relationship exists between Student and Course in the given database?

a)

One-to-One

b)

One-to-Many

c)

Many-to-Many

d)

Many-to-One

8.

A company keeps a record of employees and the projects they are working on. Each employee can work on multiple projects, and each project can have multiple employees assigned to it. What is the most appropriate way to model this relationship in an ER diagram?

a)

Use a one-to-many relationship between Employee and Project

b)

Use a many-to-many relationship between Employee and Project

c)

Use a one-to-one relationship between Employee and Project

d)

Use an attribute for the Employee entity to store project data

9.

A library has a Book entity with attributes like ISBN, Title, Author, PublicationYear, and a Member entity with attributes like MemberID, Name, MembershipDate. There is a relationship Borrows between Member and Book, which tracks which member borrows which book on a specific date. What is the best way to model this relationship?

a)

One-to-One relationship between Member and Book

b)

One-to-Many relationship between Member and Book

c)

Many-to-Many relationship between Member and Book

d)

One-to-Many relationship between Book and Member

10.

Consider a scenario where a company has multiple departments, and each department has multiple employees. An employee can work in only one department, but a department can have many employees. Which type of relationship exists between Department and Employee?

a)

One-to-One

b)

One-to-Many

c)

Many-to-Many

d)

Many-to-One

11.

What is the cardinality of the relationship between Supplier and Product, where each supplier can supply many products, but each product is supplied by exactly one supplier?

a)

One-to-One (1:1)

b)

One-to-Many (1:N)

c)

Many-to-One (N:1)

d)

Many-to-Many (N:M)

12.

You are designing a system for a Hotel Reservation. You have two entities: Customer (with attributes such as CustomerID, Name, Contact) and Room (with attributes such as RoomID, RoomType, Price). The Customer can book many rooms, and each room can be booked by many customers over time. What is the correct type of relationship between Customer and Room?

a)

One-to-One

b)

One-to-Many

c)

Many-to-Many

d)

Many-to-One

13.

A university manages the following data: Student: Contains information like StudentID, Name, and DateOfBirth. Course: Contains details like CourseID, CourseName, and Credits. Instructor: Contains information such as InstructorID, Name, and Department. Department: Contains DepartmentID and DepartmentName. How many entities are involved in this system?

a)

2

b)

3

c)

4

d)

5

14.

In an ER diagram, the total participation of an entity in a relationship means:

a)

Every instance of the entity must participate in the relationship

b)

Some instances of the entity may participate in the relationship

c)

The relationship is optional for the entity

d)

None of the above

15.

In a company database, Employee is related to Project through the WorksOn relationship. Every employee must work on at least one project, but some projects may not have any employees assigned to them. What kind of participation exists for the Employee and Project entities in the WorksOn relationship?

a)

Total participation for Employee, Partial participation for Project

b)

Partial participation for Employee, Total participation for Project

c)

Total participation for both Employee and Project

d)

Partial participation for both Employee and Project