Mid test 2

24
Test: Mid Term Exam Semester 1 Review your answers, feedback, and question scores below. An asterisk (*) indica tes a correct answer. Semester 1 Mid Term Exam covers Sections 1-10 of Database Design. Section 10 (Answer all questions in this section) 1. A datamodel containing generic modeling techniques must not be mixed in wi th non-generic models. The generic entities MUST be drawn on a diagram of their own. True or False? Ma rk for Review (1) Points True False (*) Incorrect. Refer to Section 10 Lesson 2. 2. Generic models are generally far more complex than a specific model. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 10 Lesson 2. 3. Which of the following statements are true for ERD's to enhance their read ability. (Choose Two) Mark for Review (1) Points (Choose all correct answers) Is is OK to break a big ERD down into subsets of the overall picture. This w ay you end up with more than one ERD, that together documents the entire system. (*) Try to avoid crossing lines (*) The crows feet (many ends) can point whichever way is the easiest to draw You must ensure you have all the entities on one single, big diagram, even i f you have hundreds Correct

description

Oracle Mid Test 2

Transcript of Mid test 2

Page 1: Mid test 2

Test: Mid Term Exam Semester 1

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Semester 1 Mid Term Exam covers Sections 1-10 of Database Design.

Section 10 (Answer all questions in this section) 1. A datamodel containing generic modeling techniques must not be mixed in with non-generic models. The generic entities MUST be drawn on a diagram of their own. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 10 Lesson 2. 2. Generic models are generally far more complex than a specific model. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 10 Lesson 2. 3. Which of the following statements are true for ERD's to enhance their readability. (Choose Two) Mark for Review (1) Points (Choose all correct answers) Is is OK to break a big ERD down into subsets of the overall picture. This way you end up with more than one ERD, that together documents the entire system. (*) Try to avoid crossing lines (*) The crows feet (many ends) can point whichever way is the easiest to draw You must ensure you have all the entities on one single, big diagram, even if you have hundreds Correct

Page 2: Mid test 2

4. There is no point in trying to group your entities together on your diagram according to volume. Making a diagram pretty is a waste of time. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 10 Lesson 1. Section 9 (Answer all questions in this section) 5. Which of the following is a logical constraint that could result from considering how time impacts an example of data storage? Mark for Review (1) Points An ASSIGNMENT may only refer to an EMPLOYEE with a valid employee record at the Start Date of the ASSIGNMENT. (*) EMPLOYEE periods can overlap causing the database to crash. End Date must be before the Start Date. Dates must be stored with Time. Correct 6. You are doing a data model for a computer sales company, where the price of postage is dependent on what day of the week goods are shipped. So shipping is more expensive if the customer wants a delivery to take place on a Saturday or Sunday. What would be the best way to model this? Mark for Review (1) Points Use a Delivery Day entity, which holds prices against week days, and ensure the we also have an attribute for the Requested Delivery Day in the Order Entity. (*) Email current price to all employees whenever the prices change. Update the prices in the system, print out the current prices when they change and pin them on the company noticeboard Allow them to enter whatever ever delivery charge they want. Correct

Page 3: Mid test 2

7. Modeling historical data is Optional. True or False? Mark for Review (1) Points True (*) False Correct 8. When you add the concept of time to your data model, your model becomes more complex. True or False? Mark for Review (1) Points True (*) False Correct 9. Which of the following would be a logical constraint when modeling time for a City entity? Mark for Review (1) Points People are born in the city and people die in the city. Cites may change their name and/or which country they are placed in, if the borders of a country change. (*) If you are doing a system for any French City, you would need security clearance. You need a constant record of cities because they are still cities, even if leadership changes over time, e.g. they get a new Mayor. Incorrect. Refer to Section 9 Lesson 1. Section 6 (Answer all questions in this section) 10. The first UID for an entity is called the Primary UID, the second is called Secondary UID and so on. Mark for Review (1) Points Yes, this is the way UID's are named. (*) No, it is not possible to have more than one UID for an Entity. Yes, but then it stops. No entities can have more than two UID's.

