data Flashcards

1
Q

What does ERD stand for?

o A) Entity Relationship Data
o B) Entity Relational Diagram
o C) Entity Relationship Diagram
o D) Entity Realization Diagram

A

Entity Relationship Diagram

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

Which symbol is commonly used to represent an entity in an ERD?

o A) Rectangle
o B) Oval
o C) Diamond
o D) Triangle

A

Rectangle

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

What does a relationship represent in an ERD?

o A) A unique identifier
o B) A connection between entities
o C) An attribute of an entity
o D) A database table

A

A connection between entities

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

Which symbol represents a relationship in an ERD?

o A) Rectangle
o B) Oval
o C) Diamond
o D) Triangle

A

Diamond

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

What is the purpose of attributes in an ERD?

o A) To define the relationships
o B) To describe the properties of an entity
o C) To create entities
o D) To link tables

A

To describe the properties of an entity

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

What type of attribute can have multiple values?

o A) Simple attribute
o B) Composite attribute
o C) Multi-valued attribute
o D) Derived attribute

A

Multi-valued attribute

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

Which of the following best describes a composite attribute?

o A) An attribute with a unique value
o B) An attribute that can be broken down into smaller parts
o C) An attribute that is calculated from other attributes
o D) An attribute that can have multiple values

A

An attribute that can be broken down into smaller parts

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

What is the role of a foreign key in a database?

o A) To uniquely identify a record
o B) To link two tables together
o C) To provide data integrity
o D) To define an attribute

A

To link two tables together

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

What is the cardinality of a relationship?

o A) The number of entities involved
o B) The type of relationship
o C) The number of attributes in an entity
o D) The number of relationships in a diagram

A

The number of entities involved

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

What does an oval represent in an ERD?

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

A

An attribute

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

In ER modeling, what does ‘normalization’ refer to?

o A) Simplifying the diagram
o B) Organizing data to reduce redundancy
o C) Creating more entities
o D) Adding more attributes

A

Organizing data to reduce redundancy

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

What is a derived attribute?

o A) An attribute that is static
o B) An attribute calculated from other attributes
o C) An attribute that can have multiple values
o D) An attribute that is always unique

A

An attribute calculated from other attributes

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

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

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

A

Many-to-zero

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

Which of the following best describes a ‘one-to-one’ relationship?

o A) One entity relates to many entities
o B) Each entity relates to exactly one other entity
o C) Many entities relate to many entities
o D) One entity relates to zero entities

A

Each entity relates to exactly one other entity

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

Which of the following is a characteristic of a primary key?

o A) It can contain duplicate values
o B) It can be null
o C) It must be unique for each record
o D) It is always an auto-increment field

A

It must be unique for each record

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

Which of the following is true about weak entities?

o A) They can exist independently.
o B) They depend on a strong entity.
o C) They have their own primary key.
o D) They cannot have relationships.

A

They depend on a strong entity

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

What is the significance of an ‘attribute type’?

o A) It defines the relationships between entities.
o B) It determines how data is stored.
o C) It categorizes attributes based on their functionality.
o D) It specifies the cardinality of a relationship.

A

It determines how data is stored

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

Which type of diagram is used to visually represent entities and their relationships?

o A) Flowchart
o B) ERD
o C) UML diagram
o D) Class diagram

A

ERD

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

What is the purpose of an ERD in database design?

o A) To document data flow
o B) To illustrate data relationships
o C) To define user interfaces
o D) To create backup plans

A

To illustrate data relationships

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

Which of the following is an example of a multi-valued attribute?

o A) Date of birth
o B) Phone numbers
o C) Email address
o D) Employee ID

A

Phone numbers

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

What does it mean when an entity is represented with a rounded rectangle?

o A) It is a weak entity.
o B) It is an associative entity.
o C) It is an attribute.
o D) It is a strong entity.

A

It is a strong entity

not sure

not sure 8aleban c mesh d

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

Which of the following correctly represents a ‘one-to-many’ relationship?

o A) 1:1
o B) 1:N
o C) M:N
o D) N:1

A

1:N

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

What is a composite key?

o A) A key composed of multiple attributes
o B) A key that is derived from other attributes
o C) A single attribute key
o D) A key that is always unique

A

A key composed of multiple attributes

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

What does a ‘relationship attribute’ represent?

o A) An identifier for the relationship
o B) A property of the relationship
o C) A composite attribute
o D) An entitys primary key

