COM2301 - Database Management Systems - Model Paper
COM2301 - Database Management Systems - Model Paper
KIU
Faculty of Computer Science and Engineering
INSTRUCTIONS
A) This paper consists of THREE (3) parts. Part 1 consists of Fifteen (15) MCQ questions, Part
2 consists of Four (4) structured type questions and Part 3 consists of 4 essay type
questions.
B) Answer ALL questions.
C) This is a closed book examination. Calculators are NOT allowed.
D) Questions of Part 1 carry 1 mark each, questions of Part 2 carry 10 marks each and the
marks allocation for Part 3 questions are indicated next to the question.
E) Write your index number on each page of your answer script. Do Not write your name.
F) Question number should be written clearly on the left side of the blue line in the answer
script.
G) Well-focused answers written in clear handwriting are highly expected.
H) Handover your answer script directly to the invigilator.
I) All notes, files, books, etc., should be kept at the place prescribed by the invigilator.
Page 1 of 10
STUDENT Examination NO: ………………………
Part 1
3. When two entities are associated the relationship that exists is called a;
a) Ternary relationship
b) Binary relationship
c) Dual relationship
d) None of the above
Page 2 of 10
STUDENT Examination NO: ………………………
8. The …………………. specifies the number of instances of one entity that can (or must) be
associated with each instance of another entity.
a) Cardinality constraint
b) Entity instance
c) Multivalued attribute
d) Associative entity
9. A primary key
a) Is also referred to as a composite key
b) Is a unique identifier in a column
c) Uniquely identifies data in a row
d) Must be accompanied by the corresponding foreign key
10. A __ is an attribute in a relation that serves as a primary key of another relation
a) Composite key
b) Foreign key
c) Identifier
d) Primary key
11. The __ states that a foreign key must either match a primary key value in another
relation or it must be null.
a) Entity integrity rule
b) Referential integrity constraint
c) Action assertion
d) Composite attribute
Page 3 of 10
STUDENT Examination NO: ………………………
d) External view
14. An entity whose existence depend on another entity is called a:
a) Strong entity
b) Weak entity
c) Codependent entity
d) Variant entity
15. Different categories of data models are
a) Conceptual, logical, physical
b) Conceptual, hierarchical, physical
c) Contextual, organizational, implementation
d) Conceptual, physical, external
Page 4 of 10
STUDENT Examination NO: ………………………
Part 2
Answer all the following structured questions. Write your responses in the space
provided. [10 x 4 = 40 marks]
1. What is mean by “Degree of a relationship” and explain three types of it using suitable diagrams.
Consider the following ERD fragment and write the name of following attribute if exist.
Name
1. key attribute
2. Multivalue attribute
3. Composite Attribute
4. Derived Attribute
5. Stored Atribute
[1 x 10= 10 marks]
KIU Department of Examinations
Page 5 of 10
STUDENT Examination NO: ………………………
Page 6 of 10
STUDENT Examination NO: ………………………
The EMPLOYEE relation contains employee id (eid), employee name (ename), salary of
employee (salary), address of employee (address) and department (dept) attributes. The
DEPT relation contains department number (deptno), department name (dname), building
(building) and employee number of managers.
a) Print names of employees working for 'Administration' (i.e. dname) department and
getting a salary> Rs. 50,000(2 marks)
d) Print names of employees managing 'Administration' but not 'Sales' department.(2 marks)
[2 x 5= 10 marks]
Page 7 of 10
STUDENT Examination NO: ………………………
4.
[2 x 5= 10 marks]
Page 8 of 10
STUDENT Examination NO: ………………………
Part 3
Answer all the questions.
Q1. Consider the hotel schema given below.
Hotel ( hotelno. hotelname, city)
Room(roomno. hotelno, type,price)
Booking ( hotelno, guestno, datefrom, dateto, room no)
Guest ( gllestno, guestname,guestaddress)
[15 marks]
Q2.
a) What is a DBMS? (02 marks)
b) List 2 examples of commercially available DBMS. (02 marks)
c) Name any 3 specific benefits of the database approach. (06 marks)
[10 marks]
Page 9 of 10
STUDENT Examination NO: ………………………
[10 marks]
Q4.
b) The following purchase details table is in 1st normal form (1NF) and contains only a single key
as the primary key. Normalize the table to 2NF? (06 marks)
[10 marks]
************************** END OF THE EXAM PAPER *********************
Page 10 of 10