0% found this document useful (0 votes)
91 views9 pages

Dbms Question Bank

This document contains an assignment for a Database Management Systems course. It includes 17 questions related to concepts like DBMS, data dictionary, DBA roles, file processing systems vs database systems, data types, ER modeling, and SQL. The questions range from short answers to explanations and examples regarding database architecture, normalization, SQL statements, joins, constraints, views and other relational database topics. Students are asked to define terms, explain concepts, write SQL queries, and draw ER diagrams to demonstrate their understanding of fundamental database principles.

Uploaded by

Chizuru Singh
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)
91 views9 pages

Dbms Question Bank

This document contains an assignment for a Database Management Systems course. It includes 17 questions related to concepts like DBMS, data dictionary, DBA roles, file processing systems vs database systems, data types, ER modeling, and SQL. The questions range from short answers to explanations and examples regarding database architecture, normalization, SQL statements, joins, constraints, views and other relational database topics. Students are asked to define terms, explain concepts, write SQL queries, and draw ER diagrams to demonstrate their understanding of fundamental database principles.

Uploaded by

Chizuru Singh
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/ 9

Bhagwan Mahavir University

Bhagwan Arihant Institute of Technology


VIP Road, Bharthana – Vesu, Surat – 395007

Subject Name: - Database Management System


Assignment-1
Unit:- 1-Introduction

Q: 1 Answer the following questions.


1. Define: DBMS and data dictionary.
2. What is main role of DBA?
3. What is data dictionary?
4. Write any one difference between traditional file processing system and database
system.
5. List out purpose of DBMS.
6. Who is DBA?
7. List out characteristics of DBMS
8 Define: 1. Data 2. Entity 3. Meta data 4. Data warehouse
5. Data field 6. Records 7. file
Q: 2 Explain tasks of DBA (Database administrator). [3]
OR
Q: 2 What are main function/role of DBA? [4]
Q: 3 Explain disadvantage of conventional file based system compared to database management
system. [7]
Q: 4 Draw and explain three layer architecture of DBMS. [7/4]
OR
Q: 4 Draw and explain three levels of data abstraction.[7/4]
Q: 5 Describe significant difference between a file processing system and DBMS. [4]
Q: 6 Briefly explain application of DBMS. [3]
Q: 7 Explain database management system architecture with proper diagram. [7]
Q: 8 How DBMS is better than file management system. [4]
OR
Q: 8 Write and explain advantages of DBMS. [4]
Q: 9 Explain different types of database users. [3]
Q: 10 Write advantage of conventional file based system. [3]
Q: 11 Explain data independence. [4]
Q: 12 Explain difference between physical and logical data independence. [4]
Q: 13 Explain Instance and Schema in detail. [3]
Q: 14 Explain Centralized and client server database system architecture in detail. [4]
Bhagwan Mahavir University
Bhagwan Arihant Institute of Technology
VIP Road, Bharthana – Vesu, Surat – 395007

Assignment-2
Unit:- 2-Relational Model & BASIC SQL

Q: 1 Answer the following questions in short.


1 Define: 1. Domain 2. Attribute 3. Relationship 4. Cardinality
5. Degree 6. Tuple 7. Dual
2. ____________ SQL command is used to change or modify data values in the table.
3. State True or False: A table cannot contain multiple primary keys.
4. The _________ function converts a value of DATE data type to CHAR date value.
5. State True or False: SELECT DISTINCT statement is used to return only distinct values.
6. New column can be added to the existing table using ___________ SQL command.
7. _______________________________ is a full form of SQL.
8. The ____________ operator is used to select values within a range.
9. Define: 1. Prinary Key 2. Super Key 3. Foreign Key 4. Candidate Key
10. DDL stands for __________________________________.
11. TO_CHAR function is used
A. To convert any character literal to character datatype
B. To convert ascii to character datatype
C. To convert date and number datatype to character datatype
D. Both (A) and (B)
12. Which of the following aspects of data is the concern of a relational database model?
A. data manipulation B. data integrity
C. data structure D. all of these
13. Define Constraint. List out constraints.
14. Define NOT NULL constraint.
15. Which command is used to change the name of table?
16. Write functionality of DESC command in SQL.
Q: 2 Answer the following questions in Detail.
1. List and explain DML statement with syntax and suitable examples. [04]
2. Describe the differences in meaning between the terms relation and relation schema. [03]
3. List & explain following operators with syntax and example. [07]
1. Relational 2. Range searching 3. Set searching
4. List and explain aggregation (aggregate) function with syntax and suitable examples. [04/07]
5. Define and explain following constraint with syntax and suitable example. [07]
A) Primary key B) Referential integrity constraint
C) Not null constraint D) Check constraint
OR
What do you mean by integrity constraints? Discuss various integrity constraints. [7]
6. List reasons why null values might be introduced into the database. [03]
7. Explain order by, group by and having clause with syntax and example. [04]
8. Explain DDL statements with syntax and example. [04]
Bhagwan Mahavir University
Bhagwan Arihant Institute of Technology
VIP Road, Bharthana – Vesu, Surat – 395007

