wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

chap4

Total questions: 101

Worksheet time: 51mins

Name
Class
Date
1.

A form of database design which maps conceptual requirements is called:

a)

logical designs

b)

response designs

c)

security design

d)

physical design

2.

Data is represented in the form of:

a)

data trees

b)

tables

c)

data notes

d)

chairs

3.

A two-dimensional table of data sometimes is called a:

a)

group

b)

set

c)

declaration

d)

relation

4.

__________ is a component of the relational data model included to specify business rules to maintain the integrity of data when they are manipulated.

a)

Business rule constraint

b)

Data integrity

c)

Business integrity

d)

Data structure

5.

An attribute (or attributes) that uniquely identifies each row in a relation is called a:

a)

column

b)

foreign field

c)

primary key

d)

duplicate key

6.

An attribute in a relation of a database that serves as the primary key of another relation in the same database is called a:

a)

link attribute

b)

link key

c)

foreign key

d)

foreign attribute

7.

A primary key whose value is unique across all relations is called a(n):

a)

global primary key

b)

inter-table primary key

c)

enterprise key

d)

foreign global key

8.

A primary key that consists of more than one attribute is called a:

a)

foreign key

b)

composite key

c)

multivalued key

d)

cardinal key

9.

In the SQL language, the ________ statement is used to make table definitions.

a)

create session

b)

create table

c)

create index

d)

select

10.

In the figure below, the primary key for "Order Line" is which type of key?

a)

Composite

b)

Foreign

c)

Standard

d)

Grouped

11.

Which of the following is NOT a reason to create an instance of a relational schema with sample data?

a)

Sample data can be used to improve user communications.

b)

Sample data can be used for prototype generation.

c)

Sample data can reverse database implementation errors.

d)

Sample data provide a convenient way to check the accuracy of your design.

12.

A domain definition consists of all of the following components EXCEPT:

a)

domain name

b)

data type

c)

integrity constraints

d)

size

13.

Which of the following are properties of relations?

a)

Each attribute has the same name.

b)

No two rows in a relation are identical.

c)

There are multivalued attributes in a relation.

d)

All columns are numeric.

14.

Which of the following violates the atomic property of relations?

a)

Sam

b)

Hinz

c)

Sam Hinz

d)

Atomic

15.

The entity integrity rule states that:

a)

no primary key attribute can be null.

b)

referential integrity must be maintained across all entities.

c)

each entity must have a primary key.

d)

a primary key must have only one attribute.

16.

The ______ states that no primary key attribute may be null.

a)

referential integrity constraint

b)

entity integrity rule

c)

partial specialization rule

d)

range domain rule

17.

In the figure below, Customer_ID in the CUSTOMER Table is which type of key?

a)

Composite

b)

Candidate

c)

Standard

d)

Grouped

18.

All of the following are the main goals of normalization EXCEPT:

a)

minimize data redundancy.

b)

simplify the enforcement of referential integrity.

c)

maximize storage space.

d)

make it easier to maintain data.

19.

When all multivalued attributes have been removed from a relation, it is said to be in:

a)

first normal form.

b)

second normal form.

c)

Boyce-Codd normal form.

d)

third normal form.

20.

The normal form which removes any remaining functional dependencies because there was more than one primary key for the same nonkeys is called:

a)

fifth normal form.

b)

fourth normal form.

c)

Boyce-Codd normal form.

d)

sixth normal form.

21.

The normal form which deals with multivalued dependencies is called:

a)

fifth normal form.

b)

fourth normal form.

c)

Boyce-Codd normal form.

d)

sixth normal form.

22.

A relation that contains no multivalued attributes and has nonkey attributes solely dependent on the primary key but contains transitive dependencies is in which normal form?

a)

First

b)

Second

c)

Third

d)

Fourth

23.

A constraint between two attributes is called a(n):

a)

functional relation.

b)

attribute dependency.

c)

functional dependency.

d)

functional relation constraint.

24.

A candidate key must satisfy all of the following conditions EXCEPT:

a)

the key must uniquely identify the row.

b)

the key must indicate the row's position in the table.

c)

the key must be nonredundant.

d)

each nonkey attribute is functionally dependent upon it.

25.

The attribute on the left-hand side of the arrow in a functional dependency is the:

a)

candidate key.

b)

determinant.

c)

foreign key.

d)

primary key.

26.

A functional dependency in which one or more nonkey attributes are functionally dependent on part, but not all, of the primary key is called a ________ dependency.

a)

partial key-based

b)

partial functional

c)

cross key

d)

merged relation

27.

A functional dependency between two or more nonkey attributes is called a:

a)

partial functional dependency.

b)

partial nonkey dependency.

