wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Entity Relationship Diagram (ERD) Multiple Choice Questions

Total questions: 100

Worksheet time: 50mins

Name
Class
Date
1.

What is the primary purpose of an Entity Relationship Diagram (ERD)?

a)

To write database code

b)

To visually represent the logical structure of a database

c)

To physically store data

d)

To query the database

2.

In a standard ERD, what does a rectangle represent?

a)

A relationship

b)

An attribute

c)

An entity

d)

A constraint

3.

An attribute that can be broken down into smaller, meaningful parts is called a(n):

a)

Simple attribute

b)

Composite attribute

c)

Derived attribute

d)

Multivalued attribute

4.

Which symbol is used to represent a relationship in an ERD?

a)

Circle

b)

Rectangle

c)

Diamond

d)

Line

5.

A person's age, which can be calculated from their date of birth, is an example of a(n):

a)

Stored attribute

b)

Composite attribute

c)

Derived attribute

d)

Key attribute

6.

What does cardinality specify in the context of an ERD?

a)

The number of tables in a database

b)

The number of attributes in an entity

c)

The number of instances of one entity that can be associated with an instance of another entity

d)

The level of normalization

7.

A relationship between three distinct entities is called a:

a)

Binary relationship

b)

Unary relationship

c)

Ternary relationship

d)

Recursive relationship

8.

A "weak entity" is best defined as an entity that:

a)

Has very few attributes

b)

Is not important to the database

c)

Cannot be uniquely identified by its own attributes alone

d)

Has no relationships with other entities

9.

The attribute that uniquely identifies an entity is known as the:

a)

Foreign attribute

b)

Descriptive attribute

c)

Key attribute (or Primary Key)

d)

Composite attribute

10.

In a one-to-many relationship, the "many" side is often represented by what symbol in Crow's Foot notation?

a)

A single vertical line

b)

A circle

c)

A three-pronged "crow's foot"

d)

A double vertical line

11.

An attribute that can have more than one value for a single entity instance (e.g., 'phone_number' for a 'Student') is a:

a)

Simple attribute

b)

Derived attribute

c)

Multivalued attribute

d)

Composite attribute

12.

A relationship where an entity is related to itself is known as a(n):

a)

Binary relationship

b)

Ternary relationship

c)

Associative relationship

d)

Recursive (or Unary) relationship

13.

The double line connecting a weak entity to its identifying relationship indicates:

a)

A one-to-one relationship

b)

Total participation (existence dependency)

c)

A many-to-many relationship

d)

Partial participation

14.

What is generalization in an ERD?

a)

Combining several entities into a single, higher-level entity

b)

Breaking down an entity into several, lower-level entities

c)

Creating a relationship between two entities

d)

Defining the attributes of an entity

15.

An entity that participates in a relationship is called a(n):

a)

Participant

b)

Attribute

c)

Relation

d)

Schema

16.

Which of the following best describes an "associative entity"?

a)

An entity used to implement a one-to-one relationship

b)

An entity used to represent a multivalued attribute

c)

An entity used to resolve a many-to-many relationship

d)

A weak entity

17.

The minimum number of times an instance in one entity can be associated with an instance in a related entity is called:

a)

Degree

b)

Cardinality

c)

Modality (or Participation)

d)

Arity

18.

What does a double rectangle represent in an ERD?

a)

A strong entity

b)

A weak entity

c)

An associative entity

d)

A superclass entity

19.

A 'Student' entity can have a 'Locker' entity. Each student can have only one locker, and each locker is assigned to only one student. This is a:

a)

One-to-many relationship

b)

One-to-one relationship

c)

Many-to-many relationship

d)

Recursive relationship

20.

The process of designating a more general entity type from a set of more specialized entity types is:

a)

Specialization

b)

Generalization

c)

Aggregation

d)

Normalization

21.

In an ERD, ovals (or ellipses) are used to represent:

a)

Entities

b)

Relationships

c)

Attributes

d)

Keys

22.

The degree of a relationship is the:

a)

Number of attributes in the relationship

b)

Number of participating entity types

c)

Number of foreign keys used

d)

Number of instances in the relationship

23.

The key of a weak entity is formed by the primary key of the parent entity plus a:

a)

Foreign key

b)

Super key

c)

Discriminator (or partial key)

d)

Candidate key

24.

A relationship that has its own attributes is a sign that you might need a(n):

a)

Weak entity

b)

Recursive relationship

c)

Associative entity

d)

Superclass

25.