9. Write query for the following: - [04]


1. To create a table from a table.
2. To eliminate duplicate rows.
3. To add new column in the table.
4. To sort data in table (both ascending & descending).
10. Write a query for following statement. - [07]
Table Name: Employee (Empno, Ename, Salary, Designation)
1. Add new column department in Employee table.
2. Change Designation of geeta from „Manager‟ to „Senior Manager‟.
3. Find total salary of all employees.
4. Display Empno, Empname and department.
5. Display Empno, Empname of those employees whose salary is between 25000 and
30000.
6. Give the name of employee whose name start with „D‟.
7. Delete employee detail whose salary is less than 25000.
11. Write a query for following statement. [05]
Table Name: Student (En_no, Name, Age, City, Branch_code)
1. Retrieve student‟s details whose branch code is 5.
2. Find an average age of all students.
3. Display En_no, Name and Age of students whose city is „chennai‟.
4. Change the age of students to 20 where En_no is 1.
5. Retrieve branch information in descending order.

Note: For SQL queries and Relational queries refer old GTU question papers as well as
queries teach (covered) in class.
Bhagwan Mahavir University
Bhagwan Arihant Institute of Technology
VIP Road, Bharthana – Vesu, Surat – 395007

Assignment-3
Unit:- 3-Entity Relationship Model & SQL

Q: 1 Answer the following questions in short.


1. Define: E-R diagram.
2. Define: Entity set and attribute in E-R diagram.
3. Define: Domain, Tuple, Cardinality, Degree
4. Define Primary key, Candidate key, Super key, foreign key.
5. The number of the truple in relation is known as
a. Degree b. Relation
c. Attribute d. Cardinality
6. _____ is an attribute or set of attribute that uniquely identifies a tuple within relation.
7. Relational database consist of collection of ______.
8. _______ are made of more than one simple attributes.
9. List various mapping cardinalities of E-R diagram.
Q: 2. Answer the following in brief.
1. Differentiate strong entity set and weak entity set. Demonstrate the concept of both using
real-time example using E-R diagram.[07]
2. Explain specialization and generalization concepts in ER diagram with suitable example.
[7]
3. Explain mapping cardinality in E-R diagram. [04]
4. Explain ER diagram in brief and draw the appropriate notation/symbol use in it. [7]
5. Draw E-R diagram for bank management system. Assume relevant entities and attributes
for the given system. [07]
6. Draw an E-R diagram for library management system. Assume relevant entities and
attributes for given system. [07]
7. Draw ER diagram for university database consisting four entities Student, Department,
Class and Faculty. Student has a unique id, the student can enroll for multiple classes and
has a most one major. Faculty must belong to department and faculty can teach multiple
classes. Each class is taught by only faculty. Every student will get grade for the class
he/she has enrolled.
8. Construct an E-R diagram for a car insurance company whose customers own one or more
cars each. Each car has associated with it zero to any number of recorded accidents. Each
insurance policy covers one or more cars, and has one or more premium payments
associated with it. Each payment is for a particular period of time and has an associated
due date and the date when the payment was received.. [7]
9. Design a generalization–specialization hierarchy for a motor-vehicle sales company. The
company sells motorcycles, passenger cars, vans, and buses. Justify your placement of
attributes at each level of the hierarchy. Explain why they should not be placed at a higher
or lower level.
10. Define E-R Diagram. Draw an E-R Diagram for Hospital Billing System. [07]

11. Define view. What are the types of view? Write syntax to create view of each syntax to create
view of each type. Give an example of view. [3]
Bhagwan Mahavir University
Bhagwan Arihant Institute of Technology
VIP Road, Bharthana – Vesu, Surat – 395007

12. Describe GRANT and REVOKE (DCL)commands with suitable. [3/4].


13. Explain different types of outer join with examples. [07/03]
14. What is join? List and explain various types of joins. [7]
15. Write differences between grant and revoke commands with suitable example. [4]
16. Compare rollback with commit SQL commands. [4]
17. Explain the TCL commands with examples. (Commit and Rollback) [4]

Note: For E-R diagram, SQL queries and Relational queries refer old GTU question papers
as well as queries teach (covered) in class.
Bhagwan Mahavir University
Bhagwan Arihant Institute of Technology
VIP Road, Bharthana – Vesu, Surat – 395007

Assignment-4
Unit:- 4 – Schema Refinement (Normalization)

Q: 1 Answer the following questions in short.