Page 4: Mid test 2

No, each Entity can only have one UID, the secondary one. Correct

Page 1 of 5

Test: Mid Term Exam Semester 1

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Semester 1 Mid Term Exam covers Sections 1-10 of Database Design.

Section 10 (Answer all questions in this section) 1. A datamodel containing generic modeling techniques must not be mixed in with non-generic models. The generic entities MUST be drawn on a diagram of their own. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 10 Lesson 2. 2. Generic models are generally far more complex than a specific model. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 10 Lesson 2. 3. Which of the following statements are true for ERD's to enhance their readability. (Choose Two) Mark for Review (1) Points (Choose all correct answers) Is is OK to break a big ERD down into subsets of the overall picture. This way you end up with more than one ERD, that together documents the entire system.

Page 5: Mid test 2

(*) Try to avoid crossing lines (*) The crows feet (many ends) can point whichever way is the easiest to draw You must ensure you have all the entities on one single, big diagram, even if you have hundreds Correct 4. There is no point in trying to group your entities together on your diagram according to volume. Making a diagram pretty is a waste of time. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 10 Lesson 1. Section 9 (Answer all questions in this section) 5. Which of the following is a logical constraint that could result from considering how time impacts an example of data storage? Mark for Review (1) Points An ASSIGNMENT may only refer to an EMPLOYEE with a valid employee record at the Start Date of the ASSIGNMENT. (*) EMPLOYEE periods can overlap causing the database to crash. End Date must be before the Start Date. Dates must be stored with Time. Correct 6. You are doing a data model for a computer sales company, where the price of postage is dependent on what day of the week goods are shipped. So shipping is more expensive if the customer wants a delivery to take place on a Saturday or Sunday. What would be the best way to model this? Mark for Review (1) Points Use a Delivery Day entity, which holds prices against week days, and ensure the we also have an attribute for the Requested Delivery Day in the Order Entity. (*) Email current price to all employees whenever the prices change.

Page 6: Mid test 2

Update the prices in the system, print out the current prices when they change and pin them on the company noticeboard Allow them to enter whatever ever delivery charge they want. Correct 7. Modeling historical data is Optional. True or False? Mark for Review (1) Points True (*) False Correct 8. When you add the concept of time to your data model, your model becomes more complex. True or False? Mark for Review (1) Points True (*) False Correct 9. Which of the following would be a logical constraint when modeling time for a City entity? Mark for Review (1) Points People are born in the city and people die in the city. Cites may change their name and/or which country they are placed in, if the borders of a country change. (*) If you are doing a system for any French City, you would need security clearance. You need a constant record of cities because they are still cities, even if leadership changes over time, e.g. they get a new Mayor. Incorrect. Refer to Section 9 Lesson 1. Section 6 (Answer all questions in this section) 10. The first UID for an entity is called the Primary UID, the second is called Secondary UID and so on. Mark for Review (1) Points

Page 7: Mid test 2

Yes, this is the way UID's are named. (*) No, it is not possible to have more than one UID for an Entity. Yes, but then it stops. No entities can have more than two UID's. No, each Entity can only have one UID, the secondary one. Correct

Page 1 of 5

Test: Mid Term Exam Semester 1

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Semester 1 Mid Term Exam covers Sections 1-10 of Database Design.

Section 6 (Answer all questions in this section) 11. People are not born with "numbers", but a lot of systems assign student numbers, customer IDs, etc. A shoe has a color, a size, a style, but may not have a descriptive "number". So, to be able to uniquely and efficiently identify one instance of the entity SHOE, a/an ______________ UID can be created.

Mark for Review (1) Points Artificial (*) Unrealistic Structured Identification Correct 12. An entity without repeated values is said to be on 1st Normal Form. True or False? Mark for Review (1) Points True (*) False Correct

