You are on page 1of 6

Results Reporter

Out of 10 questions, you answered 8 correctly with a final grade of 80%


8 correct
(80%)
2
incorrect
(20%)
0
unanswe
red (0%)

Your Results:
The correct answer for each question is indicated by a
Online Quiz

no

Data Modeling

.
4955963

0078025494
1

1
INCORRECT

Which of the following is not something a model of database structures must be


able to describe?

A)

B)

C)

D)

The entities or things in the domain of interest

Process workflow

How many instances of one entity can be related to another

The business reason that two entities are connected

Feedback: Activity diagrams describe workflow but structure diagrams do


not.

2 CORRECT
Which of the following would be least likely to be represented with a UML Class?
Delivery vans
A)

B)

C)

D)

The number of delivery vans used in the delivery

The employee driving the delivery van

The customer receiving the delivery

Feedback: The number of delivery vans would be indicated with the


multiplicities

3 CORRECT
Which of the following best describes the purpose of a primary key?

A)

B)

C)

D)

Describes the characteristics of the class

Allows two tables to be connected

Matches values of foreign keys in other classes

Uniquely identifies each instance of the class

Feedback: The definition of a primary key: A primary key uniquely defines


each instance of a class in a data model or each row in a table in a database.

4
INCORRECT

Which of the following statements about foreign keys is not true?

A)

B)

C)

A foreign key can be a combination of attributes.

A foreign key cannot be blank.

A foreign key links to a primary key in another table.


Tables may contain multiple foreign keys.

D)

Feedback: Foreign keys can be NULL (blank).

5 CORRECT
Which of the following is not a step in using a UML Class model to prepare a
database?

A)

B)

C)

D)

Map Associations to Primary Keys.

Map Associations to Foreign Keys.

Map Classes to Tables.

Map Attributes to Table Fields.

Feedback: The process is: Map classes to tables, Map Class Attributes to
Table Fields and Assign Primary Keys, Map associations to foreign keys,
Create New Tables to Implement Many-to-Many Relationships, Implement
Relationships Among Tables.

6 CORRECT
Consider the following diagram with an association between Customers and
Sales. Which of the following is the best way to implement that association in
your database?

A)

B)

C)

D)

Post the primary key of Customers as a foreign key in Sales.

Post the primary key of Sales as a foreign key in Customers.

Create a linking table.

None of the above.

Feedback: Each sale would only have one customer, but each customer could
be involved in many sales. Thus, the foreign key posted in Sales is the
primary key for Customers.

7 CORRECT
Consider the following diagram with an association between Sales and Inventory
Classes. Which of the following is the best way to implement that association in
your database?

A)

B)

C)

D)

Post the primary key of Sales as a foreign key in Inventory.

Post the primary key of Inventory as a foreign key in Sales.

Create a linking table.

None of the above.

Feedback: This is an example of a many-to-many relationship (where the


maximum multiplicity on both sides of the association is many (*). These are
implemented with linking tables.

8 CORRECT
Consider the following diagram with an association between Cash and Cash
Disbursements Classes. Which of the following is the best way to implement that
association in your database?

Post the primary key of Cash Disbursements as a foreign key in Cash


A)Accounts.

Post the primary key of Cash Accounts as a foreign key in Cash


B)Disbursements.

C)

D)

Create a linking table.

None of the above.

Feedback: The primary key of Cash Accounts would become a foreign key in
Cash Disbursements. Think of a check. The magnetic coding indicates the

account (and bank and routing symbol).

9 CORRECT
Consider the following diagram with an association between Pet Owners class
and a Pets class in a UML Class diagram. Which of the following is the best way
to implement that association in your database?

A)

B)

C)

D)

Post the primary key of Pet Owners as a foreign key in the Pets.

Post the primary key of Pets as a foreign key in Pet Owners.

Create a linking table.

None of the above.

Feedback: Each pet owner could own one or more pets, but each pet is
owned by one owner. This indicates that the primary key of Pet Owners
should be posted as a foreign key in Pets.

10
CORRECT

Consider the following diagram with an association between Cash Disbursements


and Vendors classes in a UML Class diagram. Which of the following is the best
way to implement that association in your database?

A)

B)

C)

D)

Post the primary key of Cash Disbursements as a foreign key in Vendors.

Post the primary key of Vendors as a foreign key in Cash Disbursements.

Create a linking table.

None of the above.

Feedback: Each vendor could receive many checks (cash disbursements) so

you can't post the primary key of Cash Disbursements in the Vendors class.

You might also like