0% found this document useful (0 votes)
132 views4 pages

DBMS - Qb-Upd

This document contains the question bank for the Database Management Systems subject with code 21CS1401 from Panimalar Engineering College. It includes questions divided into various units related to database fundamentals, relational databases, database design, transaction management, and implementation techniques and non-relational models. The questions range from short answer to long descriptive questions to test students' understanding of core database concepts as well as their ability to apply these concepts to solve problems and develop database schemas and queries.

Uploaded by

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

DBMS - Qb-Upd

This document contains the question bank for the Database Management Systems subject with code 21CS1401 from Panimalar Engineering College. It includes questions divided into various units related to database fundamentals, relational databases, database design, transaction management, and implementation techniques and non-relational models. The questions range from short answer to long descriptive questions to test students' understanding of core database concepts as well as their ability to apply these concepts to solve problems and develop database schemas and queries.

Uploaded by

Pavithrapavi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Panimalar Engineering College- Question Bank <21CS1401> - <Database Management Systems>

QUESTION BANK
Name of the Department :COMPUTER SCIENCE AND ENGINEERING
Name of the Subject: DATABASE MANAGEMENT SYSTEMS
Subject Code:21CS1401
Semester: IV
Regulation : 2021

Unit I - Database Fundamentals


PART-A (2 Marks)
S.No. Question
1. What is Database?
2. List the three levels of data abstraction?
3. What is the Purpose of Database system?
4. Differentiate Instance and Schema.
5. What is Data model?
Part – B (13/ 16 marks)
S.No. Question
1. Explain Basic architecture of DBMS with its neat block diagram.
2. Write short notes on
(i) Purpose of Database systems(5)
(ii) History of Database (4)
(iii) Applications of database systems(4)
3. Explain an E-R diagram for a banking database with almost all
components.
4. Illustrate with an example, Conceptual design with ER and
Extended E-R Diagram and its notations.

Unit II - Relational Database


PART-A (2 Marks)
S.No. Question
1. What is SQL?
2. Define Dynamic SQL and Static SQL.
3. What are aggregate Functions? List the aggregate functions used in
SQL.
4. Give SQL query to get the department and department wise total (sum)
salary, display it in ascending order according to salary.
5. Mention the use of primary key and foreign key. Give example for
each.

Page 1 of 4
Panimalar Engineering College- Question Bank <21CS1401> - <Database Management Systems>

Part – B (13 / 16 marks)


S.No. Question
1. Give syntax and explain DDL, DML, DCL commands for the
given student’s database which contains student details: name,
id, DOB, branch, DOJ, and course details: Coursename, Course
id, Stud Id, Faculty name, id, marks.
2. Consider the following relational schema:
a.Book(bookid,title,publisher_name)
b.Book_author(bookid,author_name)
c.Book_copies(bookid,branched,No_of_copies).Write the
following queries inSQL.
i. Retrieve the author name of book having
title ‘Operating System’.
ii. Retrieve the total number of titles of each
publisher.
iii. Retrieve the total number of titles.
iv. Retrieve title,
publishername&authorname of the
bookid ‘B101’.
Retrieve the number of copies with bookid=’B101’ and
branched=’BR001’
3. Develop queries and show how a SQL relation can be defined using
various constraints and types of keys? Also, Explain different data
definition Language statements in detail.
4. Perform the following clauses of SQL with example queries.
i. FROM clause
ii. GROUP BY clause
iii. HAVING clause
iv. ORDER BY clause.

Unit III - Database Design


PART-A (2 Marks)
S.No. Question
1. Define Functional Dependency.
2. List the Properties of Decomposition.
3. State Anomalies in NF.
4. Why 4NF in normal form is more desirable than BCNF?
5. Suppose you are given a relation Student(Stud_no,
Stud_Name,Stud_phone, Stud_State, Stud_Country, Stud_Age). Find
all Functional Dependencies.
Part – B (13 / 16 marks)
S.No. Question
1. Explain the concept of functional dependencies and its types with example.
2. State the need for Normalization .Construct 1NF,2NF,3NF , BCNF , 4NF and 5NF
with example
3. List the Properties of Decomposition. Distinguish between lossless decomposition and
dependency preserving decomposition with example.
4. i)Consider the given relation R(A,B,C,D) and functional dependency
FD= (ABC, CB CD) .Determines the keys, key of prime or non- prime
attributes.
ii) Compute the Closure of the following set F of functional dependencies for relation
R={A,B,C,G,H,I}F={A->B, A->C, CG->H,CG->I,B->H}

