dbms pyq
dbms pyq
May 2024
1. Define Database Management System (DBMS). What are the major components of this
system? Explain each component. (Page 8, Q.8)
2. What is an ER Diagram? Draw an ER Diagram for railway reservation. (Page 41, Q.57)
Nov 2023
3. Discuss the role of the following in representing information about the real world in a
database:
○ DDL and DML
○ The buffer manager
○ The data model (Page 23, Q.33)
4. Describe the structure of a DBMS. If your operating system is upgraded to support new
functions on OS files (e.g., the ability to force some sequence of bytes to disk), which
layer(s) of the DBMS would you have to rewrite to take advantage of these new
functions? (Page 10, Q.13)
1. Compare Object-Oriented, Network, and Relational Data Models with examples. (Page
55, Q.71)
2. What are integrity constraints? Explain various types of integrity constraints with suitable
examples. (Page 65, Q.18)
3. Discuss in detail the SELECT, PROJECT, and UNION operators with suitable examples.
(Page 102, Q.52)
4. Write SQL queries to implement aggregate functions using a student database. (Page
97, Prob.6)
Nov 2023
1. How to compute the closure of a set of functional dependencies? Explain with a suitable
example. (Page 139, Q.20)
2. What is a multi-valued dependency? State and explain the fourth normal form based on
this concept. (Page 160, Q.40)
3. Identify the candidate keys and the highest normal form of the relation R(ABCDEF) with
the given functional dependencies:
○ A → BC
○ C→E
○ E→F
○ F → AB (Page 148, Prob.7)
4. Compute the minimal (canonical) cover for the relation R(WXYZ) with the following
functional dependencies:
○ X→W
○ WZ → XY
○ Y → WXZ (Page 144, Prob.2)
Nov 2023
5. Identify the candidate key and highest normal form of the relation R(E, F, GH) given the
functional dependencies:
○ E→F
○ F→G
○ H → G (Page 146, Prob.5)
6. Consider a relation R(ABCD) with the functional dependencies:
○ A→B
○ B→C
○ C→D
○ D→A
○ Determine if the decomposition into subrelations R1(AB), R2(BC), and R3(CD)
preserves dependencies. (Page 163, Prob.9)
Nov 2023
5. Discuss the transaction states (Active, Partially Commit, Commit, Failure, and
Terminated) with reference to the given transaction example. (Page 181, Q.9)
6. Discuss the issues that may arise with the interleaved execution of transactions T1 and
T2. (Page 204, Q.42)
7. Draw the precedence graph for the given concurrent schedule and determine if it is
conflict serializable. (Page 187, Q.18)
8. Illustrate the concept of the Two-Phase Locking protocol and its variants with an
example. (Page 211, Q.51)
1. What is Cursor Management? Explain nested and parameterized cursors. (Page 297,
Q.58)
2. What is a Distributed Database System? How is it different from a centralized database
system? Give the uses of distributed systems. (Page 263, Q.18)
Nov 2023
3. Write short notes on any two:
○ (a) Oracle Application Express (Page 252, Q.9)
○ (b) Specialization vs Generalization (Page 43, Q.59)
○ (c) Temporal vs Multimedia Databases (Page 241, Q.84)
○ (d) Triggers (Page 89, Q.43)
Or hai abhii!!!
Year 2024:
1. Discuss the role of the following in representing information about the real world
in a database (i) DDL and DML (ii) The buffer manager (iii) The data model.
2. Describe the structure of a DBMS. If your operating system is upgraded to support
new functions on OS files (e.g., the ability to force some sequence of bytes to disk),
which layer(s) of the DBMS would you have to rewrite to take advantage of these new
functions?
3. What is an ER diagram? Draw an ER diagram for railway reservation.
4. Discuss the concept of Generalization, Aggregation, and Specialization in the
context of the Entity-Relationship model.
5. Illustrate schema transformation from an ER diagram to relational tables.
Year 2023:
1. Define Database Management System (DBMS): What are the major components of
this system? Explain each component.
2. What is an Entity-Relationship (ER) Diagram? Explain how it is used in database
design with an example.
3. Describe the differences between the Object-Oriented Data Model, Network Data
Model, and Relational Data Model with examples.
4. Explain the concept of Data Independence with respect to a DBMS.
5. Discuss the advantages of a database system over the traditional file processing
systems.
Year 2022:
1. Explain the concept of Database Schemas and Instances.
2. Differentiate between the traditional file system and database system.
3. What is Data Independence? Discuss its types.
4. Define and discuss the concept of Entity Types, Attributes, and Relationships in
the context of ER modeling.
5. Draw an ER diagram for a library management system, and convert it into a relational
schema.
Year 2021:
Year 2020:
1. Explain the concept of Data Models and compare the Object-Oriented, Network, and
Relational models with examples.
2. What are the different types of relationships in ER diagrams? Explain them with
examples.
3. Describe the concept of Entity and Attributes in the ER model.
4. What is the importance of data independence in a DBMS?
5. What are the various types of Keys in the Relational Data Model? Explain with
examples.
● Describe the structure of a DBMS and the role of its major components. This is
often asked in different variations across years.
● Discuss the advantages of DBMS over traditional file processing systems: This
question is key for understanding the fundamental importance of DBMS.
● Define and discuss the concept of Data Independence, as it's central to DBMS
functioning.
● Explain the transformation from ER diagrams to relational tables: This has
appeared in various formats and is a critical skill in database design.
● Differentiate between Data Models: This question keeps reappearing in some form,
focusing on relational, object-oriented, and network data models.
● Discuss Entity-Relationship modeling concepts like Generalization, Specialization,
and Aggregation, as they are fundamental for database design and are frequently
tested.
Year 2024:
1. Explain the Relational Model in DBMS. Discuss its components and how relations are
represented.
2. What are the types of keys in the Relational Model? Explain Primary, Candidate, and
Foreign Keys with examples.
3. Write the relational algebra expressions for the following queries:
○ Find all employees who work in the 'Sales' department.
○ List all customers who have ordered more than 5 items.
4. Define and explain the concept of joins in relational algebra. Illustrate with an
example.
5. What are Relational Integrity Constraints? Discuss the role of Domain, Entity, and
Referential Integrity Constraints.
Year 2023:
Year 2022:
1. Explain the concept of functional dependency and its significance in the Relational
Model.
2. What is normalization? Explain the process of normalization and discuss the various
normal forms (1NF, 2NF, and 3NF).
3. Write relational algebra expressions for the following:
○ Retrieve the names of employees who have been assigned to a project and have
worked more than 30 hours.
4. Discuss the concept of referential integrity constraints and how they ensure
consistency in a database.
5. What are the advantages of using relational algebra? Provide an example.
Year 2021:
1. Explain the concept of a relation and its components in the relational model.
2. What are the different types of relational operations in relational algebra? Explain
each with an example.
3. Define and explain the difference between primary key, foreign key, and candidate
key in a relational database model.
4. Write relational algebra expressions for the following:
○ Find employees who have not worked on any project.
○ Retrieve the names of students who are enrolled in more than two courses.
5. What is the significance of normalization? Explain the difference between 1NF, 2NF,
and 3NF.
Year 2020:
1. What are the basic operations of relational algebra? Provide an example for each
operation.
2. Discuss the various types of keys used in relational databases and explain their
significance with examples.
3. Define functional dependency and discuss its role in relational database design.
4. Write relational algebra queries to implement the following:
○ Retrieve the names of students who have scored more than 90% in their final
exams.
○ Find the details of employees working in the 'Marketing' department.
5. Explain the concept of a relation schema and how it is used in the relational model.
● Explain the Relational Model and discuss its components: Relations, tuples, attributes,
and how relations are represented. This fundamental question appears frequently.
● Define and explain the types of keys (Primary, Candidate, and Foreign Keys), which is
tested in different years with various variations.
● Write relational algebra expressions for common database queries. This type of
question is consistently asked in different formats to test practical understanding.
● Discuss normalization and the various normal forms (1NF, 2NF, and 3NF):
Normalization is a key concept that has appeared regularly in different years.
● Explain the different relational operations (selection, projection, union, intersection,
difference, join) with examples. This is a key question in understanding relational
algebra.
● Discuss the role of functional dependencies in relational design. This is an essential
concept that has been tested repeatedly.
Year 2024:
Year 2023:
Year 2022:
Year 2021:
Year 2020:
● SQL queries for retrieving specific data: Questions asking to write SQL queries for
real-life scenarios (e.g., retrieving employee details, orders, and customers) appear
frequently across all years. These are the most practical and commonly tested.
● Joins in SQL (INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL OUTER JOIN): This
concept is tested regularly, with questions asking to explain and use these joins in SQL
queries.
● Subqueries: Subqueries have been consistently tested in various forms, including using
subqueries in SELECT, WHERE, and INSERT/UPDATE statements.
● Aggregate Functions: COUNT, AVG, SUM, MAX, and MIN are regularly asked in
relation to summarizing data.
● SQL Constraints (Primary Key, Foreign Key, Unique, Check, Default): Questions on
constraints are vital for database design and are frequently asked in different formats.
● Transaction Control (COMMIT, ROLLBACK, SAVEPOINT): Transaction control and
ACID properties are frequently tested for understanding how transactions work in SQL.
● Stored Procedures and Views: Questions on how to create and use views and stored
procedures in SQL appear with some regularity.
Year 2024:
1. Explain the concept of normalization. What are the different normal forms? Illustrate
with examples for 1NF, 2NF, and 3NF.
2. What is denormalization? When would you use it in a database design? Explain with
examples.
3. Write a SQL query to find the second highest salary from a table of employee
salaries.
4. Explain functional dependency and its role in normalization. How is it used in
different normal forms?
5. Discuss the concept of indexing in databases. What are the types of indexes and
how do they improve query performance?
Year 2023:
1. What are the different types of normal forms? Explain 1NF, 2NF, and 3NF with
examples.
2. What is the purpose of normalization? Discuss how normalization reduces
redundancy and improves data integrity.
3. Explain the differences between clustering index and non-clustering index.
Illustrate with examples.
4. What is BCNF? How does it differ from 3NF? Provide an example to explain.
5. How would you optimize a query for better performance? Discuss query optimization
techniques with examples.
Year 2022:
Year 2021:
1. Explain the different types of normal forms. Describe 1NF, 2NF, 3NF, and BCNF with
suitable examples.
2. What is functional dependency? How does it relate to normalization?
3. Discuss the concept of indexing in databases. What are the advantages of using
indexing, and when is it beneficial?
4. What is the role of a primary key in a relational database? How is it used in the
context of foreign keys and relationships?
5. Explain query optimization in relational databases. What are some common
techniques to optimize SQL queries for faster performance?
Year 2020:
1. Describe the normalization process and explain 1NF, 2NF, and 3NF with examples.
2. What are functional dependencies in relational databases? How do they affect
normalization?
3. What are candidate keys and primary keys? Explain their role in relational database
design.
4. Explain indexing in databases. Discuss the types of indexes and how they improve
performance in query execution.
5. What is the significance of BCNF? Explain how it addresses the shortcomings of 3NF
with an example.
● Normalization (1NF, 2NF, 3NF, BCNF): These topics are frequently tested, with
questions asking to explain normalization and its different forms (especially 1NF, 2NF,
3NF, and BCNF). Expect questions that ask for examples of normalization in database
design.
● Functional Dependency and Normalization: Questions regarding functional
dependency and how it plays a role in normalization are very common. Expect to see
questions requiring you to explain and apply functional dependencies.
● Indexing in Databases: This topic has appeared in almost every year’s paper.
Questions on types of indexes (clustering, non-clustering) and their advantages in query
optimization are essential.
● Primary Key, Candidate Key, and Foreign Key: Key concepts related to relational
database design and their differences (especially primary key vs. candidate key) are
tested often.
● Query Optimization: Questions on query optimization techniques, including indexing
and query rewriting, are regularly asked to check your understanding of improving
database performance.
● Denormalization: Denormalization is another important concept, with questions asking
when and why it is used in a database system.
Year 2024:
1. Explain the ACID properties of a transaction. How do these properties ensure the
reliability of database systems?
2. What is the significance of locking in concurrency control? Discuss different types
of locks in database management systems.
3. Explain the concept of deadlock in a database system. How can deadlocks be
prevented or handled?
4. What is a checkpoint in database recovery? How does it assist in the recovery
process after a crash?
5. Write a SQL query to demonstrate transaction control commands like COMMIT,
ROLLBACK, and SAVEPOINT.
Year 2023:
Year 2022:
1. What is the role of the transaction log in database recovery? How does it help in
ensuring database integrity?
2. Define the concept of isolation in the context of transactions. How do isolation
levels affect the outcome of transactions?
3. What is a schedule in database management? Explain the difference between serial
and non-serial schedules.
4. Discuss the impact of a failure during a transaction on the database system. How
does the system recover from such failures?
5. Explain the concept of atomicity in transactions. Provide an example where
atomicity ensures correctness.
Year 2021:
Year 2020:
1. What is the significance of the ACID properties in transactions? Explain how each
property is implemented in a DBMS.
2. What is concurrency control, and why is it necessary in databases? Explain with
examples.
3. Explain the Two-Phase Locking (2PL) protocol. How does it ensure serializability?
4. What are recovery techniques in databases? Explain different recovery mechanisms
with examples.
5. What is the role of the transaction manager in a DBMS? Explain its responsibilities in
ensuring transaction consistency.