Page 8: Mid test 2

13. Normalizing an Entity to 1st Normal Form is done by removing repeated or redundant attributes. True or False? Mark for Review (1) Points True (*) False Correct 14. Would it be a good idea to model age as an attribute of STUDENT? Mark for Review (1) Points Yes Maybe it could stop us having to calculate someone's age every time we need it Sometimes No - it breaks the Normalization rules (*) Incorrect. Refer to Section 6 Lesson 3. 15. Any Non-UID must be dependant on the entire UID. True or False? Mark for Review (1) Points True (*) False Correct 16. No commercial database systems in the world will accept tables that are not on 3rd Normal Form. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 6 Lesson 4. Section 5 (Answer all questions in this section) 17. What do you call the entity created when you resolve a M:M relationship?

Page 9: Mid test 2

Mark for Review (1) Points Intersection entity (*) Inclusion entity Recursive entity M:M entity Correct 18. Intersection Entities often have the relationships participating in the UID, so the relationships are often barred. True or False? Mark for Review (1) Points True (*) False Correct 19. When you resolve a M-M you simply re-draw the relationships between the two original entities, no new entities are created. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 5 Lesson 3. 20. If a relationship can NOT be moved between instances of the entities it connects, it is said to be: Mark \for Review (1) Points Mandatory Optional Transferrable Non-Transferrable (*) Incorrect. Refer to Section 5 Lesson 1.

Page 2 of 5

Page 10: Mid test 2

Test: Mid Term Exam Semester 1

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Semester 1 Mid Term Exam covers Sections 1-10 of Database Design.

Section 6 (Answer all questions in this section) 11. People are not born with "numbers", but a lot of systems assign student numbers, customer IDs, etc. A shoe has a color, a size, a style, but may not have a descriptive "number". So, to be able to uniquely and efficiently identify one instance of the entity SHOE, a/an ______________ UID can be created.

Mark for Review (1) Points Artificial (*) Unrealistic Structured Identification Correct 12. An entity without repeated values is said to be on 1st Normal Form. True or False? Mark for Review (1) Points True (*) False Correct 13. Normalizing an Entity to 1st Normal Form is done by removing repeated or redundant attributes. True or False? Mark for Review (1) Points True (*) False

Page 11: Mid test 2

Correct 14. Would it be a good idea to model age as an attribute of STUDENT? Mark for Review (1) Points Yes Maybe it could stop us having to calculate someone's age every time we need it Sometimes No - it breaks the Normalization rules (*) Incorrect. Refer to Section 6 Lesson 3. 15. Any Non-UID must be dependant on the entire UID. True or False? Mark for Review (1) Points True (*) False Correct 16. No commercial database systems in the world will accept tables that are not on 3rd Normal Form. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 6 Lesson 4. Section 5 (Answer all questions in this section) 17. What do you call the entity created when you resolve a M:M relationship? Mark for Review (1) Points Intersection entity (*) Inclusion entity Recursive entity

Page 12: Mid test 2

M:M entity Correct 18. Intersection Entities often have the relationships participating in the UID, so the relationships are often barred. True or False? Mark for Review (1) Points True (*) False Correct 19. When you resolve a M-M you simply re-draw the relationships between the two original entities, no new entities are created. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 5 Lesson 3. 20. If a relationship can NOT be moved between instances of the entities it connects, it is said to be: Mark for Review (1) Points Mandatory Optional Transferrable Non-Transferrable (*) Incorrect. Refer to Section 5 Lesson 1.

Page 2 of 5

Test: Mid Term Exam Semester 1

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Page 13: Mid test 2

Semester 1 Mid Term Exam covers Sections 1-10 of Database Design.

Section 6 (Answer all questions in this section) 11. People are not born with "numbers", but a lot of systems assign student numbers, customer IDs, etc. A shoe has a color, a size, a style, but may not have a descriptive "number". So, to be able to uniquely and efficiently identify one instance of the entity SHOE, a/an ______________ UID can be created.

