Tribhuwan University

Institute of Science and Technology

2080

Bachelor Level / Second Year / Third Semester / Science

Bachelors in Information Technology (BIT202)

(Database Management System)

Full Marks: 60

Pass Marks: 24

Time: 3 Hours

Candidates are required to give their answers in their own words as for as practicable.

The figures in the margin indicate full marks.

Section A

Long Answers Questions

Attempt any TWO questions.
[2*10=20]
1.
Define serial, non-serial and serializable schedules with example. How can you test serializability in a schedule? Explain with an example.[10]
2.
What is Transaction? State and explain the states of transaction with transition diagram.[5]
3.
From the relations given below, answer the following questions EMPLOYEE (Ssn, Ename, Bdate, Address, Sex, Salary, Super_ssn, Dno), DEPARTMENT (Dname, Dnumber, Mgr_ssn, Mgr_start_date), PROJECT (Pname, Pnumber, Plocation, Dnum), DEPENDENT (Essn, Dependent_name, Sex, Bdate, Relationship), DEPT_LOCATIONS (Dnumber, Dlocation): a. Retrieve the name and address of all employees who work for the 'Computer' department in SQL, b. For each Department, retrieve the department number, the number of employees in the department, and their average salary using SQL, c. Retrieve the employees name and their Dname and Pname ordered by the employee's Dname, d. Retrieve the name and salary of all employees who work in department number 5 using Relational Algebra, e. Retrieve the name of the manager of each department using Relational Algebra. Following the above statement answer the following question. [10+0]
Section B

Short Answers Questions

Attempt any Eight questions.
[8*5=40]
4.
What are the Advantages of using DBMS? Explain in brief. [5]
5.
What is Attributes? Explain different types of Attributes with example. [5]
6.
Define relation, instance and schema. Explain with example [5]
7.
What is Normalization? Explain the 2NF with Examples. [5]
8.
What is Shared/Exclusive (Read/Write) Locks? How it is different from binary Locks. [5]
9.
What is Deadlock in DBMS? Explain with example. [5]
10.
What is shadow paging? How it is used for database recovery? [5]
11.
What is data independence? How three schema architecture ensures logical and physical data independence? [5]
12.
What is NoSQL? Explain the characteristics of NoSQL. [5]