0% found this document useful (0 votes)
26 views

COM2301 - Database Management Systems - Model Paper

The document provides instructions for a database management systems examination. It contains three parts - multiple choice questions, structured questions and essay questions. It instructs students on duration, marks allocation, and expectations for answering the questions.

Uploaded by

akeelabanu4400
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

COM2301 - Database Management Systems - Model Paper

The document provides instructions for a database management systems examination. It contains three parts - multiple choice questions, structured questions and essay questions. It instructs students on duration, marks allocation, and expectations for answering the questions.

Uploaded by

akeelabanu4400
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

STUDENT Examination NO: ………………………

KIU
Faculty of Computer Science and Engineering

2nd Year 1st Semester – June 2024


COM2301– Database Management Systems
Model Paper

Answer only FIVE questions Duration 02 hours


Date : May 2024 Marks 100%
Time : 09.00am – 11.00am

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.

KIU Department of Examinations

Page 1 of 10
STUDENT Examination NO: ………………………

Part 1

For MCQ questions, select ONE correct choice. [1 x 15 = 15 marks]

1. Which occupation would most likely use a database on the job?


a) An athlete
b) Telephone information operators
c) Heavy equipment operator
d) None of the above

2. Advantages of Database Management Systems are:


a) Reduced redundancy
b) Sharing of data
c) Security
d) All of the above

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

4. Each attribute is associated with a set of values called a;


a) tuple.
b) domain
c) integer
d) row

5. Which is NOT included in the definition of an entity?


a) Person
b) Place
c) Thing
d) Schema

6. Which is NOT an example of a strong entity type?


a) EMPLOYEE
b) PROJECT
c) DEPARTMENT
d) EMPLOYEE ID

7. Attributes are classified as


a) Composite, multivalued, single
b) Stored, multi valued, simple
c) Derived, composite, simple
d) Composite, tuple, multi valued

KIU Department of Examinations

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

12. Which is an entity in a Museum Database?


a) Open hours
b) Exhibition items
c) Ticket price
d) None of the above

13. Which is the description of a database?


a) A database schema
b) Schema construct
c) Database state

KIU Department of Examinations

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

KIU Department of Examinations

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: ………………………

2. Draw an entity-relationship diagram for the following system. [10 marks]


The officials of the airport decided that all information related to the airport should be organized
using a DBMS, and you have been hired to design the database. Your first task is to organize the
information about all the airplanes stationed and maintained at the airport. The relevant information
is as follows:
Every airplane has a unique registration number. Each airplane belongs to a specific model. The
airport accommodates a number of airplane models, and each model is identified by a model
number (e.g. DC-IO) and has a capacity and a weight. A number of technicians work at the airport.
You need to store the name, NIN (National Identity Number), address, phone number, and salary
of each technician. Each technician is aJ1'~xperU~none or more plan model(s), and his or her
expertise may overlap with that of other technicians. This information about technicians must also
be recorded.Traffic controllers must have an annual medical examination. For each traffic
controller, you must store the date of the most recent exam. All airport employees (both technician
and traffic controllers) belong to a union. You must store the union membership number of each
employee. You can assume that each employee is uniquely identified by a national identity
number.The airport has a number of tests that are used periodically to ensure that airplanes are still
airwort~y. Each test has Federal Aviation Administration (FAA) test number,a name, and a
maximum possible score.The FAA requires the airport to keep track of each time a given airplane
is tested by a given technician using a given test. For each testing event, the information needed is
the date, the number of hours the technician spent doing the test, and the score the airplane received
on the test.

KIU Department of Examinations

Page 6 of 10
STUDENT Examination NO: ………………………

3. Consider the following schema:


EMPLOYEE(eid, ename, salary, dept, address)

DEPT(deptno, dname, building,mgr)

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.

Write the following queries in relational algebra.

a) Print names of employees working for 'Administration' (i.e. dname) department and
getting a salary> Rs. 50,000(2 marks)

b) Print names of employees who are managers.(2 marks)

c) Print names of employees managing' Administration' and 'Sales' department. (2 marks)

d) Print names of employees managing 'Administration' but not 'Sales' department.(2 marks)

e) Print the average salary of managers(2 marks)

[2 x 5= 10 marks]

KIU Department of Examinations

Page 7 of 10
STUDENT Examination NO: ………………………

4.

[2 x 5= 10 marks]

KIU Department of Examinations

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)

Write the following queries in SQL:


a) List details of all hotels in Colombo. (04 marks)
b) List the names and addresses of all guests Iiving in Colombo, alphabetically ordered by name.
(04 marks)
c) List the bookings for which no "date to" have been specified. (04 marks)
d) What is the average price of a room? (03 marks)

[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]

Q3. Map the following ER diagram into relational model.

KIU Department of Examinations

Page 9 of 10
STUDENT Examination NO: ………………………

[10 marks]

Q4.

a) Briefly explain the following terms. (04 marks)


a. 3NF
b. Normalization

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 *********************

KIU Department of Examinations

Page 10 of 10

You might also like