You are on page 1of 5

MIDTERM EXAMINATION ( CS4 ) APPLICATION SOFTWARE (write the correct answer

before the
corresponding number)
1. Uses interviews and questionnaires to collect facts about systems, requirements, and
preferences.
a. Fact-finding
b. requirement specificationc. database design d. none of the above
2. One of the major goal in requirements gathering is to collect the data used by the organization
a. Fact-finding
b. requirement specificationc. database design d. none of the above
3. Requires understanding both the operational and business requirements of an
organization
a. Fact-finding
b. requirement specificationc. database design d. none of the above
4. Most popular conceptual model for database design
a. Fact-finding
b. requirement specificationc. database design
5.

Describes data as entities, attributes and relationships


a. Fact-finding
b. requirement specificationc. database design

d. none of the above


d. none of the above

6. A relation is a named, two-dimensional table of data


a. true
b. false
7. All tables qualify as relations
a. true
b. false
8. Every relation has a unique name
a. true
b. false
9. Relational model is one logical data model
a. true
b. false
10. Columns correspond with entity instances
a. true
b. false
11. Rows correspond with entity instances (and with many-to-many relationship instances)
a. False
b. true
12. The word relation (in relational database) is NOT the same as the word relationship (in ER
model)
a. False
b. true
13. Are unique identifiers of the relation in question
a. Foreign key
b. composite keys

c. primary key

d. all of the above

14. Are identifiers that enable a dependent relation (on the many side of a relationship) to refer to its
parent relation (on the one side of the relationship)
a. Foreign key
b. composite keys c. primary key
d. all of the above
15. More than one field
a. Foreign key

b. composite keys

c. primary key

d. all of the above

(Below diagram for questions 16-20)

16. CUSTOMER relation primary key


a. Customer_ID
b. Order_ID

c. both A and B

d. none of the above

17. CUSTOMER relation primary key


a. Customer_ID
b. Order_ID

c. both A and B

d. none of the above

18. ORDER relation foreign key


a. Customer_ID
b. Order_ID

c. both A and B

d. none of the above

19. ORDER_LINE relation composite key


a. Product_ID
b. Order_ID

c. both A and B

d. none of the above

20. PRODUCT relation primary key


a. Product_ID
b. Order_ID

c. both A and B

d. none of the above

(Below diagram for questions 21 - 25)

21. Referential integrity constraints are drawn via arrows from dependent to parent table
a. false
b. true
22. ORDER relation is a dependent table
a. false
b. true
23. Restrict dont allow delete of parent side if related rows exist in dependent side (do not
delete customer if there are orders)
a. false
b. true
24. Cascade automatically delete dependent side rows that correspond with the parent side row
to be deleted (if a customer is delete, delete all orders)
a. True
b. False
25. Set-to-Null set the foreign key in the dependent side to null if deleting from the parent side
a. True
b. False
26. In mapping binary relationships, a One-to-One - Primary key on the mandatory side becomes a
foreign key on the optional side
a. True
b. False
27. One-to-Many - Primary key on the one side becomes a foreign key on the many side
a. True
b. False

(Below diagram for questions 28 - 31)

28. Example of mapping a M : M relationship


a. True
b. False
29 - 31. Name the CUSTOMER atttributes
a. Customer_ID
b. Customer_Name c. Customer_Address

(Below diagram for questions 32 - 40)

32. ER diagram (1:1)


a. True

b. False

33 40 Draw the resulting relations of diagram in number 32.