Sample Question Paper Data Base Management System
Sample Question Paper Data Base Management System
Instructions:
(1) All questions are compulsory.
(2) Illustrate your answers with neat sketches wherever necessary.
(3) Figures to the right indicate full marks.
(4) Assume suitable data if necessary.
(5) Preferably, write the answers in sequential order.
1
c) Explain predefined and user defined exception handling with the help of example.
d) Explain ACID properties of transaction.
2
b) Write a PL/SQL program to check whether specified employee is present in EMP
table or not. Accept empno from user. If employee does not exist display message
using exception handling.
3
Scheme – I
Sample Test Paper - I
Instructions:
(1) All questions are compulsory.
(2) Illustrate your answers with neat sketches wherever necessary.
(3) Figures to the right indicate full marks.
(4) Assume suitable data if necessary.
(5) Preferably, write the answers in sequential order.
4
Scheme – I
Sample Test Paper - II
Instructions:
(1) All questions are compulsory.
(2) Illustrate your answers with neat sketches wherever necessary.
(3) Figures to the right indicate full marks.
(4) Assume suitable data if necessary.
(5) Preferably, write the answers in sequential order.
c) Write a PL/SQL code to print largest number from three numbers (accept three
numbers from user)
d) Write a PL/SQL code to print number of employees working in specified department.
Consider employee table and accept deptno from user.
e) Pass empno as a parameter to function and write a function to return salary of that
employee.
f) Write SQL queries for following
i) Create table EMP (empno, deptno, ename, salary, Designation, joiningdate, DOB,
city).
ii) Revoke select, insert and update privileges from the user.