{ "@context": "https://schema.org", "@type": "Organization", "name": "Brainscape", "url": "https://www.brainscape.com/", "logo": "https://www.brainscape.com/pks/images/cms/public-views/shared/Brainscape-logo-c4e172b280b4616f7fda.svg", "sameAs": [ "https://www.facebook.com/Brainscape", "https://x.com/brainscape", "https://www.linkedin.com/company/brainscape", "https://www.instagram.com/brainscape/", "https://www.tiktok.com/@brainscapeu", "https://www.pinterest.com/brainscape/", "https://www.youtube.com/@BrainscapeNY" ], "contactPoint": { "@type": "ContactPoint", "telephone": "(929) 334-4005", "contactType": "customer service", "availableLanguage": ["English"] }, "founder": { "@type": "Person", "name": "Andrew Cohen" }, "description": "Brainscape’s spaced repetition system is proven to DOUBLE learning results! Find, make, and study flashcards online or in our mobile app. Serious learners only.", "address": { "@type": "PostalAddress", "streetAddress": "159 W 25th St, Ste 517", "addressLocality": "New York", "addressRegion": "NY", "postalCode": "10001", "addressCountry": "USA" } }

Relational Database Design MCQs Flashcards

(31 cards)

1
Q

What does ER stand for in database design?

o A) Entity Relationship
o B) Entity Relational
o C) Entity Reference
o D) Entity Record

A

Entity Relationship

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following is a fundamental component of an ER diagram?

o A) Relationships
o B) Attributes
o C) Entities
o D) All of the above

A

All of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In an ER diagram, what does a rectangle represent?

o A) An attribute
o B) A relationship
o C) An entity
o D) A weak entity

A

An entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the purpose of the diamond shape in an ER diagram?

o A) To represent an entity
o B) To represent an attribute
o C) To represent a relationship
o D) To represent a weak entity

A

To represent a relationship

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In an ER diagram, a solid line typically indicates what type of relationship?

o A) Weak relationship
o B) Strong relationship
o C) Identifying relationship
o D) Non-identifying relationship

A

Strong relationship

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is an attribute in the context of an ER diagram?

o A) A unique identifier for an entity
o B) A characteristic of an entity
o C) A relationship between entities
o D) A constraint on the entity

A

A characteristic of an entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the role of a primary key in a relational database?

o A) To uniquely identify each record
o B) To establish relationships between tables
o C) To store duplicate values
o D) To enforce referential integrity

A

To uniquely identify each record

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

In EERR (Enhanced Entity-Relationship model), what does a generalization represent?

o A) A hierarchy where a higher-level entity is divided into lower-level entities
o B) A relationship between two entities
o C) A combination of attributes
o D) None of the above

A

A hierarchy where a higher-level entity is divided into lower-level entities

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the purpose of using a surrogate key in a relational database?

o A) To create a composite key
o B) To provide a unique identifier that has no business meaning
o C) To replace natural keys
o D) To enforce referential integrity

A

To provide a unique identifier that has no business meaning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

In an ER diagram, how is an attribute that is functionally dependent on another

o A) With a dashed line
o B) With a solid line
o C) With a double oval
o D) With a single oval

A

With a solid line

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which of the following is NOT a type of relationship in an ER model?

o A) One-to-many
o B) Many-to-many
o C) One-to-zero
o D) One-to-one

A

One-to-zero

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What happens during the transformation of an ER diagram to a relational schema?

o A) Attributes become tables
o B) Entities become attributes
o C) Relationships become tables
o D) All of the above

A

All of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you represent an attribute of an entity in a relational schema?

o A) As a table
o B) As a column in the entity’s table
o C) As a relationship
o D) As a foreign key

A

As a column in the entity’s table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the main purpose of normalization in relational database design?

o A) To eliminate data redundancy and improve data integrity
o B) To create more tables
o C) To combine entities
o D) To simplify ER diagrams

A

To eliminate data redundancy and improve data integrity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How is a composite attribute represented in an ER diagram?