1. Give an example of relation schema R and a set of dependencies such that R is in BCNF
but not in 4NF.
2. List out any three properties of MVD(Multi Value Dependencies).
3. State true or false. Any relation that satisfy BCNF also satisfy 3NF.
4. Write characteristic of Normalization.
5. Define: Join Dependency and Multi-Value Dependency(MVD).
6. Define: Surrogate key
7. Define Canonical cover and write its algorithm.

Q: 2. Answer the following in brief.


1. Define Normalization. Explain any two Normal forms with suitable example.(1NF and
2NF) [04]
2. Consider schema R=(A,B ,C ,G ,H, I) and setF of functional dependencies.
{A → B, A → C, CG → H, CG → I, B → H} use F+
Prove that AG → I hold. [03]
3. Consider schema employee {E_ID, E_NAME, E_CITY, E_STATE} and
FD= {E_ID → E_NAME, E_ID → E_CITY, E_ID → E_STATE, E_CITY →
E_STATE}
1) Find Attribute Closure For (E_ID)+
2) Find (E_name)+ [04]
4. What‟s Normalization? Normalize below given relation upto 3NF. [07]
Stu_ID Stu_name City PinCode Project_ID Project_Name Course Content

S101 Ajay Surat 326201 P101 Health Programi C++


ng Java, C

S102 Vijay Pune 325456 P102 Social Web HTML


PHP,
ASP
5. Complete the closure of following set F of functional Dependencies for relation schema
(A,B,C,D,E) A → BC, CD→ E, B → D, E → A.
List the candidate key for R. [07]

6. Define Normalization. Write need of Normalization. List out various Normal forms.
Explain 3NF and BCNF with suitable examples. [07]
7. Explain 4NF and 5NF with suitable examples. [07]
Bhagwan Mahavir University
Bhagwan Arihant Institute of Technology
VIP Road, Bharthana – Vesu, Surat – 395007

8. Given relation R with attributes A,B,C,D,E,F and set of FD as


A → BC, E → CF, B → E, CD → EF.
Find out closure {A, B}+ of the set of attributes. [03]
9. Given R =(A,B,C,G,H,I) the following set F of functional dependencies holds
A → B, A → C, CG → H, CG → I, B → H.
Compute AG+. Is AG candidate key. [03]
10. Prove the statement “ Every relation which is in BCNF is in 3NF but reverse is
not true ”. [04]
11. What is Functional Dependency? Explain all the type of Functional Dependency
in detail with example. [07]
12. What are Multi-Valued Dependencies? Explain with suitable examples. [07]
13. What problem can occur due to wrong(poor) database design? How they
can be solved?(Explain Various anomalies & solution) [04]
14. What is decomposition? Explain various types of decomposition with suitable example.
[04]
Bhagwan Mahavir University
Bhagwan Arihant Institute of Technology
VIP Road, Bharthana – Vesu, Surat – 395007

Unit-5: Transaction Concept:


Q: 1 Short questions:-

1) Define: Transaction and locking.


2) Define: Failure.
3) Define each types of locking.
4) What is serializability? What is its objective?
5) Define wait-die and round-wait.
6) What do you mean by concurrent execution of transaction?
Q:2 Answer the following questions in brief.
1) Explain two phase commit protocol. [03/04]
2) Write difference between shared lock and exclusive lock. [03]
3) Define transaction. Explain various states of transaction with suitable diagram.[04]
4) Explain two phase locking protocol and its types. [04/07]
5) What is log based recovery? Explain immediate database modification technique for
database recovery with suitable example. [04/07]
OR

Explain log based recovery. [07]

6) List and explain ACID properties of transaction with examples. [04/07]


7) Explain conflict serializability and view serializability. [07]
8) What is deadlock? Explain round wait techniques for prevention of deadlock.[03]
9) Explain deadlock using wait for graph also explain necessary conditions for deadlock and
method for handling it. [03]
OR

Explain deadlock with suitable example. [04]

10) Explain timestamp based protocol in detail. [07]


11) Explain role of checkpoint in logbase. [04]
12) Explain three concurrency problem. How does the strict two phase locking protocol solve
three problem of concurrency? Explain with example. [07]
13) Write difference between conflict serializability and view serializability. [04]
14) Explain dirty read problem. [03]
15) Explain various types of lock used in lock based protocol for concurrency control. [07/03]
Bhagwan Mahavir University
Bhagwan Arihant Institute of Technology
VIP Road, Bharthana – Vesu, Surat – 395007

Unit-5 Indexing Techniques:

1. Explain indexing with suitable example. [5]

2. What is use of an index structure and explain the concept of ordered indices. [5]

3. What is hashing? Explain static and dynamic hashing with an example. [7]
OR
4. Explain various hashing techniques. [7]

5 Write a difference between static and dynamic hashing. [4]

6 Write a difference between B tree and B +tree. [4]

Note: For B Tree and B + Tree examples refer Technical book example.

You might also like