Skip to content
Previous Year Question Paper

CY-405 - Database Management System

December 2024CSCYSEMESTER-4
December 2024
Max Marks:
Duration:
Q.1
a)Unit 1

Explain the architecture of DBMS and describe the main components.

b)Unit 1

Differentiate between DBMS and traditional file systems. Explain how DBMS offers data independence with examples.

Q.2
a)Unit 1

Draw and explain an ER diagram for a Hospital Management System with entities like Patients, Doctors and Appointments, including relationships and constraints.

b)Unit 2

Describe different types of relational keys. What is the importance of primary and candidate keys in relational databases?

Q.3
a)Unit 2

Write SQL queries to perform the following tasks on a student database:

i) Retrieve all students who scored above 85 in Mathematics.

ii) Find the names of students who are enrolled in both Math and Science courses.

b)Unit 2

Define triggers in SQL. Write a trigger that updates the total order amount in an "Orders" table whenever a new order is added in an "OrderItems" table.

Q.4
a)Unit 3

Define functional dependencies with examples. Explain the importance of functional dependencies in achieving database normalization.

b)Unit 3

Normalize the following relation to 2NF and 3NF: Employee(SSN, EmpName, DeptID, DeptName, DeptLocation, ProjectID, ProjectName)

Q.5
a)Unit 4

Define deadlock in the context of databases. Describe one technique each for deadlock prevention, detection and resolution.

b)Unit 4

Discuss two-phase locking protocol. Explain its role in maintaining serializability in concurrent transactions.

Q.6
a)Unit 4

Differentiate between serial and non-serial schedules. Test if the following schedule is serializable or not: T1 : R(X), W(X), R(Y), W(Y) T2 : R(X), R(Y), W(Y) T3 : R(Y), W(X)

b)Unit 5

Explain the purpose of indexing in database. How does a primary index differ from a clustering index?

Q.7
a)Unit 5

Describe the different phases of query processing in DBMS. How does query optimization contribute to the efficiency of database systems?

b)Unit 5

Given a database of student records, explain how a hash function can be used for quick data retrieval.

Q.8
Unit 2

Write short notes on (any two):

i) Relational integrity constraints and their importance in databases

ii) Entity-Relationship (ER) model

iii) Lossless Join and Dependency Preserving Decomposition

iv) Serializability and its types