Professional Documents
Culture Documents
SECTION A
INSTRUCTION:
This section consists of FORTY (40) objective questions. Answer ALL questions in the
answer booklet.
1. A software system that enable user to define, create and maintain the database.
This statement describes [CLO 1]
A. Oracle 10g
B. Microsoft Office Access 2007
C. Database Management System
D. Data warehouse
4. Internal Schema is one of the three-schema architecture. Which one is true about
Internal Schema? [CLO 1]
Page 2 of 20
CONFIDENTIAL FP304 DATABASE SYSTEM
6. Within a table, the primary key must be unique so that it will identify each row. When
this is the case, the table is said to exhibit ________ integrity.
[CLO 1]
A. Referential
B. Entity
C. Enforced
D. Key
A. Range
B. Product
C. Domain
D. Function
Page 3 of 20
CONFIDENTIAL FP304 DATABASE SYSTEM
Figure 1 [CLO 1]
A. W
B. X
C. Y
D. Z
A. one-to-one relationship.
B. one-to-many relationship.
C. many-to-one relationship.
D. many-to-many relationship.
A. Cartesian product
B. Difference
C. Selection
D. Intersection
Page 4 of 20
CONFIDENTIAL FP304 DATABASE SYSTEM
11. _________________ works on a single relation R and defines a relation that contains
a vertical subset of R, extracting the values of specified attributes and eliminating
duplicates. [CLO 1]
A. Projection
B. Cartesian Product
C. Difference
D. Intersection
12. The ______________set operator combines all tuples from two relations excluding
duplicates. [CLO 1]
A. Union
B. Intersect
C. Difference
D. Divide
13. The ___________ operator returns all tuples in one relation that are not found in other
relation. [CLO 1]
A. Intersect
B. Product
C. Select
D. Difference
Page 5 of 20
CONFIDENTIAL FP304 DATABASE SYSTEM
A. Compute the natural join between the STUDENT and COURSE relations.
B. Compute the left outer join between the STUDENT and COURSE relations.
C. Compute the Cross Product between the STUDENT and COURSE relations.
D. Compute the outer join between the STUDENT and COURSE relations.
Figure 2
16. A relational algebra operator applied to tables of EMPLOYEES and DEPARTMENT
produces the following result as in Table 1
Table 1
The operator is: [CLO 3]
A. An outer join operator
B. The project operator
C. The cross product operator
D. The natural join operator
Page 6 of 20
CONFIDENTIAL FP304 DATABASE SYSTEM
Table 2
The operator is: [CLO 3]
A. An outer join operator
B. The project operator
C. The cross product operator
D. The natural join operator
Table 3
The operator is: [CLO 3]
19. Which clause would you use in a SELECT statement to limit the display to those
employees whose salary is greater than 5000? [CLO 3]
Page 7 of 20
CONFIDENTIAL FP304 DATABASE SYSTEM
20. SELECT *
FROM orders;
You use this SQL statement to retrieve data from a table for ______________.
[CLO 1]
A. Viewing
B. Deleting
C. Inserting
D. Updating
22. What happens if the WHERE clause is omitted from a DELETE statement?
[CLO 1]
A. All records from the table are deleted
B. No record from the table will be deleted
C. First record of the table will be deleted
D. The statement will not be executed and will give a syntax error
Page 8 of 20
CONFIDENTIAL FP304 DATABASE SYSTEM
23. You need to produce a report for mailing labels for all customers. The mailing label
must have only the customer name and address. The CUSTOMERS table has these
columns:
24. Which INSERT statement is correct to insert a new row into table of employees?
Page 9 of 20
CONFIDENTIAL FP304 DATABASE SYSTEM
25. How to select all the records from a table named Persons where the value of the
column FirstName starts with an a using SQL statement? [CLO 3]
26. In UPDATE statement, choose the correct answer to update firstname = Mary to
firstname = Marry from a table named "staff". [CLO 3]
Page 10 of 20
CONFIDENTIAL FP304 DATABASE SYSTEM
[CLO 1]
A. multivalued attribute
B. data flow
C. entity
D. relationship
30. A person, place, object, event, or concept in the user environment about which the
organization wishes to maintain data refers to a(n): ___________________ .
[CLO 1]
A. Cardinality
B. Attribute
C. Relationship
D. Entity
31. When applying the optional 1-M relationship rule for converting an ERD into a
relational table design, which of the following statements is true? [CLO1]
A. Each 1-M relationship with 0 for the minimum cardinality on the parent side
becomes a new table.
B. The primary key of the new table is the primary key of the entity type on the child
(many) side of the relationship.
C. The new table contains foreign keys for the primary keys of both entity types
participating in the relationship.
D. Both foreign keys in the new table do not permit null values.
32. What type of relationship is expressed with the phrase "Student takes Class"?
[CLO 1]
A. 1 : M
B. M : 1
C. 1 : 1
D. M : N
33. When applying the M-N relationship rule for converting an ERD into a relational
table design, which of the following statements is true?
Page 11 of 20
CONFIDENTIAL FP304 DATABASE SYSTEM
34. Based on Figure 3 the BOOKS and MEMBER entities are related to each other. The
relationship on the MEMBER side indicates that:
Figure 3
[CLO 1]
A. A BOOKS may be borrowed by one or more MEMBER.
B. A MEMBER may borrow one BOOKS.
C. A BOOKS may be borrowed by zero or one MEMBER only.
D. A MEMBER may borrow zero or more BOOKS.
Page 12 of 20
CONFIDENTIAL FP304 DATABASE SYSTEM
35. Choose the correct Entity Relationship Model diagram based on the situation given.
[CLO 1]
A.
1 1
C INSTRUCTOR CLASS
teach
((0, N) (1,1)
B.
1 1
C INSTRUCTOR CLASS
teach
(0,1) (1,1)
C. .
1 M
C INSTRUCTOR CLASS
teach
(1,N) (1,1)
D. 1 M
C INSTRUCTOR CLASS
teach
(0,N) (1,1)
36. ______________ refers to the requirement that other operations cannot access data that has
been modified during a transaction that has not yet been completed.
[CLO 2]
A. Consistent
B. Isolated
C. Durable
D. Atomic
Page 13 of 20
CONFIDENTIAL FP304 DATABASE SYSTEM
37. _____________is the ability of the DBMS to recover the committed transaction updates
against any kind of system failure. [CLO 2]
A. Consistent
B. Isolated
C. Durable
D. Atomic
38. Deadlocks are possible only when one of the transactions wants to obtain a (n)
_________________ lock on a data item. [CLO 2]
A. Binary
B. Exclusive
C. Shared
D. Complete
39. Which of the following term below refers to the statement stated below?
Page 14 of 20
CONFIDENTIAL FP304 DATABASE SYSTEM
40. If locking is not available and several users access a database concurrently, problems
may occur if their transactions use the same data at the same time. Concurrency
problems include
i. Lost or buried updates.
ii. Uncommitted dependency
iii. Inconsistent analysis
iv. Transaction Log
[CLO 2]
A. i
B. ii,iii
C. i,ii,iii
D. i,iii,iv
Page 15 of 20
CONFIDENTIAL FP304 DATABASE SYSTEM
SECTION B
INSTRUCTION:
This section consists of TWO (2) structured questions. Answer ALL questions.
QUESTION 1
Figure 1.1
Page 16 of 20
CONFIDENTIAL FP304 DATABASE SYSTEM
STUDENT
STU_NUM STU_LNAME
321452 Bowser
324257 Smithson
ENROLL
CLASS_CODE STU_NUM ENROLL_GRADE
10014 321452 C
10014 324257 B
10018 321452 A
10018 324257 B
10021 321452 C
10021 324257 C
CLASS
CLASS_CODE CRS_CODE CLASS_SECTION CLASS_TIME CLASS_ROOM PROF_NUM
10014 ACCT-211 3 THUR, 2:30 - 3.45 PM BUS252 342
10018 CIT-220 2 MON, 9:00 - 9:50 PM KLR211 114
10021 QM-261 1 WED, 8:00 - 8:50 AM KLR200 114
Figure 1.2
Page 17 of 20
CONFIDENTIAL FP304 DATABASE SYSTEM
QUESTION 2
b) Identify THREE (3) DDL statements in SQL and the function of each [CLO 1]
(3 marks)
statement.
Page 18 of 20
CONFIDENTIAL FP304 DATABASE SYSTEM
d) Generate the output for the following SQL statements based on [CLO 3]
Table 2.1.
Table 2.1
Page 19 of 20
CONFIDENTIAL FP304 DATABASE SYSTEM
e) Table 2.2 shows a list of patient appointments with the doctor. Each
patient is given the time and date of appointment with doctors in a particular
[CLO 3]
room. Show the steps on how you make the process of normalization stage 1NF,
2NF and 3NF. (5 marks)
Appointment
Temujanji NoBilik
Staff# Nama_Doktor Pesakit# NamaPesakit
Tarikh Masa
AT020123 Kamal 1/12/2002 10.00 S15
8765 Shamsul
AT00111 Jamaliah 1/12/2002 12.00 S15
CT00456 Sudin 1/12/2002 10.00 S10
8602 Maizul
CT00456 Sudin 14/1/2002 14.00 S10
AT00111 Jamaliah 14/1/2002 16.30 S15
8111 Aziz
AT00103 Abu 15/1/2002 18.00 S13
Table 2.2
Page 20 of 20