o A) As a rectangle
o B) As a diamond
o C) As an oval with sub-ovals
o D) As a double rectangle

A

As an oval with sub-ovals

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which of the following is a characteristic of a strong entity?

o A) It does not have a primary key.
o B) It can exist independently of other entities.
o C) It is always represented as a weak entity.
o D) It requires a composite key.

A

It can exist independently of other entities.

17
Q

What does a dashed line in an ER diagram typically indicate?

o A) A strong relationship
o B) A weak relationship
o C) A generalization
o D) A multi-valued attribute

A

A weak relationship

18
Q

In a relational schema, how is a many-to-many relationship typically resolved?

o A) By creating a new entity that includes attributes from both entities
o B) By adding a foreign key to one of the tables
o C) By using a composite primary key
o D) By merging the two tables

A

By creating a new entity that includes attributes from both entities

19
Q

Which of the following best describes a normalization process?

o A) Combining tables to reduce complexity
o B) Organizing data to minimize redundancy
o C) Creating more entities in an ER diagram
o D) Eliminating all relationships

A

Organizing data to minimize redundancy

20
Q

What does the term “attribute inheritance” refer to in an Enhanced ER model?

o A) Attributes are lost during mapping.
o B) Subclasses inherit attributes from superclasses.
o C) Attributes cannot be changed.
o D) All entities must have the same attributes.

A

Subclasses inherit attributes from superclasses.

21
Q

What is the main purpose of mapping relationships in an ER diagram to a relational schema?

o A) To simplify the design process
o B) To enforce data integrity
o C) To define how entities relate to one another in the database
o D) To generate SQL queries

A

To define how entities relate to one another in the database

22
Q

Which of the following is a common representation for a ternary relationship in an ER diagram?

o A) A triangle
o B) A diamond connecting three entities
o C) A rectangle connected by three lines
o D) A dashed rectangle

A

A diamond connecting three entities

23
Q

In a relational schema, how are attributes of a weak entity represented?

o A) As foreign keys referencing the strong entity
o B) As primary keys
o C) As unique identifiers
o D) As null values

A

As foreign keys referencing the strong entity

24
Q

In an ER diagram, what is the effect of a participation constraint?

o A) It specifies whether all or some entities in a set must participate in a relationship.
o B) It defines the uniqueness of an entity.
o C) It determines the number of attributes in a relationship.
o D) It indicates the strength of the relationship.

A

It specifies whether all or some entities in a set must participate in a relationship.

25
How are derived attributes represented in an ER diagram? ## Footnote o A) As a dashed oval o B) As a solid oval o C) As a rectangle o D) As a diamond
As a dashed oval
26
What is the primary goal of using the Enhanced ER model? ## Footnote o A) To simplify relationships o B) To provide a more detailed representation of entities and relationships o C) To minimize redundancy o D) To enforce data integrity
To provide a more detailed representation of entities and relationships
27
In the context of mapping ER diagrams to relational schemas, what role does a ## Footnote o A) It serves as a primary key composed of multiple attributes. o B) It is used to identify weak entities. o C) It can replace foreign keys. o D) It is unnecessary in relational design.
It serves as a primary key composed of multiple attributes.
28
In an ER diagram, how is a multi-valued attribute represented? ## Footnote o A) With a single oval o B) With a double oval o C) With a diamond o D) With a rectangle
With a double oval
29
What is the effect of normalization on a relational database? ## Footnote o A) It increases data redundancy. o B) It improves data integrity and eliminates redundancy. o C) It complicates the structure of the database. o D) It reduces the number of entities.
It improves data integrity and eliminates redundancy.
30
What does the term "aggregation" refer to in the context of ER models? ## Footnote o A) Combining multiple entities into one o B) A higher-level abstraction that combines entities and relationships o C) The process of eliminating redundant data o D) The merging of attributes
A higher-level abstraction that combines entities and relationships
31
What is the primary focus of the Enhanced ER model compared to the basic ER model? ## Footnote o A) Data integrity o B) Complexity of relationships o C) Expressiveness and detail in modeling o D) Simplicity of design
Expressiveness and detail in modeling