2025 question paper
Database Management System
28 questions
Q1a. Which statement is FALSE? (i) Every weak entity depends on a strong entity (ii) A weak entity can have a partial key (iii) Every many-to-many relationship becomes a separate relation (iv) Every relation generated from ER always has a single candidate key20252m
Module 1: Database System Architecture
View this question on its own page →Which statement is FALSE?
(i) Every weak entity depends on a strong entity
(ii) A weak entity can have a partial key
(iii) Every many-to-many relationship becomes a separate relation
(iv) Every relation generated from ER always has a single candidate keyQ1b. For relation: R(A,B,C); FDs={A \rightarrow B, B \rightarrow A}. Which statement is true? (i) A and B both are candidate keys (ii) Only A is key (iii) Only B is key (iv) Neither A nor B is key20252m
Module 2: Relational Query Languages & Design
View this question on its own page →For relation: R(A,B,C); FDs={A B, B A}. Which statement is true?
(i) A and B both are candidate keys
(ii) Only A is key
(iii) Only B is key
(iv) Neither A nor B is keyQ1c. The relational algebra expression \pi_A(R) - \pi_A((\pi_A(R) \times S) - R) is equivalent to: (i) Selection (ii) Join (iii) Division (iv) Projection20252m
Module 2: Relational Query Languages & Design
View this question on its own page →The relational algebra expression is equivalent to:
(i) Selection
(ii) Join
(iii) Division
(iv) ProjectionQ1d. Which query is best solved using division operation? (i) Find students enrolled in DBMS (ii) Find students enrolled in all courses (iii) Find students with marks >80 (iv) Find students from CSE20252m
Module 2: Relational Query Languages & Design
View this question on its own page →Which query is best solved using division operation?
(i) Find students enrolled in DBMS
(ii) Find students enrolled in all courses
(iii) Find students with marks >80
(iv) Find students from CSEQ1e. A relation is in BCNF if: (i) Every non-prime attribute depends on key (ii) Every FD is trivial (iii) Every determinant is a superkey (iv) Every attribute is atomic20252m
Module 2: Relational Query Languages & Design
View this question on its own page →A relation is in BCNF if:
(i) Every non-prime attribute depends on key
(ii) Every FD is trivial
(iii) Every determinant is a superkey
(iv) Every attribute is atomicQ1f. Suppose relation R(A,B,C) is decomposed into: R1(A,B) and R2(B,C). The decomposition is lossless if: (i) B \rightarrow A or B \rightarrow C (ii) A \rightarrow B (iii) A \rightarrow C (iv) C \rightarrow B20252m
Module 2: Relational Query Languages & Design
View this question on its own page →Suppose relation R(A,B,C) is decomposed into: R1(A,B) and R2(B,C). The decomposition is lossless if:
(i) B A or B C
(ii) A B
(iii) A C
(iv) C BQ1g. Compared with B-tree indexing, hashing is preferred when queries mainly involve: (i) Range searches (ii) Ordered traversal (iii) Exact match search (iv) Sorting20252m
Module 3: Storage Strategies
View this question on its own page →Compared with B-tree indexing, hashing is preferred when queries mainly involve:
(i) Range searches
(ii) Ordered traversal
(iii) Exact match search
(iv) SortingQ1h. For a B-tree of order m, every non-root internal node must have at least: (i) m/2 children (ii) [m/2] children (iii) [m/2]-1 children (iv) m-1 children20252m
Module 3: Storage Strategies
View this question on its own page →For a B-tree of order m, every non-root internal node must have at least:
(i) m/2 children
(ii) [m/2] children
(iii) [m/2]-1 children
(iv) m-1 childrenQ1i. Consider the schedule: R1(X), R2(X), W1(X), W2(X). The schedule is: (i) View serializable only (ii) Conflict serializable (iii) Not serializable (iv) Recoverable20252m
Module 4: Transaction Processing
View this question on its own page →Consider the schedule: R1(X), R2(X), W1(X), W2(X). The schedule is:
(i) View serializable only
(ii) Conflict serializable
(iii) Not serializable
(iv) RecoverableQ1j. Under strict two-phase locking: (i) Exclusive locks are held until commit/abort (ii) Deadlocks are impossible (iii) Locks can be released anytime (iv) Transactions become serial20252m
Module 4: Transaction Processing
View this question on its own page →Under strict two-phase locking:
(i) Exclusive locks are held until commit/abort
(ii) Deadlocks are impossible
(iii) Locks can be released anytime
(iv) Transactions become serialQ2a. Explain the three-level database architecture with a neat diagram. How does it support data abstraction and data independence?20257m
Module 1: Database System Architecture
View this question on its own page →Explain the three-level database architecture with a neat diagram. How does it support data abstraction and data independence?
Q2b. Explain integrity constraints in DBMS. Discuss different types with examples.20257m
Module 1: Database System Architecture
View this question on its own page →Explain integrity constraints in DBMS. Discuss different types with examples.
Q3a. Design an ER diagram for a Hospital Management System containing Patients, Doctors, Departments, and Appointments. Clearly identify entities, attributes, relationships, and cardinalities.20257m
Module 1: Database System Architecture
View this question on its own page →Design an ER diagram for a Hospital Management System containing Patients, Doctors, Departments, and Appointments. Clearly identify entities, attributes, relationships, and cardinalities.
Q3b. What is a JOIN in SQL? Explain various JOIN operations with a suitable example for each and discuss their applications in database systems.20257m
Module 2: Relational Query Languages & Design
View this question on its own page →What is a JOIN in SQL? Explain various JOIN operations with a suitable example for each and discuss their applications in database systems.
Q4a. Consider: * Student(SID, Name, Dept, Age) * Course(CID, CName, Faculty) * Enroll(SID, CID, Marks) 1. Write relational algebra expressions to find: * a) Students enrolled in DBMS * b) Students scoring >80 marks * c) Students not enrolled in any course 2. Write SQL queries: * a) Find highest marks * b) Find average marks department-wise * c) Display students enrolled in more than two courses 3. Translate the following query into tuple relational calculus: * "Find names of students from CSE department." 4. Convert the following relational algebra into SQL: * \pi_{Name}(\sigma_{Marks > 85}(Student \bowtie Enroll))202510m
Module 2: Relational Query Languages & Design
View this question on its own page →Consider:
- Student(SID, Name, Dept, Age)
- Course(CID, CName, Faculty)
- Enroll(SID, CID, Marks)
- Write relational algebra expressions to find:
- a) Students enrolled in DBMS
- b) Students scoring >80 marks
- c) Students not enrolled in any course
- Write SQL queries:
- a) Find highest marks
- b) Find average marks department-wise
- c) Display students enrolled in more than two courses
- Translate the following query into tuple relational calculus:
- "Find names of students from CSE department."
- Convert the following relational algebra into SQL:
Q4b. For relation R(A,B,C,D,E) functional dependencies are given as follows: * A \rightarrow BC * CD \rightarrow E * B \rightarrow D Find candidate keys.20254m
Module 2: Relational Query Languages & Design
View this question on its own page →For relation R(A,B,C,D,E) functional dependencies are given as follows:
- A BC
- CD E
- B D
Find candidate keys.
Q5a. Explain different normal forms up to BCNF with examples.20257m
Module 2: Relational Query Languages & Design
View this question on its own page →Explain different normal forms up to BCNF with examples.
Q5b. Explain different indexing techniques used in databases.20257m
Module 3: Storage Strategies
View this question on its own page →Explain different indexing techniques used in databases.
Q6a. Consider a hash table of size 10 with the hash function h(k) = k \pmod{10}. Insert the keys 23, 43, 13, 27, 37, and 50 into the hash table. Construct the hash table using separate chaining for collision resolution and then reconstruct it using linear probing. Compare the final arrangements obtained using both methods.20257m
Module 3: Storage Strategies
View this question on its own page →Consider a hash table of size 10 with the hash function . Insert the keys 23, 43, 13, 27, 37, and 50 into the hash table. Construct the hash table using separate chaining for collision resolution and then reconstruct it using linear probing. Compare the final arrangements obtained using both methods.
Q6b. Define serializability. Explain conflict and view serializability.20257m
Module 4: Transaction Processing
View this question on its own page →Define serializability. Explain conflict and view serializability.
Q7a. Explain two-phase locking protocol with an example.20257m
Module 4: Transaction Processing
View this question on its own page →Explain two-phase locking protocol with an example.
Q7b. Explain concurrency control problems such as lost update, dirty read, and unrepeatable read.20257m
Module 4: Transaction Processing
View this question on its own page →Explain concurrency control problems such as lost update, dirty read, and unrepeatable read.
Q8a. Explain authentication, authorization, and the role of encryption in DBMS security.20257m
Module 5: Database Security
View this question on its own page →Explain authentication, authorization, and the role of encryption in DBMS security.
Q8b. Explain object-oriented databases and discuss their advantages over relational databases.20257m
Module 6: Advanced Topics
View this question on its own page →Explain object-oriented databases and discuss their advantages over relational databases.
Q9a. Write a short note on: Dependency Preservation and Lossless Decomposition20257m
Module 2: Relational Query Languages & Design
View this question on its own page →Write a short note on:
Dependency Preservation and Lossless Decomposition
Q9b. Write a short note on: Database Recovery Techniques20257m
Module 4: Transaction Processing
View this question on its own page →Write a short note on:
Database Recovery Techniques
Q9c. Write a short note on: SQL injection attacks20257m
Module 5: Database Security
View this question on its own page →Write a short note on:
SQL injection attacks
Q9d. Write a short note on: data mining20257m