0% found this document useful (0 votes)
8 views2 pages

DBMS Sample Questions and Concepts

The document contains a list of sample questions related to Database Management Systems (DBMS), covering various topics such as advantages of DBMS, normalization, ER models, transaction management, and data warehousing. It includes practical tasks like designing ER diagrams, normalizing databases, and writing SQL queries. Additionally, it addresses concepts like concurrency control, query optimization, and crash recovery in DBMS.

Uploaded by

sandip
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

DBMS Sample Questions and Concepts

The document contains a list of sample questions related to Database Management Systems (DBMS), covering various topics such as advantages of DBMS, normalization, ER models, transaction management, and data warehousing. It includes practical tasks like designing ER diagrams, normalizing databases, and writing SQL queries. Additionally, it addresses concepts like concurrency control, query optimization, and crash recovery in DBMS.

Uploaded by

sandip
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Sample questions on DBMS

1. What are the advantages of DBMS over conventional File System?


2. What do you mean by normalization of database? Normalize any relational database
up to 3NF and write differences between 3NF and BCNF
3. What are the different anomalies may arise if database is not in normalized form?
Normalize the following table upto 3NF.

4. What is ER model . Explain with proper example, how ER model can be used while
conceptual data modeling ?
5. Explain concept of key and integrity constrains in RDBMS.
6. A college library management system has different types of users, such as, students,
staff, and teachers. Each user-type has different book transaction privileges. Users can
only view the list of available books that is; users cannot have access to the any type
of data manipulation. The process of book transaction, the number of days, and the
fine-rate is all managed by the library administrator only.
I. For the system described above, draw the ERD
II. Design the normalized database for the library management system mentioned
above.
III. Determine the total data volume required for the system.

7. What are the characteristics of Distributed database systems? Explain the distributed
database system with proper example.
8. How Distributed Database system is different from parallel database systems.
9. Define concept of Data warehousing and data mining. Explain architecture of Data
warehouse.
10. Why transaction manager is required in DBMS? Explain ACID properties of DBMS.
11. Explain the concept of concurrency control in DBMS transaction. How two-phase
locking protocol (2PL) works? Explain with example.
12. Explain different states of Transaction in DBMS.
13. What is query optimization? Why this is so important? Explain query optimization
process with example.
14. Consider the following database schema :
Frequents(kid, store)
Sells(store, candy)
Likes(kid,candy)
Table frequents indicates what candy stores a kid likes to visit. Table Sells shows
which candy each store sells. Table Likes tells which candy a kid likes . Express the
following queries
a) Use SQL to list the stores (in alphabetical order) that sell more than 10
different candies
b) Use SQL to list the kids who liked candies as all sold by the sore
“Starbucks”
15. Write short note on DDL and DML in database
16. A university registar’s office maintains data about the following entities:
• Courses: including course number, title, credits, syllabus
• Courses-Offering : including course number, year, quarter, section number,
timing and class room
• Students: including id, name and program
• Instructor: including id, name, department and tile.
You have to well modal the following relations.
• Students enrolled in course-offerings and grade will be associated with each
enrolment .
• Instructor teach course-offerings.
• Courses are offered by courses-offerings.
• Some courses is prerequisite of other courses.
Construct an ER diagram for registar’s office document all assumptions that you
make about mapping constraints.
17. Why do we need crash recovery is DBMS? Explain with example.
18. Ministry of health and Population is willing to computerize its database. This new
system will be able to tell the population of the country, zone and district and even of
the ward of a specific place. The system will update is data in monthly basis so that
the birth rate and death rate can be easily be seen. Now as an computer engineer,
Design the efficient database schema for the proposed system with appropriate
normalization methods.
19. What is functional dependency ? explain with proper examples.
20. Write short note on :
a. Triggers in SQL
b. Function and procedures in PL-SQL
c. Schema Vs instances
d. Data models

Common questions

Powered by AI

An ER model helps in visualizing the structure of the database by defining entities, their attributes, and relationships between these entities. It makes complex data relationships easier to understand and manage. For example, an ER model for a library system might include entities like Book, Member, and Loan, with relationships such as Members ‘borrow’ Books .

Triggers in SQL are database objects that automatically execute or fire when certain events occur. They are often used for enforcing business rules, auditing changes, and maintaining integrity. Functions in PL-SQL return a single value and can be used in SQL statements, while procedures do not return values but are used to encapsulate a series of operations for modularity and reusability .

Normalization is the process of organizing data to minimize redundancy and improve data integrity. 3NF requires that a table be in Second Normal Form and all its attributes only depend on the primary key. BCNF is a stricter version that also prevents transitive dependencies where every determinant is a candidate key. BCNF can prevent certain types of anomalies that 3NF does not .

Query optimization is the process of choosing the most efficient means of executing a database query, considering various query execution plans. This is essential for improving performance as it can reduce query execution times and resource utilization. Query optimizers typically use statistical information about the data to select indexes, join methods, and data retrieval paths .

The Two-Phase Locking Protocol ensures serializability by dividing the transaction execution phase into a growing phase, where locks are acquired, and a shrinking phase, where they are released. No lock can be acquired after releasing any lock. For example, a transaction must acquire all necessary locks before it can function, and only upon releasing those locks can others access the locked data .

Distributed database systems are characterized by multiple database systems that are connected over a network, allowing resources to be accessed and managed in a coordinated manner. They provide transparency and replication but can have complexities with consistency and availability. Parallel database systems, however, are designed to use multiple processors concurrently to perform tasks more efficiently and are often optimized for high-performance computing on queries within a single database .

Crash recovery in a DBMS is vital for maintaining data consistency and durability after system failures. For example, if a power failure occurs during a transaction, recovery mechanisms such as write-ahead logging will ensure that the effects of the transaction can be either fully restored or rolled back, keeping the database in a consistent state .

Functional dependencies are key to database normalization as they help identify redundant data and establish relationships between data attributes. For instance, if an attribute A functionally determines attribute B (denoted as A -> B), then A can be used to uniquely determine B. This allows decomposing tables to reduce redundancy without losing data integrity, such as splitting a student table into separate tables for student details and course enrollment .

A transaction manager is crucial for coordinating database operations to ensure that they are executed reliably and efficiently. The ACID properties enforce this: Atomicity guarantees that transactions are fully completed or not at all, Consistency ensures transactions bring the database from one valid state to another, Isolation ensures transactions do not interfere with each other, and Durability ensures that once a transaction has been committed, it remains in the system even in the event of a crash .

DBMS offers several advantages over traditional file systems, including improved data security, data integrity, concurrent access, data abstraction and independence, and improved data sharing. Unlike file systems, DBMS provides a systematic and efficient method for storing, retrieving, and managing data. It also enforces data integrity constraints and provides robust backup and recovery options .

You might also like