c)

transitive dependency.

d)

partial transitive dependency.

28.

________ problems are encountered when removing data with transitive dependencies.

a)

Insertion

b)

Modification

c)

Deletion

d)

Merging

29.

The need to ________ relations commonly occurs when different views need to be integrated.

a)

metadata

b)

system

c)

drop

d)

merge

30.

Two or more attributes having different names but the same meaning are called:

a)

homonyms.

b)

aliases.

c)

synonyms.

d)

alternate attributes.

31.

An attribute that may have more than one meaning is called a(n):

a)

homonym.

b)

alias.

c)

double defined attribute.

d)

synonym.

32.

An alternative name for an attribute is called a(n):

a)

synonym.

b)

alias.

c)

alternate attribute.

d)

related characteristic.

33.

Understanding the steps involved in transforming EER diagrams into relations is important because:

a)

one must be able to check the output of a CASE tool.

b)

there are rarely legitimate alternatives from which to choose.

c)

CASE tools can model any situation.

d)

CASE tools model hypothetical business problems.

34.

A nonkey attribute is also called a(n):

a)

column.

b)

unimportant datum.

c)

descriptor.

d)

address.

35.

When a regular entity type contains a multivalued attribute, one must:

a)

create a single relation with multiple lines for each instance of the multivalued attribute.

b)

create two new relations, one containing the multivalued attribute.

c)

create two new relations, both containing the multivalued attribute.

d)

delete the relation and start over.

36.

In the figure below, what type of relationship do the relations depict? The figure shows an Employee relation with columns Employee_ID and Employee_Name, and a Child relation with columns Name, Employee_ID, Date of Birth, and Gender; an arrow indicates the identifying relationship between Child and Employee via Employee_ID.

a)

Identifying entity/weak entity

b)

Multivalued

c)

Composite foreign key

d)

One-to-many

37.

In the figure below, what type of relationship do the relations depict?

a)

Identifying entity/weak entity

b)

One-to-many

c)

Ternary

d)

Many-to-many

38.

In the figure below, what is depicted?

a)

A one-to-one relationship

b)

A unary relationship

c)

A one-to-many relationship

d)

An associative entity

39.

In the figure below, what type of key is depicted?

a)

Primary

b)

Recursive primary

c)

Composite

d)

Recursive foreign

40.

Referring to the figure below, which of the following is NOT true?

a)

A component is part of an item.

b)

A component is always used in only one item.

c)

A component can be part of an item.

d)

A component may be used in many items.

41.

The figure below is an example of mapping which type of relationship?

a)

First

b)

Second

c)

Unary

d)

Ternary

42.

A rule that states that each foreign key value must match a primary key value in the other relation is called the:

a)

referential integrity constraint

b)

key match rule

c)

entity key group rule

d)

foreign/primary match rule

43.

______ anomalies can be caused by editing data in tables.

a)

Insertion

b)

Deletion

c)

Modification

d)

Creation

44.

A relation that contains minimal redundancy and allows easy use is considered to be:

a)

clean

b)

simple

c)

complex

d)

well-structured

45.

Data structures include data organized in the form of tables with rows and columns.

a)

True

b)

False

46.

A composite key consists of only one attribute.

a)

True

b)

False

47.

A primary key is an attribute that uniquely identifies each row in a relation.

a)

True

b)

False

48.

A foreign key is a primary key of a relation that also is a primary key in another relation.

a)

True

b)

False

49.

Sample data are useful for developing prototype applications and for testing queries.

a)

True

b)

False

50.

An enterprise key is a foreign key whose value is unique across all relations.

a)

True

b)

False

51.

One property of a relation is that each attribute within a relation has a unique name.

a)

True

b)

False

52.

There can be multivalued attributes in a relation.

a)

True

b)

False

53.

The columns of a relation can be interchanged without changing the meaning or use of the relation.

a)

True

b)

False

54.

Unlike columns, the rows of a relation may not be interchanged and must be stored in one sequence.

a)

True

b)

False

55.

All values that appear in a column of a relation must be taken from the same domain.

a)

True

b)

False

56.

View integration is the process of merging relations together.

a)

True

b)

False

57.

A synonym is an attribute that may have more than one meaning.

a)

True

b)

False

58.

When two or more attributes describe the same characteristic of an entity, they are synonyms.

a)

True

b)

False

59.

CASE tools can model more complex data relationships, such as ternary relationships.

a)

True

b)

False

60.

When a regular entity type contains a multivalued attribute, two new relations are created.

a)

True

b)

False

61.

When transforming a weak entity, one should create one relation with both the attributes of the strong entity and the attributes of the weak entity.

a)

True

b)

