Ch3

Ace your homework & exams now with Quizwiz!

Which of following are possible options for minimum multiplicities? a. 0 and 1 b. 0 and * c. * and 1 d. 0, 1, and *

a. 0 and 1

Which of the following is not a form of business rules? a. Compulsory b. Obligatory c. Prohibited d. Allowed

a. Compulsory

Consider an association between a Cities class and a Neighborhoods class in a Unified Modeling Language (UML) Class diagram. The multiplicities next to the Cities class are 1..1 and the multiplicities next to the Neighborhoods class are 1..*. Which of the following is the best way to implement that association in your database? a. Post the primary key of Cities as a foreign key in Neighborhoods b. Post the primary key of Neighborhoods as a foreign key in Cities c. Create a linking table d. None of the above

a. Post the primary key of Cities as a foreign key in Neighborhoods

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? a. Post the primary key of Customers as a foreign key in Sales b. Post the primary key of Sales as a foreign key in Customers c. Create a linking table d. None of the above

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

Consider an association between a Pet Owners class and a Pets class in a Unified Modeling Language (UML) Class diagram. The multiplicities next to the Pet Owners class are 1..1 and the multiplicities next to the Pets class are 1..*. Which of the following is the best way to implement that association in your database? a. Post the primary key of Pet Owners as a foreign key in Pets b. Post the primary key of Pets as a foreign key in Pet Owners c. Create a linking table d. None of the above

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

Logical database structure models, including UML Class Diagrams, must be able to describe which of the following? a. The entities in the domain of interest b. The activities performed in the business process c. The operations performed on the database d. The Bachman diagram

a. The entities in the domain of interest

Which of the following statements about foreign keys is not true? a. A foreign key can be a combination of attributes b. A foreign key cannot be NULL c. Foreign key must match values of the linked primary key d. Foreign keys support a defined association

b. A foreign key cannot be NULL

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? a. Relationships b. Associations c. Attributes d. Entities

b. Associations

Which of the following is not one of the building blocks used for creating UML Class Diagrams? a. Classes b. Events c. Associations d. None of the other options are used in UML Class Diagrams

b. Events

Which of the following is not a best practice in preparing Unified Modeling Language (UML) Class diagrams? a. Opt for simplicity b. Model each process separately c. Avoid crossing lines whenever possible d. Avoid confusing abbreviations

b. Model each process separately

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? a. Post the primary key of Cash Disbursements as a foreign key in Cash Accounts b. Post the primary key of Cash Accounts as a foreign key in Cash Disbursements c. Create a linking table d. None of the above

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

Consider an association between a Deliveries class and a Shipping Companies class in a Unified Modeling Language (UML) Class diagram. The multiplicities next to the Deliveries class are 0..* and the multiplicities next to the Shipping Companies class are 1..1. Which of the following is the best way to implement that association in your database? a. Post the primary key of Deliveries as a foreign key in Shipping Companies b. Post the primary key of Shipping Companies as a foreign key in Deliveries c. Create a linking table d. None of the above

b. Post the primary key of Shipping Companies as a foreign key in Deliveries

Consider an association between a Cash Disbursements class and a Vendors 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 Vendors class are 1..1. Which of the following is the best way to implement that association in your database? a. Post the primary key of Cash Disbursements as a foreign key in Vendors b. Post the primary key of Vendors as a foreign key in Cash Disbursements c. Create a linking table d. None of the above

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

Which of the following is not something a model of database structures must be able to describe? a. The entities or things in the domain of interest b. The sequence that entities are accessed c. The cardinalities that describe how many instances of one entity can be related to another d. The attributes or characteristics of the entities and relationships

b. The sequence that entities are accessed

What is the best description of the relationship between employee and vehicle in the following UML class diagram? a. One-to-one b. One-to-many c. Zero-to-many d. One-to-zero

b. one-to-many

Which of the following would be least likely to be represented with a Unified Modeling Language (UML) Class? a.Trucks b. The number of trucks used in the delivery c. The employee driving the truck d. The customer receiving the delivery

b. the number of trucks used in the delivery

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? a. Post the primary key of Sales as a foreign key in Inventory b. Post the primary key of Inventory as a foreign key in Sales c. Create a linking table d. None of the above

c. Create a linking table

Consider an association indicating professional licensing status between an Accountant class and a States class in a Unified Modeling Language (UML) Class diagram. The multiplicities next to the Accountants class are 0..* and the multiplicities next to the States class are 0..*. Which of the following is the best way to implement that association in your database? a. Post the primary key of Accountants as a foreign key in States b. Post the primary key of States as a foreign key in Accountants c. Create a linking table d. None of the above

c. Create a linking table

Which of the following is not a step in using a Unified Modeling Language (UML) Class model to prepare a database? a. Map Classes to Tables b. Map Attributes to Table Fields c. Map Associations to Primary Keys d. Map Associations to Foreign Keys

c. Map Associations to Primary Keys

Which of the following is the best description of an association? a. A group of classes b. The lines in a UML Class diagram c. The relationship between two classes d. The number of times one class is related to another

c. The relationship between two classes

What is the best description of the relationship between employee and vehicle in the following UML class diagram? a. Zero-to-one b. Zero-to-zero c. One-to-one d. One-to-many

c. one-to-one

Which of the following is a well-formed business rule? a. Customers must be over 18 years of age b. Customers may not be under 18 years of age c. Customers must pay in U. S. dollars d. All of these are well-formed business rules

d. All of these are well-formed business rules

Which of the following is not a criterion for selection of a primary key? a. The primary key cannot be NULL (blank) b. The primary key should be controlled by the organization assigning it c. Primary keys with sequential values make it easier to spot gaps in the data d. Longer key values are better than shorter key values

d. Longer key values are better than shorter key values

Associations in UML Class Diagrams should include a description in which of the following situations? a. Associations should always include descriptions b. The decision criterion(a) affecting the process flow direction is not clear c. The attributes of the related class are not clear d. The business purpose of the association is not clear

d. The business purpose of the association is not clear

Which of the following best describes the purpose of a primary key? a. Allows linking two or more tables b. Indicates the minimum multiplicities for an association c. Matches values of foreign keys in other classes d. Uniquely identifies each instance of the class

d. Uniquely identifies each instance of the class

What is the best description of the relationship between instructor and course in the following UML class diagram? a. One-to-zero b. One-to-many c. Zero-to-many d. Many-to-many

d. many-to-many


Related study sets

3.3 Some Proteins Act as Enzymes to Speed up Biochemical Reactions

View Set

Pearson Chapter 19 Review Questions

View Set

USMLE Pretest Physiology 14th Edition Questions

View Set

Introduction to Construction Management Unit 3

View Set

Chapter 5 Supporting the Power System and Troubleshooting Computers M/C

View Set