QUESTION BANK - Dbms
QUESTION BANK - Dbms
QUESTION BANK
Unit 1:
Introduction
1) Define: Data, Database, DBMS, Data Redundancy.
2) Explain the purpose of the database system. (4 Marks)
3) Explain the purpose and application of DBMS. (5 Marks)
4) List the benefits of database approach. (2 Marks)
5) Describe various disadvantages of file system compared to Data base management system.
(7 Marks)
6) Discuss disadvantages of file processing systems and advantages of Database Management
Systems. (Diffferentiate it) (7 Marks)
7) Explain different database users. (3 Marks)
8) What are the responsibilities of a DBA? (4 Marks)
9) List the major functions performed by DBA. (2 Marks)
10) What is schema and instance explain with example. (4 Marks)
11) Explain three level architecture of database system. (3 Marks)
12) Explain three levels of data abstraction in DBMS. (4 Marks)
13) What is data independence? Explain the difference between physical and logical data
independence with example. (5 Marks)
14) Explain database system architecture with diagram in detail. (6 Marks)
15) Explain database system 3 tier architecture with diagram in detail. (7 Marks)
Entity-Relationship model
1) What is Entity-Relationship model? Explain the steps to reduce the ER diagram to ER
database schema.
2) What is mapping cardinalities? Explain it with real time examples.
3) Explain types of attribute with example
4) Explain Specialization feature of ER diagram with example.
5) Explain Generalization feature of E-R Diagram.
6) Explain aggregation operation of ER diagram.
7) Draw an ER diagram for exam system of INDUS UNIVERSITY.
PDBMS [CE/CSE/IT]
8) Construct E-R diagram for a hospital with a set of patients and medical doctors.
Associate with each patient a log of various tests and examinations conducted.
1. Construct E-R diagram of the bank. It provides different kinds of bank accounts. And
loans. It operates number of branches.
2. Draw E – R Diagram for the School Management System.
3. Give Symbol used in E-R Diagram and Draw the E-R diagram of Library Management
System.
4. Draw E-R diagram for supplier who supplies different parts. The parts are used in
different projects. Explain the mapping cardinality used. Assume suitable attributes.
5. Construct an E-R Diagram for an insurance company with a set of customers, each of
whom owns number of cars, also each can have number of recorded accident associated
with it.
6. What is constraint in database? Explain types of constraints with suitable example.
7. Draw symbols for following in E-R diagram:
a. Weak Entity set, Derived attribute, Multivalued
b. Relationship Set, and Primary key attribute
Unit 2:
Relational Model
1) Explain candidate key, primary key and foreign key. (3 Marks)
2) Explain following Term with suitable example (6 Marks)
a. Primary Key
b. Candidate Key
c. Super Key
d. On delete cascade
3) Explain following relational algebra operations:
a. Natural join operation (2 Marks)
b. Selection and projection operation (2 Marks)
4) List relational algebra operators and explain any two with example. (5 Marks)
5) What is Relational Algebra? Define Relational Algebra Operation cross product with
example. (3 Marks)
6) Explain selection and projection operation with example. (5 Marks)
7) What is database schema? Explain the select, project, natural join, union and Cartesian
product operations. (7 Marks)
PDBMS [CE/CSE/IT]
8) Consider following schema and represent given statements in relation algebra form.
Branch(branch_name,branch_city) (6 Marks)
Account(branch_name, acc_no, balance)
Depositor(Customer_name, acc_no)
(i) Find out list of customer who have account at ‘abc’ branch.
(ii) Find out all customer who have account in ‘Ahmedabad’ city and balance is
greater than 10,000.
(iii) Find out list of all branch name with their maximum balance.
9) Explain transformation of relational expression into equivalent relational expression.
(7 Marks)
21) Normalize (decompose) following relation into lower to higher normal form.
(From 1NF to 4NF). (Mar. 2010 – 8 Marks)
22) What is canonical cover? Consider following set F of functional dependencies on schema
R(A,B,C) and compute canonical cover for F. (6 Marks)
{ A BC, B C, A B, AB C }
23) Consider a relation R with five attributes A, B, C, D, E having following dependencies:
A B, BC E and ED A (7 Marks)
a. List all Keys for R
b. In which normal form table is, justify your answer.
24) Given relation R with attributes A, B, C, D, E, F and set of FDs as A BC, E CF, B E
and CDEF. Find out closure {A, B}+ of the set of attributes. (3 Marks)
25) Consider table R(A, B, C, D, E) with FDs as AB, BCE and EDA. The table is in
which normal form? Justify your answer. (7 Marks)
Unit 3:
Transaction Management
1) What is a transaction? Explain the ACID properties. (7 Marks)
2) What is a transaction? Explain its four important properties. (4 Marks)
3) Why concurrency control is needed? (3 Marks)
4) What is concurrency? What are the three problems due to concurrency? How the problems
can be avoided, explain for one of the three problems. (5 Marks)
5) Consider schedule S with transaction T1 and T2. T1 transfer Rs. 150 from account A to C
and T2 adds Rs. 50 into account A. Prepare concurrent schedule with two phase locking
protocol.
6) Explain briefly the meaning of serializability of transactions. (2 Marks)
7) Explain both the forms of serializability & relation between the two. (5 Marks)
8) Explain conflict serializability with example. (4 Marks)
9) Explain view serializability with example. (4 Marks)
10) What is deadlock? When it is occurs and how to avoid it? (7 Marks)
11) What is deadlock? Explain Wait-For-Graph. (2 Marks)
12) Explain deadlock detection mechanism. (4 Marks)
13) Explain various deadlock prevention methods. (4 Marks)
PDBMS [CE/CSE/IT]
Unit 4:
SQL Concepts
1) Define: (1)Primary key (2)Foreign key (3)Unique Key (4)Not null (5)Commit (6)Candidate
key (7)Rollback.
2) Define: (1)Weak entity (2)Data Dictionary (3)Substring( ) (4)Dual (5)Alter (6)Truncate
(7)Drop.
3) What is ON DELETE CASCADE in SQL? Explain clearly with example.
(4 Marks)
4) What is a join? Explain various types of joins with example.
(4 Marks)
5) Explain natural join operation with example. (3 Marks)
6) Explain DDL, DML, DCL with example. (4 Marks)
7) Write with example various built in string functions. (5 Marks)
8) Explain any two string functions in SQL. (2 Marks)
9) Explain any two aggregate functions of SQL. (2 Marks)
10) What is View? Give the advantages of View. (2 Marks)
11) Explain what is NULL? (2 Marks)
12) We have following relations:
Supplier ( S#, sname, status, city)
Parts ( P#, pname, color, weight, city)
SP ( S#, P#, quantity)
(a) Answer the following queries in SQL: (7 Marks)
(i) Find name of supplier for city = ‘Delhi’.
(ii) Find suppliers whose name start with ‘AB’
(iii) Find all suppliers whose status is 10, 20 or 30.
(iv) Find total number of city of all suppliers.
(v) Find s# of supplier who supplies ‘red’ part.
PDBMS [CE/CSE/IT]
PL/SQL Concepts
1) Explain the advantages of PL/SQL. (3 Marks)
2) Explain commit and rollback command. (5 Marks)
3) Write Note on Cursor and its types. (6 Marks)
4) Write short note on database triggers in PL/SQL. (5 Marks)