False

62.

The primary key of the many side migrates to the one side when transforming a one-to-many relationship.

a)

True

b)

False

63.

When transforming a one-to-one relationship, a new relation is always created.

a)

True

b)

False

64.

If an identifier is not assigned, the default primary key for an associative relation consists of the two primary key attributes from the other two relations.

a)

True

b)

False

65.

An identifier assigned to an associative entity is also called a cross-relation key.

a)

True

b)

False

66.

In the figure below, each employee has exactly one manager.

a)

True

b)

False

67.

When transforming a unary many-to-many relationship to relations, a recursive foreign key is used.

a)

True

b)

False

68.

The relational data model does, at this time, directly support subtype/supertype relationships.

a)

True

b)

False

69.

Data integrity consists of powerful operations to manipulate data stored in relations.

a)

True

b)

False

70.

The allowable range of values for a given attribute is part of the domain constraint.

a)

True

b)

False

71.

The entity integrity rule states that a primary key attribute can be null.

a)

True

b)

False

72.

In the relational data model, associations between tables are defined through the use of primary keys.

a)

True

b)

False

73.

A referential integrity constraint is a rule that maintains consistency among the rows of two relations.

a)

True

b)

False

74.

A cascading delete removes all records in other tables associated with the record to be deleted.

a)

True

b)

False

75.

The truncate table statement in SQL creates a new table.

a)

True

b)

False

76.

A well-structured relation contains minimal redundancy and allows users to manipulate the relation without errors or inconsistencies.

a)

True

b)

False

77.

An anomaly is a type of flaw in the database server.

a)

True

b)

False

78.

When normalizing, the goal is to decompose relations with anomalies to produce smaller, well-structured relations.

a)

True

b)

False

79.

A relation in fifth normal form may not contain any anomalies.

a)

True

b)

False

80.

A co-dependency is a constraint between two attributes or two sets of attributes.

a)

True

b)

False

81.

A candidate key is an attribute, or combination of attributes, that uniquely identifies a row in a relation.

a)

True

b)

False

82.

A relation is in first normal form if it has no more than one multivalued attribute.

a)

True

b)

False

83.

A partial functional dependency is a functional dependency in which one or more nonkey attributes are functionally dependent on part (but not all) of the primary key.

a)

True

b)

False

84.

A transversal dependency is a functional dependency between two or more nonkey attributes.

a)

True

b)

False

85.

Anomalies do not generally arise out of transitive dependencies.

a)

True

b)

False

86.

Which description accurately summarizes various relational keys?

a)

A primary key uniquely identifies each row; it can be a single column or a composite of columns, and a foreign key in one table references a primary key in another table to represent relationships.

b)

A primary key labels a table; composite keys are prohibited, and foreign keys reference nonkey attributes in the same table.

c)

Primary keys may be null and need not be unique; composite keys are only allowed with text columns, and foreign keys create new tables when referenced.

d)

A foreign key uniquely identifies each row; primary keys reference foreign keys in another table, and composite keys are only for temporary tables.

87.

Which statement best captures the properties of relations in a relational database?

a)

Each table (relation) has a unique name; each row is unique; each attribute within a table has a unique name; each cell contains an atomic value; the order of rows and columns is insignificant.

b)

Tables may share names; rows can repeat; attributes need not be uniquely named; cells may store multiple values; the order of rows and columns determines meaning.

c)

Each table must be ordered by primary key; rows may duplicate; attributes can be duplicated across a table; cells must store lists; column order conveys constraints.

d)

Tables require unique column order; rows are unique only if indexed; attributes may share names; cells are unrestricted and can store sets.

88.

Why is it important to remove multivalued attributes from a relation, and how is this typically resolved?

a)

Because relations require atomic values, multivalued attributes violate the definition; they are resolved by creating a separate instance for each value and repeating the non-multivalued attributes.

b)

Because multivalued attributes improve performance, they must be removed and replaced with a single summary value stored in the original table.

c)

Because normalization requires all attributes to be numeric, multivalued text attributes are removed by converting them into codes within the same row.

d)

Because foreign keys cannot reference multivalued attributes, they are removed by deleting the entire row and inserting a single value per attribute.

89.

Which benefits result from creating an instance of your relational schema with sample data? Select all that apply.

a)

Testing assumptions about the design

b)

Conveniently checking the accuracy of the schema

c)

Improving communication with users

d)

Developing prototype applications and sample queries

90.

Explain what a candidate key is and how it might be used.

a)

An attribute or combination of attributes that uniquely identifies each row, is nonredundant, and can be used as a primary key or determinant

b)

Any attribute that appears in more than one table and is used solely for joins

c)

