0% found this document useful (0 votes)
22 views3 pages

DBMS Viva Questions With Answers

The document provides a comprehensive list of DBMS (Database Management System) viva questions and answers, covering fundamental concepts such as the definition of DBMS, differences between DBMS and RDBMS, types of keys, normalization, SQL, transactions, and integrity constraints. It also explains various database operations like joins, indexing, triggers, and stored procedures. Overall, it serves as a study guide for understanding key DBMS concepts and their applications.

Uploaded by

Siya Bhatia
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)
22 views3 pages

DBMS Viva Questions With Answers

The document provides a comprehensive list of DBMS (Database Management System) viva questions and answers, covering fundamental concepts such as the definition of DBMS, differences between DBMS and RDBMS, types of keys, normalization, SQL, transactions, and integrity constraints. It also explains various database operations like joins, indexing, triggers, and stored procedures. Overall, it serves as a study guide for understanding key DBMS concepts and their applications.

Uploaded by

Siya Bhatia
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
You are on page 1/ 3

DBMS Viva Questions with Answers

Q: What is DBMS?

A: DBMS (Database Management System) is software that manages databases. It provides an

interface for users and applications to interact with databases to store, modify, and retrieve data

efficiently.

Q: What is the difference between DBMS and RDBMS?

A: DBMS is a general database management system, while RDBMS (Relational DBMS) stores data

in a tabular form using rows and columns and enforces relationships between data using keys.

Q: What are the different types of keys in DBMS?

A: Primary key, Foreign key, Candidate key, Super key, and Composite key.

Q: Explain primary key and foreign key.

A: A primary key uniquely identifies each record in a table. A foreign key is a field that links to the

primary key in another table.

Q: What is normalization? Explain its types.

A: Normalization is the process of organizing data to reduce redundancy. Types include 1NF, 2NF,

3NF, BCNF, and 4NF.

Q: What are anomalies in DBMS?

A: Anomalies are problems like insertion, update, and deletion anomalies caused by poor database

design.

Q: What is a relational model?

A: A relational model organizes data into tables (relations) of rows and columns.

Q: What is SQL? Name its sub-languages.

A: SQL (Structured Query Language) is used to manage and manipulate relational databases.

Sub-languages: DDL, DML, DCL, and TCL.


Q: What is the difference between DDL and DML?

A: DDL (Data Definition Language) defines structure, e.g., CREATE, ALTER. DML (Data

Manipulation Language) deals with data, e.g., SELECT, INSERT.

Q: What is a join? Explain different types of joins.

A: Join is used to combine rows from two or more tables. Types: INNER JOIN, LEFT JOIN, RIGHT

JOIN, FULL JOIN.

Q: What is a view in DBMS?

A: A view is a virtual table based on the result set of a SQL query.

Q: What is indexing?

A: Indexing improves the speed of data retrieval operations on a database table.

Q: What are transactions? Explain ACID properties.

A: A transaction is a unit of work. ACID: Atomicity, Consistency, Isolation, Durability.

Q: What is a deadlock? How can it be avoided?

A: Deadlock is a situation where transactions wait for each other indefinitely. It can be avoided using

timeout, wait-die, wound-wait schemes.

Q: What are integrity constraints?

A: Rules enforced on data to maintain accuracy and integrity, e.g., NOT NULL, UNIQUE, PRIMARY

KEY.

Q: Explain the difference between clustered and non-clustered index.

A: Clustered index determines the order of data in a table. Non-clustered index is stored separately

from table data.

Q: What is a trigger?

A: A trigger is a procedure that automatically executes in response to certain events on a table or

view.

Q: What is a stored procedure?


A: A stored procedure is a precompiled collection of SQL statements stored in the database.

Q: What is the difference between DELETE and TRUNCATE?

A: DELETE removes specific rows and can be rolled back. TRUNCATE removes all rows and

cannot be rolled back.

Q: Explain ER diagram and its components.

A: An ER diagram represents entities and their relationships. Components: Entities, Attributes,

Relationships.

You might also like