The constraint that specifies whether the existence of an entity depends on its relationship to another entity is:

a)

Cardinality constraint

b)

Participation constraint

c)

Domain constraint

d)

Key constraint

26.

Specialization is a:

a)

Top-down process

b)

Bottom-up process

c)

Left-to-right process

d)

Ad-hoc process

27.

The concept of IS-A is related to:

a)

Aggregation

b)

Generalization/Specialization

c)

Cardinality

d)

Recursive relationships

28.

In a university database, the relationship between 'Student' and 'Course' is typically:

a)

One-to-one

b)

One-to-many

c)

Many-to-many

d)

Self-referencing

29.

What is a schema?

a)

The raw data in the database

b)

A query used to retrieve data

c)

A diagram representing the database structure

d)

A single table in the database

30.

Which notation uses arrows and text labels (e.g., P, F) to define relationships?

a)

Crow's Foot

b)

Chen Notation

c)

UML (Unified Modeling Language)

d)

Information Engineering (IE) notation

31.

An attribute that cannot be divided further is called:

a)

Composite

b)

Simple (or Atomic)

c)

Multivalued

d)

Derived

32.

Aggregation in an ERD allows you to:

a)

Treat a relationship as an entity

b)

Combine multiple entities into one

c)

Define subtypes

d)

Enforce referential integrity

33.

An identifying relationship is the relationship between a weak entity and its:

a)

Subtype

b)

Supertype

c)

Owner (or Parent) entity

d)

Sibling entity

34.

A single line connecting an entity to a relationship indicates:

a)

Total participation

b)

Partial participation

c)

A weak relationship

d)

A strong relationship

35.

The set of permitted values for an attribute is called its:

a)

Domain

b)

Range

c)

Type

d)

Schema

36.

An entity set is a:

a)

Collection of attributes of a particular entity

b)

Collection of all relationships in a database

c)

Collection of similar entities

d)

Collection of all primary keys

37.

If an employee can be a manager of other employees, this represents a:

a)

Ternary relationship

b)

Binary relationship

c)

Recursive relationship

d)

Weak relationship

38.

The process of converting an ERD into a set of tables is called:

a)

Normalization

b)

Schema mapping

c)

Querying

d)

Indexing

39.

The primary key of a table is underlined in many ERD notations. What about a multivalued attribute?

a)

It is underlined twice

b)

It is in a dashed oval

c)

It is in a double oval

d)

It is in a bolded oval

40.

When an entity instance must participate in a relationship, it is called:

a)

Mandatory (Total) Participation

b)

Optional (Partial) Participation

c)

Compulsory Cardinality

d)

Required Degree

41.

A 'Pilot' flies an 'Airplane'. In this statement, 'flies' represents the:

a)

Entity

b)

Attribute

c)

Relationship

d)

Key

42.

The process of defining a set of subclasses of an entity type is called:

a)

Generalization

b)

Specialization

c)

Aggregation

d)

Association

43.

Which of the following is NOT a component of an ERD?

a)

Entity

b)

Attribute

c)

Relationship

d)

Table

44.

A database model that is based on the perception of the world as consisting of objects and their relationships is the:

a)

Relational Model

b)

Network Model

c)

Hierarchical Model

d)

Entity-Relationship Model

45.

A 'part-of' relationship is best represented by:

a)

Generalization

b)

Specialization

c)

Aggregation

d)

Ternary relationship

46.

The structural description of a database is called the:

a)

Database instance

b)

Database schema

c)

Database relation

d)

Database attribute

47.

In a 'Book' entity, 'ISBN' would be the best choice for a:

a)

Descriptive attribute

b)

Multivalued attribute

c)

Composite attribute

d)

Key attribute

48.

The number of tuples (rows) in a relation is called its:

a)

Cardinality

b)

Degree

c)

Domain

d)

Schema

49.

An entity that is not dependent on any other entity for its existence is a:

a)

Weak entity

b)

Strong entity

c)

Associative entity

d)

Subclass entity

50.

What is the main benefit of creating a conceptual data model like an ERD?

a)

It guarantees the database will be fast

b)

It provides a clear communication tool for stakeholders

c)

It automatically generates the physical database

d)

It eliminates the need for normalization

51.

Which key ensures that each row in a table is uniquely identifiable?

a)

Foreign Key

b)

Primary Key

c)

Super Key

d)

Alternate Key

52.

A key that consists of one or more attributes that can uniquely identify a row in a table is a:

a)

Candidate Key

b)

Foreign Key

c)

