DBMS Q Bank
DBMS Q Bank
CO BL
SNO QUESTION
Draw an ER diagram for UNIVERSITY Database. Assume suitable attributes for each
a CO-1 BL-3
entity. Also specify primary key for each entity and structural constraints.
1
b Define Attribute in E-R model and explain all the structural constraints. CO-1 BL-2
a Define a schema. Explain the three schema architecture in detail. CO-1 BL-2
Draw the E-R diagram of typical banking system. Each customer does have unique
4 Account number, address, telephone number, type of account. A customer can
b have any one account in the bank. Bank is identified by Branch ID, Branch name, CO-1 BL-3
Address. Bank offers various types of loans. Customer can avail any number of
loans. All the transactions are identified by Trans ID, Time of trans.
a Justify “data abstraction is an implicit feature of DBMS”. CO-1 BL-2
5 What is the key role of an attribute? Identify the different types of attributes that
b CO-1 BL-2
occur in ER model.
List the various users of a Database Management System. What are the major
a CO-1 BL-2
functions of a Database Administrator (DBA).
6
Define the following terms with example:
b CO-1 BL-2
i. Weak Entity ii. Cardinality Ratio iii. Strong entity iv. Attributes
a Distinguish between database systems and file systems. CO-1 BL-3
7 Give reason, why ER model is used to create an initial design. List all and explain
b CO-1 BL-2
any three steps involved in Database design process.
Draw an ER diagram for University Database with at least three entity types and
a CO-1 BL-2
8 also specify relevant constraints.
b Discuss the concept of Aggregation with an example CO-1 BL-2
Explain three schema architecture, the Logical data independence and Physical
a CO-1 BL-2
9 data independence.
b Define entity, attribute and explain notations of ER diagram with an example. CO-1 BL-2
a Bring out the additional features of E-R model. CO-1 BL-2
10 Define relationship and relationship set. Explain key constraint and participation
b CO-1 BL-2
constraint with an example.
Exemplify a database management system application. List and explain the various
11 a CO-1 BL-2
disadvantages of using file system over database systems.
Construct an E-R diagram for an online flower store. The customer should be able
b to order flowers of his/her choice to a destination on a particular date. Make all CO-1 BL-2
the necessary assumptions.
a Define Database Administrator (DBA). Discuss the functions of DBA. CO-1 BL-2
Construct an E-R diagram for a COMPANY database with the following
requirements: The company is organized into DEPARTMENTs. Each department
has a unique name, unique number and an employee who manages the
department. We keep track of the start date of the department manager. The
12
department may have several locations. We store each EMPLOYEE’s social security
b CO-1 BL-3
number, address, salary, sex, and birth date. Each employee works for one
department. We also keep track of the direct supervisor of each employee. Each
employee may have a number of DEPENDENTs. For each dependent, we keep
track of their name, sex, birth date, and relationship to employee. Give each step
in the construction of E-R diagram.
Define the following terms with an example: entity, attribute, relationship set, key,
a CO-1 BL-2
aggregation.
13
List the various users of a Database Management System. What are the major
b CO-1 BL-2
functions of a Database Administrator (DBA).
Explain three schema architecture, the Logical data independence and Physical
a CO-1 BL-2
14 data independence.
b Define entity, attribute and explain notations of ER diagram with an example. CO-1 BL-2
A university database contains information about professors (identified by social
security number) and courses (identified by course-id). Professors teach courser;
each of the following situations concerns the Teaches relationship set. For each
situation, draw an ER diagram that describes it (assuming no further constraints
a hold). Professors can teach the same course in several semesters, and each CO-1 BL-3
15 offerings must be recorded. Professors can teach the same course in several
semesters, and only the most recent such offering needs to be recorded. (Assume
this condition applies in all subsequent questions). Every professor must teach
some course. Every professor teaches exactly one course (no more no less).
List and explain the various disadvantages of using file system over database
b CO-1 BL-2
systems
a Define Relational Algebra? List and explain different Join Operations. CO-1 BL-2
16
With an example explain the following relational algebra operators:
b CO-1 BL-2
i. Selection ii. Projection
a What is the need for normalization? Discuss all normal forms with a diagram and C0-3 BL-3
example.
Consider the following collection of relations and dependencies. Assume that each
relation is obtained through decomposition from a relation with attributes
ABCDEFGHI and that all the known dependencies over relation ABCDEFGHI are
listed for each question. (The questions are independent of each other, obviously,
since the given dependencies over ABCDEFGHI are different.) For each
(sub)relation: (a) State the strongest normal form that the relation is in. (b) If it is
a C0-3 BL-3
not in BCNF, decompose it into a
collection of BCNF relations:
7 i. R1(A,C,B,D,E), A → B, C → D
ii. R2(A,B,F), AC → E, B → F
iii. R3(A,D), D → G, G → H
iv. R4(D,C,H,G), A → I, I → A
v. R5(A,I,C,E)
What is the key of R .Consider the universal relation?
b R(A,B,C,D,E,F,G,H,I,J) and the set of functional dependencies. C0-3 BL-3
F=[{A,B}-> C,{A}-> {D,E}, {B} -> {F},{F}->{G,H} {D}-> {I ,J}]Decompose R into 2NF and
then 3NF RELATIONS?
a Illustrate redundancy and problem that it can cause with example. C0-3 BL-3
8
b Define Normal Form. Which normal form satisfies multivalued dependency? C0-3 BL-3
Explain it with an example.
a Give a set of FDs for the relation schema R(A,B,C,D) with primary key AB under C0-3 BL-3
Which R is in 2NF but not in 3NF?
9 i. Describe the properties of relational decomposition
b ii. Discuss the rules to satisfy the following normal forms: C0-3 BL-3
I. 5NF
a Describe the problems associated with decomposition. C0-3 BL-3
10
b Explain multi-valued dependency and Fourth Normal Form C0-3 BL-3
UNIT-4
SNO QUESTION CO BL
a List and Explain the important properties of transactions that DBMS must ensure to CO-4 BL-3
1 maintain data concurrency and system failures.
b Explain Strict Two-Phase Locking mechanism. CO-4 BL-2
Create precedence graph for the following schedule. Determine whether it is (conflict)
a serializable schedule or not. W1(A), R2(A), W1(B), W3(C), R2(C), R4(B), W2(D), W4(E), CO-4 BL-3
2 R5(D), W5(E).
Explain deadlock with an example. Discuss how deadlock prevention and detection
b CO-4 BL-2
can be achieved.
a Justify “Conflict serializability is equal to view serializability, but vise versa”. CO-4 BL-3
3
b Define Transaction. Draw the transaction states. CO-4 BL-2
a Explain the difference between deferred and immediate log files. CO-4 BL-2
4
b Explain ACID properties of transaction. CO-4 BL-2
a Describe Properties of a Transaction with state Transition diagram. CO-4 BL-2
5 Discuss the anomalies of interleaved execution of transaction in detail with an
b CO-4 BL-2
example.
a What is decomposition? State the properties of decomposition. CO-4 BL-2
6 Discuss Time-stamp ordering protocol for concurrency control. How does strict time
b CO-4 BL-3
stamp ordering differ from basic time stamp ordering.
a Describe Properties of a Transaction with state Transition diagram. CO-4 BL-2
7 Discuss the anomalies of interleaved execution of transaction in detail with an
b CO-4 BL-3
example.
a Write about Shadow paging. CO-4 BL-2
Consider a database with objects X and Y and assume that there are two transactions
T1 and T2. Transaction T1 reads objects X and Y and then writes object X. Transaction
T2 reads objects X and Y and then writes objects X and Y.
i. Give an example schedule with actions of transactions T1 and T 2 on objects X and Y
12
b that results in a write-read conflict CO-4 BL-3
ii. Give an example schedule with actions of transactions T1 and T 2 on objects X and Y
that results in a read-write conflict
iii. Give an example schedule with actions of transactions T1 and T2 on objects X and Y
that results in a write-write conflict
iv. For each of the three schedules, show that Strict 2PL disallows the schedule.
a Define deadlock? Discuss deadlock prevention. CO-4 BL-3
13
b Explain strict Two-Phase locking protocol for concurrency control. CO-4 BL-3
a Illustrate schedule. Explain conflict serializable schedule with an example. CO-4 BL-3
14 i. Describe ACID properties of a transaction
b CO-4 BL-3
ii. Write a short note on recovery system
UNIT-5
SNO QUESTION CO BL
a Explain the working of hashing in file organization. C0-5 BL-3
1
b Explain ARIES algorithm. C0-5 BL-3
a Write short notes on indexed sequential access method (ISAM). C0-5 BL-2
2
b State how indexing in done in database management systems. C0-5 BL-3
a State the advantages and disadvantages of storing data using the RAID method. C0-5 BL-3
3
b Write short notes on B+Trees. C0-5 BL-2
a Compare and contrast between ISAM and B+ trees. C0-5 BL-3
4
b Explain dynamic tree structure with an example. C0-5 BL-3
Which of the five organizations would you choose for a file where the most frequent
operations are as follows?
a i. Search for records based on a range of field values C0-5 BL-3
5 ii. Perform inserts and scans, where the order of records does not matter
iii. Search for a record based on a particular field value
b What is clustered index organization? Illustrate with examples, the importance of C0-5 BL-2
clustered index on a range query, search key and aggregate operations.
a What is the purpose of Database Recovery? C0-5 BL-2
6
b Explain about NoSQL C0-5 BL-3