DB Prelimexam
DB Prelimexam
Prelim Examination
Second Semester 2019
I. MULTIPLE CHOICE
DIRECTION: Circle the letter that corresponds to the best answer.
1. The logical representation of an organization’s
data is called
a. Database model 6. It represents a specific instance of something you
b. Relationship system design want to track
c. Entity relationship model a. attribute
d. Database entity diagram b. entity
2. Customers, cars, and parts are example of c. property
a. entities d. foreign key
b. attributes 7. One‐to‐many relationships are also referred to as
c. constraints ______________________________________
d. relationships a. cardinality
3. If a transaction finishes successfully, the results of b. entity relationships
the transaction are written to the database and the c. parent‐child relationships
end result is that the database attains a new d. abstract relations
consistent state. This is known as _____________ 8. In general, it is represented by table fields
transaction a. attribute
a. commit b. entity
b. program c. property
c. rollback d. foreign key
d. normalization 9. Diamond is the symbol we use to denote
4. A ________________ is an organized collection of ______________
data, typically stored in electronic format, which a. entity
allows you to input data, organize the data and b. property
retrieve the data quickly. c. attribute
a. database d. relationship
b. procedural programming 10. It is also possible for a foreign key constraint to
c. object-oriented programming reference columns in the same table; this is known
d. hard drives as __________________
5. It is a field with no value a. relationship
a. empty b. referencing
b. null c. self - representation
c. full d. self - referencing
d. zero
II. IDENTIFICATION
DIRECTION: Identify the following statement/s. Write your answer on the space provided before the number.
________________ 1. Only one table is involved in this relationship, and this relationship exists between two fields in
the one table.
________________ 2. This guarantees that each record is unique and that all the fields that form the primary key have
non‐null values
________________ 3. It is a formally structured set of information that pertains to a particular subject or purpose, stored
by a computer program.
________________ 4. In this type of database, each parent can have multiple children, but each child can have only one
parent.
________________ 5. It is a constraint enforced by the relational data model which states that if a foreign key is not
null, it must match an existing primary key somewhere within the database.
Animal Sale
ID NAME CATEGORY BREED DoB GENDER REGISTRATION COLOR LISTPRICE SALEPRICE
Animal SubTotal:
Merchandise Sale
ITEM DESCRIPTION CATEGORY LISTPRICE SALE PRICE QUANTITY TOTAL ITEM SALE
SOLD PRICE
Merchandise Total:
Sub Total:
Tax
Total:
1. Identify all entities and attributes for each entity from the Sales Form in figure above. Provide your answer in the
following format. (10 points)
ENTITY ATTRIBUTE
2. Using your answers in Question 1 above, draw a complete conceptual Entity Relationship Diagram and Integrity
Engineering Diagram to model the data in the Sales Form. Multiplicities and primary keys must be shown on your
model. (15 points)
PROBLEM 2: You are required to create a conceptual data model of the data requirements for a company that specializes
in IT training. The Company has 30 instructors and can handle up to 100 trainees per training session. The Company offers
five advanced technology courses, each of which is taught by a teaching team of two or more instructors. Each instructor
is assigned to a maximum of two teaching teams or may be assigned to do research. Each trainee undertakes one advanced
technology course per training session.
a. Identify the main entity types for the company.
b. Identify the main relationship types and specify the multiplicity for each relationship. State any assumptions you
make about the data.
c. Using your answers for (a) and (b), draw a single ER diagram as well as the IE diagram to represent the data
requirements for the company. Show multiplicity and primary keys in your diagram.