Composite Key

d)

Non-prime attribute

53.

What is a Foreign Key?

a)

A key that uniquely identifies a row in the same table

b)

A field (or collection of fields) in one table that uniquely identifies a row of another table

c)

A key that is composed of more than one attribute

d)

Any key that is not the primary key

54.

A key that is a candidate key but not selected to be the primary key is called a(n):

a)

Super Key

b)

Composite Key

c)

Alternate Key

d)

Foreign Key

55.

What is the primary purpose of an index in a database?

a)

To enforce uniqueness

b)

To improve the speed of data retrieval operations

c)

To establish relationships between tables

d)

To reduce the storage space of the database

56.

A key composed of two or more attributes is known as a:

a)

Primary Key

b)

Simple Key

c)

Composite Key

d)

Surrogate Key

57.

A Super Key is a set of attributes that:

a)

Can uniquely identify a tuple in a relation

b)

Is a subset of a candidate key

c)

Is always a single attribute

d)

Links two tables together

58.

What is a potential disadvantage of adding too many indexes to a table?

a)

It can speed up data retrieval too much

b)

It can slow down data modification operations (INSERT, UPDATE, DELETE)

c)

It can cause data to be lost

d)

It prevents the use of a primary key

59.

A "surrogate key" is a:

a)

Key made from business data (e.g., social security number)

b)

Unique identifier generated by the database system with no business meaning

c)

Key that references another table

d)

Synonym for a composite key

60.

Referential Integrity is a rule that ensures that relationships between tables remain consistent. It is typically enforced using:

a)

Primary Keys

b)

Indexes

c)

Foreign Keys

d)

Super Keys

61.

Which of the following is true about a Primary Key?

a)

It can contain NULL values

b)

A table can have multiple Primary Keys

c)

It must contain unique values for each row

d)

It is optional for a table

62.

An index where the data is physically ordered on the disk in the same order as the index is a:

a)

Clustered Index

b)

Non-Clustered Index

c)

Secondary Index

d)

Unique Index

63.

How many clustered indexes can a table have?

a)

Unlimited

b)

As many as there are columns

c)

Only one

d)

None

64.

What is a "unique index"?

a)

An index that speeds up queries

b)

An index that enforces the uniqueness of column values

c)

An index that is also a primary key

d)

An index created on a foreign key

65.

A "natural key" is a key that:

a)

Is automatically generated by the database

b)

Is a single integer value

c)

Is formed of attributes that already exist in the real world (e.g., VIN for a car)

d)

Cannot be used as a primary key

66.

A Candidate Key is a minimal:

a)

Foreign Key

b)

Super Key

c)

Primary Key

d)

Index

67.

Which property is NOT required for a Primary Key?

a)

Unique

b)

Not Null

c)

Stable (rarely changes)

d)

Must be a single attribute

68.

The set of all attributes in a relation is, by definition, a:

a)

Primary Key

b)

Foreign Key

c)

Super Key

d)

Candidate Key

69.

A non-clustered index:

a)

Determines the physical order of data in a table

b)

Has a separate structure from the data rows that points

70.

An index on multiple columns is known as a:

a)

Composite index

b)

Secondary index

c)

Clustered index

d)

Partial index

71.

When you define a primary key, most database systems automatically create a:

a)

Non-clustered index

b)

Unique index

c)

Foreign key constraint

d)

Trigger

72.

What happens if you try to insert a duplicate value into a column with a unique index?

a)

The operation succeeds, but a warning is issued

b)

The database system automatically changes the value

c)

The operation fails, and an error is returned

d)

The existing record is overwritten

73.

The relationship from a Foreign Key to a Primary Key is often called a:

a)

Parent-child relationship

b)

Master-slave relationship

c)

Hierarchical relationship

d)

Sibling relationship

74.

A "partial index" is an index that:

a)

Covers only some of the rows in a table based on a condition

b)

Covers only some of the columns in a table

c)

Is not fully built yet

d)

Is only used for read operations

75.

An attribute that is part of a candidate key is called a:

a)

Non-prime attribute

b)

Prime attribute

c)

Foreign attribute

d)

Simple attribute

76.

If a table has columns (StudentID, CourseID, Grade) and the primary key is (StudentID, CourseID), this key is a:

a)

Simple Key

b)

Surrogate Key

c)

Natural Key

d)

Composite Key

77.

What is the main benefit of using a surrogate key over a natural key?

a)

It takes up more space

b)

It is more meaningful to the user

c)

