chapter 3 Flashcards
Which of the following is not something a model of database structures must be able to describe?
The sequence that entities are accessed
Which of the following would be least likely to be represented with a Unified Modeling Language (UML) Class
The number of trucks used in the delivery
Which of the following is the best description of an association
The relationship between two classes
Which of following are possible options for minimum multiplicities?
0 and 1
Which of the following best describes the purpose of a primary key
Uniquely identifies each instance of the class
Which of the following statements about foreign keys is not true
A foreign key cannot be NULL
Which of the following is not a criterion for selection of a primary key
Longer key values are better than shorter key values
Which of the following is not a best practice in preparing Unified Modeling Language (UML) Class diagrams
Model each process separately
Which of the following is not a step in using a Unified Modeling Language (UML) Class model to prepare a database
Map Associations to Primary Keys
Which of the following is not a form of business rules
Compulsory
Which of the following is a well-formed business rule
All of these are well-formed business rules
Entity-relationship diagrams (ERDs) are similar in content and purpose to Unified Modeling Language (UML) Class diagrams. Which of the following is not a basic building block of ERDs
Associations
Consider an association between a Customers class and a Sale class in a Unified Modeling Language (UML) Class diagram. The multiplicities next to the Customers class are 1..1 and the multiplicities next to the Sale class are 0..*. Which of the following is the best way to implement that association in your database?
Post the primary key of Customers as a foreign key in Sales
Consider an association between a Sales class and an Inventory class in a Unified Modeling Language (UML) Class diagram. The multiplicities next to the Sales class are 0..* and the multiplicities next to the Inventory class are 1..*. Which of the following is the best way to implement that association in your database
Create a linking table
Consider an association between a Cash Disbursements class and a Cash Accounts class in a Unified Modeling Language (UML) Class diagram. The multiplicities next to the Cash Disbursements class are 0..* and the multiplicities next to the Cash Accounts class are 1..1. Which of the following is the best way to implement that association in your database?
Post the primary key of Cash Accounts as a foreign key in Cash Disbursements