You are on page 1of 5

Dec_2015 CSC305

USN 2 B V

V Semester B.E. Examination


(Computer Science and Engineering)
Database Management Systems (CSC305)
Duration: 3 hours Max. Marks: 100
Note: i) Answer any TWO full questions from UNIT-I, any TWO full questions from
UNIT-II and any ONE full question from UNIT-III.
ii) Missing data may be suitably assumed wherever necessary with justification.
UNIT-I
1 a. With a neat diagram, explain how data independence in achieved is database. (06 marks)
b. Explain referential integrity constraint with example. (08 marks)
c Consider the relations given below
EMP DEPT
Ename Eid Dno
Ram 1 10 Dname Dnum

Ram 2 20 CS 10

Sita 3 10 IS 20

Which of the relational model constraints are violated by following operations


i) insert into emp values(‘Ram’,2,50);
ii) insert into dept values(‘CS’,30);
iii) delete from dept where dnum=10; (06 marks)
2 a. List and explain any 3 advantages of database approach (06 marks)
b. Explain cardinality ratio and participation constraints with an example for each (06 marks)
c. Define the following terms with example
i) Data model ii) Relationship iii) Degree of a relation iv) database system (08 marks)
3 a. Explain the actors on scene of database system (06 marks)
b. Describe data model with example (06 marks)
c Draw an ER diagram for COLLEGE database. Assume your own
entities(minimum 5), suitable attributes, relations and cardinality ratio. (08 marks)
UNIT-II
4 a. Consider the schedule given below
S: r3(y),r3(z),r1(x),w1(x),w3(y),w3(z),r2(z),r1(y),w1(y),r2(y),w2(y),r2(x),w2(x)
State whether S is serializable or not, by using serializability graph. If serializable
write its equivalent serial schedule. (06 marks)
b. Consider the relational schema given below (08 marks)
DRIVER(Dname, Did, Sal, Sex, Addr)
CAR(Cmake, Cmodel, Carno, Year)
ACCIDENT(Driver_id, Car_num, Date_of_purchase, Place)
Write relational algebra operations for following
i) Retrieve the name and address of all male drivers who have met with
exactly 2 accidents with HONDA car.

Page 1
ii) Retrieve the details of accidents at Hubli by female drivers.
iii) For each female driver retrieve driver name, salary and number of
accidents
c Explain 1NF with an example (06 marks)
5 a. Explain state transition diagram of a transaction with a neat diagram. (06 marks)
b. Consider the relation R given below (06 marks)
R(A, Z, X, P, L, Q, M)
Let Z be the primary key of R
Let F be the set of functional dependencies on R as given below
F={z->{A, X, P, L}, L->{Q, M}}
Convert relation R into 2NF and 3NF
c. Consider the relational schema given in Q.No 4(b). (08 marks)
Write SQL queries for i), ii) and iii) in Q.No 4(b).
6 a. Explain how ALTER command in SQL is used to add attributes and drop (06 marks)
attributes on relations.
b. With an example explain NATURAL JOIN operation in relational algebra. (08 marks)
c Define the following terms (06 marks)
i) Trivial Functional dependency
ii) Normal form
iii) Conflict operation
UNIT-III

7 a. Consider the relations given below


EMP(Ename, Eid, Sal, DOB, Sex, Dno)
DEPT(Dname, Dnum)
Write a PL-SQL code to retrieve name of all female employees whose age is
greater than 40, along with their department name. (10marks)
b. Consider the following relations
EMP(Ename, SSN, Sex, Sal, Dno)
EMP_SAL_UPDATE(Essn, old_sal, new_sal, acc_name)
Let EMP stores all the employees details.
As and when an employee’s salary is updated, then that employee’s SSN, old
salary, new salary and database user who has updated the salary are stored in
EMP_SAL_UPDATE.

Write a PL-SQL trigger to store details in EMP_SAL_UPDATE, immediately


after an employee’s salary is updated. (10 marks)
8 a. Explain different deadlock prevention techniques. (10 marks)
b. Explain 2-phase locking technique with example. (10 marks)

Page 2
Department:.CSE Sem: V Sub-Name: DBMS Sub-Code: CSC305 Faculty Name: M.K.Gonal
Q.No Blooms Learning Course Learning a-k Criteria PI codes Marks
Levels (LL) Objectives(CLO’s)
1: a L2 1 A 1.4.3 6
b L2 1 A 1.4.3 8
c L3 1 A 1.4.3 6
2: a L2 1 A 1.4.3 6
b L2 1 A 1.4.3 6
c L2 1 A 1.4.3 8
3: a L2 1 A 1.4.3 6
b L2 1 A 1.4.3 6
c L3 1 A 1.4.3 8
4: a L3 6 A 2.2.3 6
b L3 2 A 1.4.3 8
c L2 3 A 1.4.3 6
5: a L2 4 A 1.4.3 6
b L3 3 A 2.2.3 6
C L3 5 A 1.4.3 8
6: a L2 5 A 1.4.3 6
b L2 2 A 1.4.3 8
c L2 6 A 1.4.3 6
7: a L3 5 A 14.1.2 10
b L3 5 A 14.1.2 10
8: a L3 6 A 1.4.3 10
b L2 6 A 1.4.3 10

Page 3
K.L.E Society’s
B.V.Bhomaraddi College of Engineering & Technology, Hubli-580 031

Examination Section
Semester End Examination Question Paper Review
Set I
(Strike off the not Applicable one)
Programme: BE Course:DBMS Course Code: CSC305
Duration: 3 Hrs Semester: V
Self Review Expert
Criterion (Yes/No/NA/ Review
Number (Yes/No/NA/
Number
1] Whether the following details are mentioned correctly on YES
the
Header of the question paper (Exam month and year etc
up to instructions)?
2] Whether the question paper covers the entire syllabus YES
(unit wise) as announced in the scheme of SEE at the end
of prescribed syllabus for this course?
3] Whether the pattern of question paper is in accordance YES
with the model question paper?
4] Whether marks distribution is proper for all the questions YES
and sub questions?
5] Whether the question paper has all the required data and YES
figures? If figures exist, mention the number of figures in
the paper.
6] Mention the time required for an average student to 165
answer this paper (in minutes)
7] How many corrections you have made in the print copy of NIL
the question paper (typographical errors etc)?
8] Whether the scheme is ready along with the paper? YES
9] Whether the scheme contains marks splitting along with YES
points?
10] a) How many numerical problems are there in the
question paper?
b) How many worked out solutions exist in the scheme?
11] Is the Softcopy previewed for printing & verified for YES
corrections?
12] Would you like to do modifications to any of the NA *Yes/No
questions? (only for reviewer)
Reviewer’s Signature
Reviewer’s
Name
Date of Review
Page 4
*If Yes please fill in the details on the reverse page

To,
The Controller of Examinations
B.V.B College of Engineering & Technology, Hubli.

Sir,

After scrutinizing I Recommend No/ The Following (Strike out not applicable)
corrections for this paper. The details are as follows:

Department:__________________________ Course-
_____________________
Paper Code:___________________________ Course
Code:________________
Correction Unit Question & Existing Question Suggested Change Reasons for Change
No No Sub Questions

Date:______________ Signature of Scrutinizer


Scrutinizer:_____________
Name of the Scrutinizer:_

Page 5

You might also like