Page 2 of 4
Panimalar Engineering College- Question Bank <21CS1401> - <Database Management Systems>

Unit IV - Transaction Management


PART-A (2 Marks)
S.No. Question
1. Write the ACID Properties of Transaction.
2. What is deferred-modification and immediate-modification
technique?
3. Consider the following transaction T consisting of T1 and T2: Transfer of 100
from account X to account Y.
Before:X:500 Y:200
Transaction T
T1 T2
Read (X) Read(Y)
S:=x-100 Y:=Y+100
Write(X) Write(Y)
After:X:400 Y:300
If the transaction fails after completion of T1 but before completion of T2. (say,
after write(X) but before write(Y)), then amount has been deducted from X but
not added to Y. Which ACID property must be used to avoid inconsistency?
4. What are the operations in schedule are said to be conflict?
5. Define Strict And Rigorous Two Phase Locking Protocol.

Part – B (13 / 16 marks)


S.No. Question
1. Why Concurrency control is needed?State and Explain Three Concurrency
Problems.
2. State and explain lock based concurrency control and two phase
locking with suitable example.
3. Explain testing for Serializability with respect to concurrency control
scheme. How will you determine whether the schedule is serializable or
not?
4. How recovery of transaction takes place in the database.
Explain any two recovery techniques in detail.

Unit V - Implementation Techniques and Non-relational Model


PART-A (2 Marks)
S.No. Question
1. Differentiate between Sparse and Dense Index.
2. What is NoSQL database?
3. Why heuristics in query optimization is used?
4. Differentiate between MongoDB and RDBMS.
5. What are the advantages of B tree over B+ tree?
Part – B (13 / 16 marks)
S.No. Question
1. What is RAID? List and Explain Various RAID levels and features in
detail.
2. Explain static hashing and dynamic hashing  and its relative merits
with example.
3. How records are represented in a file and  how to organize them in a file?

Page 3 of 4
Panimalar Engineering College- Question Bank <21CS1401> - <Database Management Systems>

4. Why to use MongoDB? Give the key components of MongoDB


architecture .

Part – C (15 marks)


S.No. Question
1. Draw ER Diagram for “ Restaurant menu ordering system”, which will
facilitate the food items ordering and services within restaurant. The
entire scenario is detailed below. The customer is able to view the
food items menu, call the waiter, place orders and obtain final bill
through the computer kept in their table. The waiters through their
wireless tablet PC are able to initialize a table for customers , control
the table functions to assist customers , orders, send orders to food
preparation staff(chef) and finalize the customers bill. The chef with
their touch display interface to the system, are able to view orders
sent to the kitchen by waiters. During preparation they are able to let
the waiter know the status of each item , and can send notifications
when items are completed. The system should have full
accountability and logging facilities and should support supervisor
actions to account for exceptional circumstances such as meal being
refunded or walked out on.
2. Create Tables as follows by choosing appropriate data type and
set the necessary primary and foreign key constraints:
Customer (Custid, Custname, Addr, phno,panno)
Loan (Loanid, Amount, Interest,Custid)Account (Accd, Accbal,
Custid). Evaluate the Following queries.
a. Add a column CUSDOB in customer table.
b. Select the customers whose name ends with ‘SINGH’ and
order by custid
c. Display the customeridsand sum of his account balances
d. Display the accounts of customerids ‘C01’,’C02’,’C03’
e. Display the Custname having both Loan and Account
f. Display the Custname doesn’t hold any Account nor taken any
Loan
3. Outline query processing and Optimization with heuristics and cost
estimation with example.

4. Construct  a B+ tree  for the following set of key values:


(2,3,5,7,11,17,19,23,29,31)
Assume that the tree  is initially  empty and values are added  in
ascending  order.
Construct B +trees  for the cases  where  the number of pointers
that will fit  in one node is as follows.
a) Four
b) Six
c) Eight
5. Define Normalization. Explain the Different levels of Normal forms for
the relation given below.
Project_employee(ProjNum,ProjName,Empid,Empname,Designation
,Hourly charges,Totalno.of hours worked,Total charges)

Page 4 of 4

You might also like