A

A property of the relationship

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Which of the following represents a transformed entity? ## Footnote o A) An entity with no relationships o B) An entity derived from other entities o C) A weak entity o D) A composite entity
An entity derived from other entities
26
What is the main goal of creating an ERD? ## Footnote o A) To implement the database o B) To visualize and communicate the data structure o C) To analyze data relationships o D) To enforce data integrity
To visualize and communicate the data structure
27
Which of the following best describes a 'self-referential' relationship? ## Footnote o A) An entity that relates to another entity o B) An entity that relates to itself o C) An entity that has no relationships o D) An entity that can be part of multiple relationships
An entity that relates to itself
28
What does a 'strong entity' mean? ## Footnote o A) An entity with unique attributes o B) An entity that can exist independently o C) An entity that has multiple relationships o D) An entity that has no attributes
An entity that can exist independently
29
In ER modeling, what does 'cardinality' indicate? ## Footnote o A) The number of attributes in an entity o B) The number of entities involved in a relationship o C) The type of relationship o D) The nature of attributes
The number of entities involved in a relationship
30
What is the function of an entity set? ## Footnote o A) To group similar entities o B) To define relationships o C) To categorize attributes o D) To represent derived attributes
To group similar entities
31
Which of the following is an example of a derived attribute? ## Footnote o A) Age (calculated from Date of Birth) o B) First Name o C) Employee ID o D) Phone Number
Age (calculated from Date of Birth)
32
What does EERD stand for? ## Footnote o A) Enhanced Entity Relationship Diagram o B) Extended Entity Relationship Data o C) Entity Enhanced Relationship Diagram o D) Entity Extended Relational Diagram
Enhanced Entity Relationship Diagram
33
Which of the following is a primary purpose of an EERD? ## Footnote o A) To represent complex data relationships o B) To create database tables o C) To visualize SQL queries o D) To manage data storage
To represent complex data relationships
34
What is a superclass in an EERD? ## Footnote o A) An entity with no attributes o B) A generalized entity that can have subclasses o C) An entity that has multiple relationships o D) A weak entity
A generalized entity that can have subclasses
35
Which symbol is used to represent a superclass in an EERD? ## Footnote o A) Rectangle o B) Oval o C) Diamond o D) Double rectangle
Double rectangle
36
What does a specialization hierarchy represent? ## Footnote o A) A single entity with multiple attributes o B) A relationship between two entities o C) A generalization of entities into subclasses o D) A weak entity
A generalization of entities into subclasses
37
What is the purpose of generalization in an EERD? ## Footnote o A) To create unique identifiers o B) To combine multiple entities into a single entity o C) To define relationships o D) To categorize attributes
To combine multiple entities into a single entity
38
What does a diamond shape represent in an EERD? ## Footnote o A) An entity o B) A relationship o C) An attribute o D) A weak entity
A relationship
39
What is an overlapping subclass? ## Footnote o A) Subclasses that can share instances o B) Subclasses that cannot share instances o C) Subclasses derived from multiple superclasses o D) Subclasses with no relationships
Subclasses that can share instances
40
What does a total specialization constraint indicate? ## Footnote o A) Every entity in the superclass must belong to a subclass o B) No entity in the superclass can belong to a subclass o C) Some entities in the superclass may not belong to a subclass o D) All subclasses must have attributes
Every entity in the superclass must belong to a subclass
41
What is the role of an attribute in an EERD? ## Footnote o A) To define relationships between entities o B) To describe properties of an entity o C) To represent the hierarchy of entities o D) To manage database integrity
To describe properties of an entity
42
In EERD, what does a weak entity depend on? ## Footnote o A) A superclass o B) Its own attributes o C) A strong entity o D) A derived attribute
A strong entity
43
What does a 'non-weak' entity mean in EERD terminology? ## Footnote o A) An entity that can exist independently o B) An entity that has no attributes o C) An entity that is derived from another o D) An entity that is always weak
An entity that can exist independently
44
Which of the following relationships can EERDs represent? ## Footnote o A) One-to-one o B) One-to-many o C) Many-to-many o D) All of the above
All of the above
45
In EERDs, what does a double oval typically represent? ## Footnote o A) A composite attribute o B) A multi-valued attribute o C) A derived attribute o D) A weak entity
A multi-valued attribute
46
Which of the following best describes the term 'inheritance' in EERDs? ## Footnote o A) Subclasses inherit attributes from their superclass o B) Entities inherit relationships from other entities o C) Attributes are inherited from attributes o D) Relationships can be inherited
Subclasses inherit attributes from their superclass
47
How are attributes represented in an EERD? ## Footnote o A) Rectangles o B) Ovals o C) Diamonds o D) Triangles
Ovals
48
What does a total generalization indicate? ## Footnote o A) All subclasses must be represented o B) Not all subclasses need to be represented o C) Subclasses can share instances o D) Subclasses cannot share instances
All subclasses must be represented
49
What symbol represents a weak entity set in an EERD? ## Footnote o A) A rectangle with a double border o B) A rectangle with a dashed line o C) A rectangle with a single border o D) A rectangle with a shadow
A rectangle with a double border
50
What is the function of a relationship in an EERD? ## Footnote o A) To define how entities are connected o B) To categorize attributes o C) To specify data types o D) To create backup relationships
To define how entities are connected
51
What is the significance of a generalization hierarchy? ## Footnote o A) It defines the relationships between different entities o B) It groups similar entities into a single superclass o C) It specifies the attributes of an entity o D) It manages database integrity
It groups similar entities into a single superclass
52
Which of the following is an example of a total specialization? ## Footnote o A) A superclass that may not have subclasses o B) A superclass that must have subclasses o C) A superclass with optional attributes o D) A superclass with no relationships
A superclass that must have subclasses
53
What does a 'relationship attribute' represent in an EERD? ## Footnote o A) An attribute of an entity o B) An identifier for the relationship o C) A property of the relationship o D) An attribute of a subclass
A property of the relationship
54
What does a double diamond represent in an EERD? ## Footnote o A) A weak relationship o B) A relationship with attributes o C) A subclass o D) A superclass
A relationship with attributes
55
Which of the following best describes a multi-valued attribute in EERD? ## Footnote o A) An attribute with a single value o B) An attribute that can hold more than one value o C) An attribute that is derived o D) An attribute with no values
An attribute that can hold more than one value
56
What signifies a weak relationship in an EERD? ## Footnote o A) A solid line o B) A dashed line o C) A double line o D) A dotted line
A dashed line
57
Which of the following is NOT a feature of an EERD? ## Footnote o A) Representation of generalization o B) Representation of relationships o C) Representation of SQL queries o D) Representation of attributes
Representation of SQL queries
58
What does a solid line with a circle indicate in an EERD? ## Footnote o A) A mandatory relationship o B) An optional relationship o C) A disjoint subclass o D) A total specialization
An optional relationship
59
Which of the following best describes an attribute's participation in a relationship? ## Footnote o A) The number of attributes in an entity o B) The number of relationships an attribute can have o C) Whether an attribute must exist in a relationship o D) The data type of the attribute
Whether an attribute must exist in a relationship
60
What does an attribute in an EERD typically represent? ## Footnote o A) A unique identifier for an entity o B) A connection between entities o C) A property of an entity o D) An external entity
A property of an entity
61
What does a 'recursive relationship' mean in EERDs? ## Footnote o A) An entity relates to itself o B) An entity relates to multiple entities o C) An attribute is derived from another o D) A subclass relates to a superclass
An entity relates to itself
62
Which of the following is true about weak entities? ## Footnote o A) They have their own primary key. o B) They depend on strong entities for identification. o C) They can exist independently of strong entities. o D) They cannot have attributes.
They depend on strong entities for identification
63
What does a 'composite attribute' indicate in an EERD? ## Footnote o A) An attribute that can be broken down into smaller parts o B) An attribute that is derived o C) An attribute that can have multiple values o D) An attribute with no values
An attribute that can be broken down into smaller parts
64
Which of the following is an example of a superclass-subclass hierarchy? ## Footnote o A) Employee and Manager o B) Product and Category o C) Student and Course o D) All of the above
All of the above ## Footnote A 8aleban
65
What does a 'partial specialization' mean in EERDs? ## Footnote o A) Some entities in the superclass must belong to subclasses o B) All entities in the superclass must belong to subclasses o C) No entities in the superclass can belong to subclasses o D) Subclasses can share attributes
Some entities in the superclass must belong to subclasses
66
What does a dashed oval represent in an EERD? ## Footnote o A) A multi-valued attribute o B) A weak attribute o C) A derived attribute o D) A mandatory attribute
A derived attribute