It is stable and will not change if business rules change

d)

It is always a single column

78.

The ON DELETE CASCADE option for a foreign key means:

a)

You cannot delete the parent row if child rows exist

b)

The foreign key in the child row is set to NULL when the parent row is deleted

c)

The child rows are deleted when the parent row is deleted

d)

The deletion is blocked

79.

A "covering index" is one that:

a)

Contains all columns needed to satisfy a query, avoiding a table lookup

b)

Is created on every column of a table

c)

Is another name for a clustered index

d)

Physically covers the data on the disk

80.

A simple key is a key that consists of:

a)

A single attribute

b)

A numeric data type

c)

Two attributes

d)

A foreign key reference

81.

Which key type is NOT necessarily unique?

a)

Primary Key

b)

Candidate Key

c)

Foreign Key

d)

Super Key

82.

An index scan is generally slower than an index seek because:

a)

It reads all the index entries

b)

It uses a binary search approach

c)

It ignores the index completely

d)

It only works on small tables

83.

A "secondary key" is a key used for:

a)

Uniquely identifying records

b)

Establishing relationships

c)

Data retrieval purposes, not necessarily unique

d)

Backing up the primary key

84.

What constraint is implicitly created when you declare a column as a Primary Key?

a)

CHECK

b)

DEFAULT

c)

NOT NULL

d)

FOREIGN KEY

85.

A Bitmap index is most suitable for:

a)

Columns with high cardinality (many unique values)

b)

Columns with low cardinality (few unique values)

c)

Columns that are frequently updated

d)

Primary key columns

86.

Which of the following is the best candidate for a primary key?

a)

A person's full name

b)

A person's date of birth

c)

A system-generated unique ID number

d)

A person's phone number

87.

A key that uniquely identifies a record within the context of its parent is a:

a)

Primary Key

b)

Partial Key (or Discriminator)

c)

Alternate Key

d)

Foreign Key

88.

A full table scan occurs when:

a)

The query uses an index to find data

b)

The database reads every row in the table to find the data

c)

The query returns the entire table

d)

The index is being rebuilt

89.

A hash index is most effective for:

a)

Range queries (e.g., WHERE price > 100)

b)

Equality queries (e.g., WHERE id = 123)

c)

Sorting data

d)

Pattern matching queries (e.g., WHERE name LIKE 'A%')

90.

A "function-based index" is an index built on:

a)

A single column

b)

Multiple columns

c)

The result of a function or expression on one or more columns

d)

A foreign key column

91.

If Key1 is a candidate key and Key2 is a candidate key, then Key1 can be chosen as the Primary Key and Key2 becomes the:

a)

Super Key

b)

Alternate Key

c)

Foreign Key

d)

Secondary Key

92.

The process of the query optimizer choosing the best way to execute a query (e.g., using an index) is called:

a)

Query compilation

b)

Query execution planning

c)

Query parsing

d)

Query indexing

93.

A foreign key value must match an existing value in the primary key column of the referenced table, or it must be:

a)

Zero

b)

A negative number

c)

NULL

d)

Unique

94.

What is index fragmentation?

a)

When an index becomes too large

b)

When the logical ordering of pages in an index does not match the physical ordering

c)

When an index is not used by a query

d)

When two indexes conflict with each other

95.

In a composite index on (LastName, FirstName), a query WHERE FirstName = 'John' would likely be:

a)

Very efficient, using the index fully

b)

Inefficient, as it cannot use the leading part of the index

c)

Able to use the second part of the index only

d)

Converted to a full table scan

96.

A key that can identify a set of related records, but not necessarily a unique record, is a:

a)

Primary Key

b)

Secondary Key

c)

Candidate Key

d)

Super Key

97.

The UNIQUE constraint ensures that all values in a column are different. How does it differ from a PRIMARY KEY constraint?

a)

It allows multiple NULL values (in most systems)

b)

It cannot be a foreign key reference

c)

It does not create an index

d)

It can only be applied to one column per table

98.

A "fill factor" for an index refers to:

a)

The percentage of space on each leaf-level page to be filled with data

b)

The number of columns in the index

c)

The number of rows the index covers

d)

The speed of the index

99.

An index organized tree (IOT) is a table where the data is stored:

a)

In a heap separate from the index

b)

Within the B-tree structure of the index

100.

What is the primary goal of database normalization?

a)

To increase data redundancy to improve performance

b)

To reduce data redundancy and improve data integrity

c)

To create as many tables as possible

d)

To make the database schema harder to understand