Chapter 03 Data Modeling
1.
The Object Management Group maintains the standard for Unified Modeling Language (UML) Class diagrams. True
False
2. Unified Modeling Language (UML) Class diagrams describe the logical structure of a database system. True
False
3. A Class is a separately identifiable collection of business relationships. relationships. True
False
4. In Unified Modeling Language (UML) Class diagrams, a Class is represented by a rectangle. True
False
5. In Unified Modeling Language (UML) Class diagrams, Associations are represented by d ashed lines. True
False
6. In Unified Modeling Language (UML) the options for minimum multiplicity multiplicity values are 0, 1, and 2. True
False
3-1 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
7.
In Unified Modeling Language (UML) the options for maximum multiplicity multiplicity values are 1 and *. True
False
8. In Unified Modeling Language (UML) the options for maximum multiplicity multiplicity values are 0 and *. True
False
9. In Unified Modeling Language (UML) the options for minimum multiplicity values are are 1 and *. True
False
10. In Unified Modeling Language (UML) attributes are characteristics of individual instances of a Class. True
False
11. In Unified Modeling Language (UML) primary keys cannot by NULL. True
False
12. In Unified Modeling Language (UML) primary keys may be blank. True
False
13. In Unified Modeling Language (UML) foreign keys allow tables to be linked together in a database. True
False
14. A generalization relationship relationship models a grouping of things that share common characteristics. True
False
15. An aggregation relationship is a form of generalization relationships. True
False
3-2 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
16. Associations can indicate the roles that one Class takes in its business relationship with another Class. True
False
17. A database should have exactly the same number of tables as there are Classes in the Unified Modeling Language (UML) Class diagram from which the database is developed. True
False
18. When building a database from Unified Modeling Language (UML) Class diagrams, each instance of each Class becomes a row in the corresponding table. True
False
19. Obligatory business rules state what should not occur. True
False
20. Business rules set criteria for branching in activity models. True
False
21. 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 rela tionships
3-3 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
22. 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 23. 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 24. Which of following are possible options for minimum multiplicities? multiplicities?
A. 0 and 1 B. 0 and * C. * and 1 D. 0, 1, and * 25. 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
3-4 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
26. 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. 27. 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. 28. 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. 29. 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.
3-5 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
30. Which of the following is not a form of business rules?
A. Compulsory B. Obligatory C. Prohibited D. Allowed 31. 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. 32. Entity-relationship 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 33. 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.
3-6 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
34. 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 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. 35. 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 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. Disbursements. C. Create a linking table. D. None of the above. 36. 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 the 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.
3-7 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
37. 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. 38. 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. 39. 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.
3-8 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
40. 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.
41. Identify the classes and associations in the following narrative and draw a class diagram with multiplicities: multiplicities: Dr. Jeff runs Fountain Valley Veterinary Clinic. He treats many animals and each animal is usually a pet belonging to one owner; however, Dr. Jeff sometimes treats injured animals animals even if the owner is unknown. In a typical visit to the clinic, each animal could receive one or mo re clinic services (such as tests, shots, and surgical treatments). The clinic collects one payment from the owner for all the clinic services performed in each visit. The owners pay for the visit when they pick up their pet, so the clinic does not track cash c ash receipts separately. It only tracks pet visits and whether or not payment was received for that visit. Each payment is deposited into one clinic bank account. The clinic does not track which employee performs the services or collects payments. The clinic records information about the pets and their owners on their first visit.
3-9 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
42. List the tables with primary keys, attributes, and foreign keys that implement the following UML Class diagram given the accompanying list of attributes. I dentify primary keys with PK and foreign keys with FK.
3-10 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
43. Identify the classes and associations in the following narrative and draw a class diagram with multiplicities: multiplicities: To put himself through school, Zach operates an ice cream t ruck that travels through neighborhoods, ringing a bell to attract kids that want a cold ice cream treat. Zach's inventory includes many ice cream products and he tracks which items are sold in each sale. He occasionally adds new items to his list of ice cream products for sale. Zach only accepts cash for each sale. To identify the routes that generate the most sales, Zach summarizes sales by neighborhood but he only tracks neighborhoods with at least one sale. Zach Z ach deposits the cash received in his bank b ank account at the end of each day.
3-11 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
44. Identify the classes and associations in the following narrative and draw a class diagram with multiplicities: multiplicities: Barb maintains a real estate tracking system for Orange County. There are currently 34 incorporated cities and 15 unincorporated communities in the county. Barb tracks all of these as cities. Within each city, there is at least one and could be many neighborhoods. Within each neighborhood, there is at least one and likely many houses. For each house, Barb tracks information for all the sales in the last 20 years, although some houses have not been sold in the last 20 years.
3-12 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
45. List the tables with primary keys, attributes, and foreign keys that implement the following UML Class diagram given the accompanying list of attributes.
3-13 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Chapter 03 Data Modeling Answer Key
1.
The Object Management Group maintains the standard for Unified Modeling Language (UML) Class diagrams.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Remembe Difficulty: 1 Eas Learning Objective: 03-01 Understand the purpose of structure models. Source: Origina Topic: Data Modeling
2.
Unified Modeling Language (UML) Class diagrams describe the logical structure of a database system.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Remembe Difficulty: 1 Eas Learning Objective: 03-02 Understand and apply the building blocks for UML Class (structure) Diagrams. Source: Origina Topic: Data Modeling
3.
A Class is a separately identifiable collection of business relationships. relationships.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog 3-14 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Blooms: Remembe Difficulty: 1 Eas Learning Objective: 03-02 Understand and apply the building blocks for UML Class (structure) Diagrams. Source: Origina Topic: Data Modeling
4.
In Unified Modeling Language (UML) Class diagrams, a Class is represented by a rectangle.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Remembe Difficulty: 1 Eas Learning Objective: 03-02 Understand and apply the building blocks for UML Class (structure) Diagrams. Source: Origina Topic: Data Modeling
5.
In Unified Modeling Language (UML) Class diagrams, d iagrams, Associations are represented by dashed lines.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Remembe Difficulty: 1 Eas Learning Objective: 03-02 Understand and apply the building blocks for UML Class (structure) Diagrams. Source: Origina Topic: Data Modeling
6.
In Unified Modeling Language (UML) the options for minimum multiplicity multiplicity values are 0, 1, and 2.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Remembe Difficulty: 1 Eas 3-15 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Learning Objective: 03-03 Describe multiplicities for a UML Class Diagram. Source: Origina Topic: Data Modeling
7.
In Unified Modeling Language (UML) the options for maximum multiplicity multiplicity values are 1 and *.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Remembe Difficulty: 1 Eas Learning Objective: 03-03 Describe multiplicities for a UML Class Diagram. Source: Origina Topic: Data Modeling
8.
In Unified Modeling Language (UML) the options for maximum multiplicity multiplicity values are 0 and *.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Remembe Difficulty: 1 Eas Learning Objective: 03-03 Describe multiplicities for a UML Class Diagram. Source: Origina Topic: Data Modeling
9.
In Unified Modeling Language (UML) the options for minimum multiplicity multiplicity values are 1 and *.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Remembe Difficulty: 1 Eas Learning Objective: 03-03 Describe multiplicities for a UML Class Diagram. Source: Origina Topic: Data Modeling
3-16 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
10.
In Unified Modeling Language (UML) attributes are characteristics characteristics of individual instances of a Class.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-03 Describe multiplicities for a UML Class Diagram. Source: Origina Topic: Data Modeling
11.
In Unified Modeling Language (UML) primary keys cannot by NULL.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Remembe Difficulty: 1 Eas Learning Objective: 03-04 Understand how to implement a relational database from a UML Class Diagram. Source: Origina Topic: Data Modeling
12.
In Unified Modeling Language (UML) primary keys may be blank. b lank.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Remembe Difficulty: 1 Eas Learning Objective: 03-04 Understand how to implement a relational database from a UML Class Diagram. Source: Origina Topic: Data Modeling
3-17 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
13.
In Unified Modeling Language (UML) foreign keys allow tables to be linked together in a database.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Remembe Difficulty: 1 Eas Learning Objective: 03-04 Understand how to implement a relational database from a UML Class Diagram. Source: Origina Topic: Data Modeling
14.
A generalization relationship relationship models a grouping of things that share common characteristics.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Remembe Difficulty: 1 Eas Learning Objective: 03-02 Understand and apply the building blocks for UML Class (structure) Diagrams. Source: Origina Topic: Data Modeling
15.
An aggregation relationship is a form of generalization relationships. relationships.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Remembe Difficulty: 1 Eas Learning Objective: 03-02 Understand and apply the building blocks for UML Class (structure) Diagrams. Source: Origina Topic: Data Modeling
3-18 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
16.
Associations can indicate the roles that one Class takes in its business relationship with another Class.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Remembe Difficulty: 1 Eas Learning Objective: 03-02 Understand and apply the building blocks for UML Class (structure) Diagrams. Source: Origina Topic: Data Modeling
17.
A database should have exactly the same number of tables as there are Classes in the Unified Modeling Language (UML) Class diagram from which the database is developed.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-04 Understand how to implement a relational database from a UML Class Diagram. Source: Origina Topic: Data Modeling
18.
When building a database from Unified Modeling Language (UML) Class diagrams, each instance of each Class becomes a row in the corresponding table.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-04 Understand how to implement a relational database from a UML Class Diagram. Source: Origina Topic: Data Modeling
3-19 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
19.
Obligatory business rules state what should not occur.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Remembe Difficulty: 1 Eas Learning Objective: 03-05 Describe business rules and various forms of rules. Source: Origina Topic: Data Modeling
20.
Business rules set criteria for branching in activity models.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-05 Describe business rules and various forms of rules. Source: Origina Topic: Data Modeling
21.
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 interest The sequence that entities are accessed C. The cardinalities that describe how many instances instances of one entity can be related to another D. The attributes or characteristics characteristics of the entities entities and relationships relationships AACSB: Analytic 3-20 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-01 Understand the purpose of structure models. Source: Origina Topic: Data Modeling
22.
Which of the following would be least likely to be represented with a Unified Modeling Language (UML) Class?
A. Trucks A. The number of trucks used in the delivery C. The employee employee driving driving the truck D. The customer customer receiving receiving the delivery AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-02 Understand and apply the building blocks for UML Class (structure) Diagrams. Source: Origina Topic: Data Modeling
23.
Which of the following is the best description of an association?
A. A group of classes B. The lines lines in a UML Class diagram The relationship between two classes D. The number of times times one class is related to another another AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-02 Understand and apply the building blocks for UML Class (structure) Diagrams. Source: Origina Topic: Data Modeling
3-21 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
24.
Which of following are possible p ossible options for minimum multiplicities? multiplicities?
0 and 1 B. 0 and * C. * and 1 D. 0, 1, and * AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-03 Describe multiplicities for a UML Class Diagram. Source: Origina Topic: Data Modeling
25.
Which of the following best describes the purpose of a primary key?
A. Allows linking linking two or more tables B. Indicates the minimum multiplicities for an association association C. Matches values values of foreign keys in other other classes Uniquely identifies each instance of the class AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-04 Understand how to implement a relational database from a UML Class Diagram. Source: Origina Topic: Data Modeling
3-22 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
26.
Which of the following statements about foreign keys is not true?
A. A foreign key key can be a combination of attributes. A foreign key cannot be NULL. C. Foreign key must must match values of the linked primary primary key. D. Foreign keys support a defined defined association. association. AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-04 Understand how to implement a relational database from a UML Class Diagram. Source: Origina Topic: Data Modeling
27.
Which of the following is not a criterion for selection of a primary key?
A. The primary primary key cannot cannot be NULL (blank). B. The primary key should should be controlled controlled by the organization organization assigning it. C. Primary keys with sequential values make it easier to spot gaps in the data. Longer key values are better than shorter key values. AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-04 Understand how to implement a relational database from a UML Class Diagram. Source: Origina Topic: Data Modeling
3-23 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
28.
Which of the following is not a best practice in preparing Unified Modeling Language (UML) Class diagrams?
A. Opt for simplicity. Model each process separately. C. Avoid crossing crossing lines lines whenever whenever possible. D. Avoid confusing abbreviations. AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-02 Understand and apply the building blocks for UML Class (structure) Diagrams. Source: Origina Topic: Data Modeling
29.
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 Attributes to Table Fields. Map Associations to Primary Keys. D. Map Associations Associations to Foreign Keys. AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-04 Understand how to implement a relational database from a UML Class Diagram. Source: Origina Topic: Data Modeling
3-24 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
30.
Which of the following is not a form of business rules?
Compulsory B. Obligatory B. C. Prohibited C. D. Allowed D. AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Remembe Difficulty: 1 Eas Learning Objective: 03-05 Describe business rules and various forms of rules. Source: Origina Topic: Data Modeling
31.
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. U. S. dollars. dollars. All of these are well-formed business rules. AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-05 Describe business rules and various forms of rules. Source: Origina Topic: Data Modeling
3-25 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
32.
Entity-relationship 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 A. Associations C. Attributes C. D. Entities D. AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-02 Understand and apply the building blocks for UML Class (structure) Diagrams. Source: Origina Topic: Data Modeling
33.
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. B. Post the primary key of Sales as a foreign key in Customers. Customers. C. Create a linking table. D. None of the above. AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-03 Describe multiplicities for a UML Class Diagram. Source: Origina Topic: Data Modeling
3-26 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
34.
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 primary key of Sales as a foreign key in Inventory. B. Post the primary key of Inventory as a foreign key key in Sales. Sales. Create a linking table. D. None of the above. AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-03 Describe multiplicities for a UML Class Diagram. Source: Origina Topic: Data Modeling
35.
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 primary key of Cash Disbursements Disbursements as a foreign key in Cash Accounts. Accounts. Post the primary key of Cash Accounts as a foreign key in Cash Disbursements. C. Create a linking table. D. None of the above. AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-04 Understand how to implement a relational database from a UML Class Diagram. Source: Origina Topic: Data Modeling
3-27 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
36.
Consider an association between a Pet Owners class and 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?
Post the primary key of Pet Owners as a foreign key in the Pets. B. Post the primary primary key of Pets as a foreign key in Pet Owners. C. Create a linking table. D. None of the above. AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-04 Understand how to implement a relational database from a UML Class Diagram. Source: Origina Topic: Data Modeling
37.
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 b est way to implement that association in your database?
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. Cities. C. Create a linking table. D. None of the above. AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-04 Understand how to implement a relational database from a UML Class Diagram. Source: Origina Topic: Data Modeling
3-28 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
38.
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 primary key of Deliveries Deliveries as a foreign key key in Shipping Companies. Companies. Post the primary key of Shipping Companies as a foreign key in Deliveries. C. Create a linking table. D. None of the above. AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-04 Understand how to implement a relational database from a UML Class Diagram. Source: Origina Topic: Data Modeling
39.
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 primary key of Accountants as a foreign key in States. B. Post the primary key of States as a foreign key in Accountants. Create a linking table. D. None of the above. AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-04 Understand how to implement a relational database from a UML Class Diagram. Source: Origina Topic: Data Modeling
3-29 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
40.
Consider an association between a Cash Disbursements class and a Vendors class in a Unified Modeling Language (UML) Class diagram. d iagram. 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 primary key of Cash Disbursements Disbursements as a foreign key in Vendors. Vendors. Post the primary key of Vendors as a foreign key in Cash Disbursements. C. Create a linking table. D. None of the above. AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Understan Difficulty: 2 Medium Learning Objective: 03-04 Understand how to implement a relational database from a UML Class Diagram. Source: Origina Topic: Data Modeling
3-30 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
41.
Identify the classes and associations in the following narrative and draw a class diagram with multiplicities: Dr. Jeff runs Fountain Valley Veterinary Clinic. He treats many animals and each animal is usually a pet b belonging elonging to one owner; however, Dr. Jeff sometimes treats injured animals even if the owner is unknown. In a typical visit to the clinic, each animal could receive one or more clinic services (such as tests, shots, and surgical treatments). The clinic collects one payment from the owner for all the clinic services performed in each visit. The owners pay for the visit when they pick up their pet, so the clinic does not track cash receipts separately. It only tracks pet visits and whether or not payment was received for that visit. Each payment is deposited into one clinic bank account. The clinic does not track which employee performs the services or collects payments. The clinic records information about the pets and their owners on their first visit.
(students may have different solutions but should document the assumptions that led to those solutions):
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Appl Difficulty: 3 Har Learning Objective: 03-04 Understand how to implement a relational database from a UML Class Diagram. Source: Origina Topic: Data Modeling
3-31 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
42.
List the tables with primary keys, attributes, and foreign keys that implement the following UML Class diagram given the accompanying list of attributes. Identify primary keys with PK and foreign keys with FK.
Fields = Field ID (PK), Field Location, Field Name Games = Game Number/Identifier (PK), Field ID (FK), Game Date
3-32 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Teams = Team ID (PK), League ID (FK), Team Name, Number of Players on this Team Players = Player ID (PK), Player Name, Player Age, Player Average Leagues = League ID (PK), League Name, League Sport Games - Teams = Game Number/Identifier + Team ID (PK), Score of this team in this game Leagues - Fields = League ID + Field ID (PK), Number of fields assigned to this league
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Appl Difficulty: 3 Har Learning Objective: 03-04 Understand how to implement a relational database from a UML Class Diagram. Source: Origina Topic: Data Modeling
43.
Identify the classes and associations in the following narrative and d raw a class diagram with multiplicities: To put himself through school, Zach operates an ice cream truck that travels through neighborhoods, ringing ringing a bell to attract kids that want a cold ice cream treat. Zach's inventory includes many ice cream products and he tracks which items are sold in each sale. He occasionally adds new items to his list of ice cream products for sale. Zach only accepts cash for each sale. To identify the routes that generate the most sales, Zach summarizes sales by neighborhood but he only tracks neighborhoods with at least one sale. Zach deposits the cash received in his bank account at the end of each day.
(students could identify the cash receipts in a separate class):
AACSB: Analytic AICPA BB: Leveraging Technolog 3-33 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
AICPA FN: Leveraging Technolog Blooms: Appl Difficulty: 3 Har Learning Objective: 03-04 Understand how to implement a relational database from a UML Class Diagram. Source: Origina Topic: Data Modeling
44.
Identify the classes and associations in the following narrative and draw a class diagram with multiplicities: Barb maintains maintains a real estate tracking system for Orange County. There are currently 34 incorporated cities and 15 unincorporated communities communities in the county. Barb tracks all of these as cities. Within each city, there is at least one and could be b e many neighborhoods. Within each neighborhood, there is at least one and likely many houses. For each house, Barb tracks information for all the sales in the last 20 years, although some houses have not been sold in the last 20 years.
AACSB: Analytic AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Appl
3-34 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Difficulty: 3 Har Learning Objective: 03-04 Understand how to implement a relational database from a UML Class Diagram. Source: Origina Topic: Data Modeling
3-35 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
45.
List the tables with primary keys, attributes, and foreign keys that implement the following UML Class diagram given the accompanying list of attributes.
Types of Bicycles = Bicycle Type (PK), Bicycle Type Description, Number of bicycles of this type on hand Bicycles = Bicycle Product Number (PK), Bicycle Type (FK), Bicycle Size, Bicycle Color, Bicycle Quantity on Hand Sales = Sales Invoice Number (PK), Customer Number (FK), Sales Invoice Date, Sale Total $ Amount Customers = Customer Number (PK), Geographic Region Identifier (FK), Customer Name, Customer Address Geographic Region = Geographic Region Identifier (PK), Geographic Region Description, Yearto-date Sales $ for this Region Sales - Bicycles = Sales Invoice Number + Bicycle Product Number (PK), Price of this Bicycle Sold on this Invoice, Quantity of this Bicycle Sold on this Invoice
AACSB: Analytic
3-36 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
AICPA BB: Leveraging Technolog AICPA FN: Leveraging Technolog Blooms: Appl Difficulty: 3 Har Learning Objective: 03-04 Understand how to implement a relational database from a UML Class Diagram. Source: Origina Topic: Data Modeling
3-37 Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.