Mark for Review (1) Points Artificial (*) Unrealistic Structured Identification Correct 12. An entity without repeated values is said to be on 1st Normal Form. True or False? Mark for Review (1) Points True (*) False Correct 13. Normalizing an Entity to 1st Normal Form is done by removing repeated or redundant attributes. True or False? Mark for Review (1) Points True (*) False Correct 14. Would it be a good idea to model age as an attribute of STUDENT? Mark for Review (1) Points Yes Maybe it could stop us having to calculate someone's age every time we need it

Page 14: Mid test 2

Sometimes No - it breaks the Normalization rules (*) Incorrect. Refer to Section 6 Lesson 3. 15. Any Non-UID must be dependant on the entire UID. True or False? Mark for Review (1) Points True (*) False Correct 16. No commercial database systems in the world will accept tables that are not on 3rd Normal Form. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 6 Lesson 4. Section 5 (Answer all questions in this section) 17. What do you call the entity created when you resolve a M:M relationship? Mark for Review (1) Points Intersection entity (*) Inclusion entity Recursive entity M:M entity Correct 18. Intersection Entities often have the relationships participating in the UID, so the relationships are often barred. True or False? Mark for Review (1) Points True (*) False

Page 15: Mid test 2

Correct 19. When you resolve a M-M you simply re-draw the relationships between the two original entities, no new entities are created. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 5 Lesson 3. 20. If a relationship can NOT be moved between instances of the entities it connects, it is said to be: Mark for Review (1) Points Mandatory Optional Transferrable Non-Transferrable (*) Incorrect. Refer to Section 5 Lesson 1.

Page 2 of 5

Test: Mid Term Exam Semester 1

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Semester 1 Mid Term Exam covers Sections 1-10 of Database Design.

Section 5 (Answer all questions in this section) 21. A relationship from an entity back to itself is called a ___________ relationship. Mark for Review (1) Points Mandatory

Page 16: Mid test 2

Recursive (*) Many to Many Optional Transferrable Incorrect. Refer to Section 5 Lesson 2. 22. How do you include a relationship as part of the UID for an entity? Mark for Review (1) Points By barring the relationship in question (*) By reporting it in an external document By including the UID from the parent entity as an attribute in the entity You cannot model that. Correct 23. What uncommon relationship is described by the statements: "Each DNA SAMPLE may be taken from one and only one PERSON and each PERSON may provide one and only one DNA SAMPLE" Mark for Review (1) Points One to Many Optional One to Many Mandatory One to One Optional (*) Many to Many Mandatory Incorrect. Refer to Section 5 Lesson 2. 24. Relationships can be Redundant. True or False? Mark for Review (1) Points True (*) False Correct Section 4 (Answer all questions in this section)

Page 17: Mid test 2

25. The "Other" subtype is mandatory. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 4 Lesson 1. 26. When creating entities you must follow these rules: (Choose Two) Mark for Review (1) Points (Choose all correct answers) Name them in Plural Name them in Singular (*) Exclude Attributes Include Attributes (*) Incorrect. Refer to Section 4 Lesson 1. 27. All ER diagrams must have one of each of the following: (Choose two) Mark for Review (1) Points (Choose all correct answers) One or more Entities (*) Relationships between entities (*) Arcs At least one supertype and subtype Correct 28. Which of the following is true about subtypes? Mark for Review (1) Points One instance may belong to two subtypes of the same supertype. Subtypes must be mutually exclusive. (*) Subtypes must not be mutually exclusive. Subtype entities may not have relationships to the other subtype entities, only the supertype itself.

Page 18: Mid test 2

Incorrect. Refer to Section 4 Lesson 1. 29. Business rules are important to data modelers. True or False? Mark for Review (1) Points True (*) False Correct Section 7 (Answer all questions in this section) 30. A relationship can be both Recursive and Hierachal at the same time. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 7 Lesson 2.