A numeric identifier assigned by the DBMS to speed up indexing but not to identify rows

d)

A set of attributes used for sorting data but not for enforcing uniqueness

91.

Discuss how you would map a regular entity to a relation.

a)

Create one relation for the entity; choose a primary key; decompose composite attributes into their components; convert multivalued attributes into separate relations; ignore derived attributes

b)

Create multiple relations for the same entity, one per simple attribute, and make all derived attributes the primary keys

c)

Create one relation and store composite and multivalued attributes in repeating groups inside the same table

d)

Create a relation with no primary key, keeping all attributes as they appear in the E-R diagram

92.

How do you convert weak entities to relations?

a)

Create a relation whose primary key includes the strong entity’s primary key together with the weak entity’s identifying attribute

b)

Create a relation with its own independent surrogate primary key and no reference to the strong entity

c)

Create a relation that uses only the weak entity’s partial key as the primary key

d)

Do not create a separate relation; instead merge weak entities into the strong entity’s relation as optional columns

93.

Discuss when it is best to create a surrogate key for an associative entity.

a)

When a composite primary key would be large or inefficient, when a natural key is long or recycled, or when the associative entity relates to more than two relations

b)

Only when the associative entity has no attributes of its own

c)

Whenever there is any foreign key in the relation, regardless of size or reuse

d)

When you want to eliminate all joins between related tables

94.

Discuss the two possible scenarios when mapping an associative entity.

a)

If the associative entity has its own identifier, use it as the primary key; otherwise, use a composite primary key formed from the primary keys of the related relations

b)

Always assign a new surrogate key and ignore keys from related relations

c)

Use the foreign key from just one related relation as the primary key in the associative relation

d)

Do not create a relation; embed associative attributes into one of the participating entity relations

95.

Discuss how to map a unary one-to-many relationship.

a)

Map the entity type to a relation and add a recursive foreign key that references the relation’s own primary key

b)

Create two separate relations, one for the entity and one for the relationship, both with independent primary keys

c)

Use a multivalued attribute to represent the relationship within the same relation

d)

Merge the relationship into a different entity’s relation using an external foreign key

96.

Discuss how to map a unary many-to-many relationship.

a)

Create one relation for the entity type and a separate associative relation with two attributes that both reference the primary key of the entity relation

b)

Use a single relation with a repeating group to store multiple references to the same entity

c)

Add a single foreign key column to the entity relation referencing itself

d)

Create a surrogate key and eliminate the need for an associative relation

97.

Explain how subtype/supertype relationships are converted to relations.

a)

Create one relation for the supertype containing common attributes and a primary key; create a relation for each subtype that uses the supertype’s primary key and adds subtype-specific attributes; add discriminator attribute(s) to the supertype

b)

Merge all subtypes into the supertype relation and remove subtype-specific attributes

c)

Create separate relations for subtypes only, with no supertype relation or discriminator

d)

Assign a surrogate key to each subtype and avoid using the supertype’s primary key

98.

Discuss the types of integrity constraints.

a)

Domain constraints, entity integrity, and referential integrity

b)

Key constraints, trigger integrity, and transaction integrity

c)

Domain constraints, tuple ordering, and view integrity

d)

Referential integrity only

99.

What is an anomaly, and what are the three types of anomalies?

a)

An error or inconsistency during updates; insert anomaly

b)

An error or inconsistency during updates; deletion anomaly

c)

An error or inconsistency during updates; modification (update) anomaly

d)

A performance slowdown during queries; indexing anomaly

100.

Discuss the two major occasions when you benefit from using normalization.

a)

During logical database design as a check and balance before physical design

b)

When reverse-engineering older systems to reduce redundant tables and user views

c)

When designing network topology to improve bandwidth

d)

When creating presentation-layer views for reporting only

101.

List and explain 1st, 2nd, 3rd, BCNF, 4th, and 5th normal forms.

a)

1NF removes repeating groups; 2NF removes partial functional dependencies; 3NF removes transitive dependencies; BCNF removes remaining dependencies causing anomalies; 4NF removes multivalued dependencies; 5NF removes any further anomalies

b)

1NF enforces referential integrity; 2NF defines surrogate keys; 3NF removes domain constraints; BCNF introduces repeating groups; 4NF adds multivalued attributes; 5NF eliminates composite keys

c)

1NF creates composite keys; 2NF removes all foreign keys; 3NF partitions tables by subject; BCNF bans nulls; 4NF requires unique indexes; 5NF defines triggers

d)

1NF removes transitive dependencies; 2NF removes multivalued dependencies; 3NF removes partial dependencies; BCNF removes domain constraints; 4NF removes composite keys; 5NF adds repeating groups