You are on page 1of 6

Business Database Systems

Answers to DBMS First Test Sample Questions


Question (1) Consider the following information types at a university. In a conceptual database model, which is most reasonable to represent as a relationship? (a) Student (b) Grade (c) Faculty (d) Room Question (2) In a conceptual database model, which of the following most likely represents a valid identifier for grades? (a) StudentID (b) StudentID, CourseID (c) StudentID, CourseID, InstructorID (d) StudentID, CourseSectionID Question (3) Each course section is assigned a particular faculty member, and each course section corresponds to a particular course. Conceptually, what is the relationship between faculty and course (not course section). (a) 1:1 (b) 1:M (c) M:M (d) Ternary Question (4) In a conceptual model for a university, what type of relationship exists between Grade and Student entities? (a) 1:1 (b) 1:M (c) M:M (d) Ternary Conceptual Design

Note: a grade belongs to one student, but a student may have many grades.
Question (5) What relationships in a conceptual model create the need to later introduce associative entities? (a) 1:1 (b) 1:M (c) M:M (d) All of the above

DEPARTMENT OF DECISION SCIENCES 1208 University of Oregon, Eugene OR 97403-1208


T

(541) 346-3306

(541) 346-0073 lcb.uoregon.edu

Question (6) In a conceptual model for a university, which of the following could most appropriately be represented via a recursive relationship? (a) Student credit hours (b) Course prerequisites (c) Parking sticker assignments (d) Final exam schedules Question (7) In a conceptual model for a university, which of the following could most appropriately be represented as a weak entity? (a) Student (b) Course (c) Grade (d) Faculty

Note: grades can appropriately be thought of as the (Many-to-Many) connections between student and course sections.
Question (8) Consider a university where the identifier for course-sections is the combination: courseID, termID, facultyID, day, time. (Note: day is either M or T, depending on whether the section follows a M/W/F or Tu/Th schedule.) How many identifying relationships does this identifier imply? (a) 0 (c) 2 (b) 1 (d) 3 Question (9) Within the identifier the above question defines for course-sections, how many discriminating attributes are there? (a) 0 (c) 2 (b) 1 (d) 3 E-R Diagramming Question (10) Choose the symbol that corresponds to a discriminator attribute. (a) (b) attribute attribute (c) attribute (d) attribute

Question (11) Which one of the following four E-R diagrams is the typical result you obtain when you initially start with an E-R diagram containing just two entities, A and C, in a Many-toMany relationship, and then introduce an associative entity (B). (1) A 1 1 B 1 1 C

(2) (3) (4)

A A A

1 M M M

M 1 M

B B B

M 1 M

1 M M

C C C

Question (12) Which one of the following E-R diagrams does not have an error? (a) (b) (c) (d) X 1 has 1 Y 1 Y 1 Y 1 Y

X X X

1 1 1

has has has

Question (13) Which one of the following E-R diagrams most correctly represents the relationship between Student and Grade entities? (a) (b) (c) (d) Student Student Student 1 1 M has has has M Grade M Grade 1 Grade 1 Grade

Student

has

Logical (Relational) Models Question (14) Which of the following design elements does not require an entire table to implement? (a) A Many-to-Many relationship (b) A weak entity (c) An identifying relationship
DEPARTMENT OF DECISION SCIENCES 1208 University of Oregon, Eugene OR 97403-1208
T

(541) 346-3306

(541) 346-0073 lcb.uoregon.edu

(d) A multi-valued attribute Question (15) Which of the following most certainly implies the need for an entire table to implement? (a) A binary relationship (b) A ternary relationship (c) A recursive relationship (d) An identifying relationship Question (16) Consider the following E-R diagram pertaining to a retail chain that sells watches in airport locations. phone shopNum has quantity M M Stock Item Shop employeeName carries modelCode M M Watch manufacturer listPrice disjoint uses M BatteryPowered price

1 M

M M location

M M

of

partNum Battery

price 1 M

Batteryless powerSource

List the tables that implement this diagram. Use the table notation: TableName(attr1,attr2, attr3, .), and underline the primary key for each.
Watch(modelCode, manufacturer, listPrice, price) ShopeCarriesWatch(shopNum, modelCode) Shop(shopNum, phone, location) Employee(employeeName, shopNum) --- note we could instead use, e.g., employeeNumber as a primary key here Stock(shopNum,modelCode, quantity) BatteryPowered(modelCode, partNum) Batteryless(modelCode, powersource) Battery(partNum, price)

Normalization Question (17)


What is the highest normal form level satisfied by the following table design?

A1
A. 1NF B. 2NF C. 3NF

A2

A3

A4

A5

Question (18)
What is the highest normal form level satisfied by the following table design?

A1
A. 1NF B. 2NF C. 3NF

A2

A3

A4

A5

Question (19)
What is the highest normal form level satisfied by the following table design?

A1
A. 1NF B. 2NF C. 3NF

A2

A3

A4

A5

Question (20)
Assume the following set of information at the UofO registrar: {Student#, LastName, FirstName, CRN, CourseName, GradeReceived} is put in a single (non-normalized) table. Part A. (3 points) Draw a dependency diagram for those attributes.

Student#

LastName

FirstName

CRN

CourseName

GradeReceived

DEPARTMENT OF DECISION SCIENCES 1208 University of Oregon, Eugene OR 97403-1208


T

(541) 346-3306

(541) 346-0073 lcb.uoregon.edu

Part B. (4 points) Change the design as necessary to create a set of tables in at least Second Normal Form, and show the modified and/or new tables below.

Student#

LastName

FirstName

CRN

CourseName

GradeReceived

Student#

CRN

GradeReceived

Note: The only dependencies remaining are the primary-key (PK) dependencies, which we dont need to show as arrows because they are implied by the PK underlines.
Part C. (4 points) Change the design from Part B as necessary to ensure all tables are in Third Normal Form, and show the modified and/or new tables below.

No further changes are necessary, as the set of tables shown in (b) also satisfies 3NF.

Question (21) You need to create a database to store information about U.S. ski areas. You wish to be able to look up their regular full day lift-ticket price, total square acres of terrain, and vertical feet. At some ski areas, purchasing a lift-ticket gives the ticket-holder the right to ski at other partner ski areas as well, and you wish to store that information in your database. For each ski area, you also want to be able to access some basic statistics about the mountain(s) on which the area is located (specifically, height and average snowfall). Draw an E-R diagram for this database, following the notation in this course. Your diagram should show entities, relationships, and attributes, and should include 1:1, 1:M, M:M labels. Also denote any mandatory relationships and weak entities in your model.

Partner with Day ticket price Terrain acres Vertical feet

day ticket price

Sells ticket M SkiArea

Accepts M ticket M on M Mountain

MountainID

SkiAreaID day ticket price

Note: this diagram assumes a ski area can span more than 1 mountain.

You might also like