Page 3 of 5

Test: Mid Term Exam Semester 1

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Semester 1 Mid Term Exam covers Sections 1-10 of Database Design.

Section 7 (Answer all questions in this section) 31. A recursive relationship must Mandatory at both ends. True or False? Mark for Review (1) Points True

Page 19: Mid test 2

False (*) Incorrect. Refer to Section 7 Lesson 2. 32. Which of the following would best be represented by an arc? Mark for Review (1) Points TEACHER (Female, Bob) DELIVERY ADDRESS (Home, Office) (*) PARENT (Girl, Bob) STUDENT (Grade A student, Average Student) Incorrect. Refer to Section 7 Lesson 1. 33. All relationships participating in an arc must be mandatory. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 7 Lesson 1. 34. Arcs are used to visually represent _________ between two or more relationships in an ERD. Mark for Review (1) Points Sameness Differences Exclusivity (*) Inheritance Incorrect. Refer to Section 7 Lesson 1. 35. Arcs are Mandatory in Data modeling. All ERD's must have at least one Arc. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 7 Lesson 1.

Page 20: Mid test 2

36. No parts of an UID are mandatory. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 7 Lesson 1. 37. Historical data must never be kept. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 7 Lesson 3. 38. Modeling historical data can produce a unique identifier that always excludes dates. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 7 Lesson 3. Section 3 (Answer all questions in this section) 39. To identify an attribute as part of a unique identifier on an ER diagram, the # symbol goes in front of it. True or False? Mark for Review (1) Points True (*) False Correct 40. Matrix Diagrams are used to verify an ERD. True or False? Mark for Review (1) Points True (*) False

Page 21: Mid test 2

Correct

Page 4 of 5

Test: Mid Term Exam Semester 1

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Semester 1 Mid Term Exam covers Sections 1-10 of Database Design.

Section 3 (Answer all questions in this section) 41. Two entities can ONLY have one relationship between them. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 3 Lesson 3. 42. Relationship Names are optional. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 3 Lesson 1. 43. One Relationship can be both mandatory and optional at different ends. True or False? Mark for Review (1) Points True (*) False Correct

Page 22: Mid test 2

Section 2 (Answer all questions in this section) 44. Entity and Attribute names are usually Nouns. True or False? Mark for Review (1) Points True (*) False Correct 45. Data modelling is performed for the following reasons: (Choose Two) Mark for Review (1) Points (Choose all correct answers) The ERD's becomes a blueprint for designing the actual system. (*) It helps discussions and reviews. (*) We do not need datamodels, we can just start coding right away. We just draw the ERD's to please the users, once they are finished we never look at them again. They serve no purpose in the real world. Correct 46. Relationship names are usually verbs. True or False? Mark for Review (1) Points True (*) False Correct 47. Which of the following entities most likely contains valid attributes? (Choose two) Mark for Review (1) Points (Choose all correct answers) Entity: Home. Attributes: Number of Bedrooms, Owner, Address, Date Built (*) Entity: Pet. Attributes: Name, Birthdate, Owner (*) Entity: Car. Attributes: Owner Occupation, Owner Salary, Speed

Page 23: Mid test 2

Entity: Mother. Attributes: Name, Birthdate, Occupation, Salary Correct 48. All of the following would be instances of the entity ANIMAL SPECIES except which? Mark for Review (1) Points Dog Bird Elephant Leaf (*) Incorrect. Refer to Section 2 Lesson 2. 49. An entity can have many Unique Identifiers. True or False? Mark for Review (1) Points True (*) False Correct 50. Which of the following statements about relationships are true? (Choose Two) Mark for Review (1) Points (Choose all correct answers) They become foreign keys in the database. (*) They must be mandatory to be created in the database. They can be either mandatory or optional. (*) They must exist between two different Entities. Incorrect. Refer to Section 2 Lesson 2.

Page 5 of 5

Page 24: Mid test 2