You are on page 1of 16

S. S.

Agrawal Institute of Engineering & Technology, Navsari


Computer Engineering Department

GTU Previous Exam Asked


Questions
(Last 8 Years Papers)

Subject Name: Database Management Systems-3130703


S. S. AGRAWAL INSTITUTE OF ENGINEERING & TECHNOLOGY, NAVSARI
3RD SEM /2ND YEAR COMPUTER ENGG. DEPARTMENT
Database Management Systems-3130703
GTU PREVIOUS EXAM ASKED QUESTIONS
(LAST EIGHT PAPERS)

Unit-1 Database system architecture


No.of
Sr.
Question times Marks Exam
No.
Asked

Enlist and explain the advantages of DBMS over traditional file system. 7 Winter-19

Explain disadvantages of file processing systems compare to Database management


4 Summer-19
system.

1 Explain advantage of database management system over a file oriented system. 5 7 Winter-18

Explain disadvantages of conventional file-based system compared to Database


7 Summer-18
management system.
Define DBMS. Describe significant differences between a file-processing system and
4 Winter-17
a DBMS.

Explain three level architecture of DBMS. 7 Winter-18


2 2
Explain three level architecture of DBMS. 7 Summer-18

Explain tasks of DBA. 4 Summer-18

What are main functions of a Database Administrator? 4 Winter-17


3 4
What are the main functions of a database administrator? 3 Summer-20

Describe tasks performed by the DatabaseAdministrator. 4 Winter-20

4 Explain types of database users. 1 4 Winter-18

5 Define DDL, DML and DCL. 1 3 Winter-18

Explain Instance and Schema in detail. 3 Winter-19


6 2
Define following terms.
3 Winter-20
1) Schema 2) Database Management System 3) Physical Data Independence

7 List and explain DML statements with suitable example. 1 3 Summer-18

8 Explain the difference between physical and logical data independence. 1 4 Summer-20

9 Explain DBMS System Architecture 1 4 Summer-20


S. S. AGRAWAL INSTITUTE OF ENGINEERING & TECHNOLOGY, NAVSARI
3RD SEM /2ND YEAR COMPUTER ENGG. DEPARTMENT
Database Management Systems-3130703
GTU PREVIOUS EXAM ASKED QUESTIONS
(LAST EIGHT PAPERS)

Unit-2 Data models


No.of
Sr.
Question times Marks Exam
No.
Asked
Explain specialization and generalization concepts in ER diagram with suitable
7 Winter-19
example.
Explain specialization and generalization concepts in ER diagram with suitable
7 Winter-18
example.
Explain specialization and generalization concepts in ER diagram with suitable
1 4 7 Summer-18
example.
Design a generalization–specialization hierarchy for a motor-vehicle sales company.
The company sells motorcycles, passenger cars, vans, and buses. Justify your
7 Winter-17
placement of attributes at each level of the hierarchy. Explain why they should not
be placed at a higher or lower level.
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 1 7 Winter-19
premium payments associated with it. Each payment is for a particular period of
2
time and has an associated due date and the date when the payment was received.
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 1 7 Winter-17
accidents.
Explain difference between strong entity set and weak entity set. 4 Winter-18

3 Explain the difference between a weak and a strong entity set. 3 3 Winter-17
Differentiate strong entity set and weak entity set. Demonstrate the concept of both
7 Winter-20
using real-time example using E-R diagram.

4 What do you mean by integrity constraints? Discuss various integrity constraints. 1 3 Winter-19

Explain various mapping cardinalities. 3 Winter-19


5 2
List and explain mapping cardinalities of E-R diagram with example. 4 Summer-21
Design a database for an airline. The database must keep track of customers and
their reservations, flights and their status, seat assignments on individual flights,
6 and the schedule and routing of future flights. Your design should include an E-R 1 7 Summer-19
diagram, a set of relational schemas, and a list of constraints, including primary-key
and foreign-key constraints.
Design a database for a hospital with a set of patients and a set of medical doctors.
Associate with each patient a log of the various tests and examinations conducted
7 1 7 Summer-19
Your design should include an E-R diagram, a set of relational schemas, and a list of
constraints, including primary-key and foreign-key constraints.
Define E-R diagram. Draw an E-R diagram for Library Management System. Assume
8 1 7 Winter-18
relevant entities and attributes for the given system.
9 Draw E-R diagram for bank management system. 1 7 Summer-18
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
10 1 7 Summer-20
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.

11 Draw E-R diagram for student management system with the necessary assumption. 1 7 Summer-21
S. S. AGRAWAL INSTITUTE OF ENGINEERING & TECHNOLOGY, NAVSARI
3RD SEM /2ND YEAR COMPUTER ENGG. DEPARTMENT
Database Management Systems-3130703
GTU PREVIOUS EXAM ASKED QUESTIONS
(LAST EIGHT PAPERS)

Unit-3 Relational query languages


No.of
Sr.
Question times Marks Exam
No.
Asked
List the relational algebra operators. Discuss any two such algebra operator with
1 4 Winter-19
suitable example.
Explain following relational algebraic operation (i) Division (ii) inner join (iii)
1 7 Summer-19
intersection
Explain following relation algebra operations: (i) full outer join (ii) projection (iii)
1 1 7 Summer-19
Cartesian product.
What is Relational Algebra? Define Relational Algebra Operation Cross product with
1 3 Winter-17
example.

Describe the Cartesian Product operation in relational algebra. 1 4 Summer-21

Describe the differences in meaning between the terms relation and relation
2 3 Summer-20
schema.
2
List the type of joins in relational algebra.
1 4 Winter-20
Explain with example
The relational database schema is given below.
employee (person-name, street, city)
works (person-name, company-name, salary)
company (company-name, city)
manages (person-name, manager-name)
Write the relational algebra expressions for the given queries.
3 1.Find the names of all employees who work for First Bank Corporation. 1 4 Winter-19
2.Find the names and cities of residence of all employees who work for First Bank
Corporation.
3.. Find the names, street address, and cities of residence of all employees who work
for First Bank Corporation and earn more than $10,000 per annum.
4. Find the names of all employees in this database who do not work for First Bank
Corporation.

4 Define the terms: a) Primary Key b) Super Key 1 3 Winter-20

5 Define the terms : a) foreign key b) candidate key 1 3 Winter-20

6 List unary relational operators and explain with example. 1 4 Winter-20


S. S. AGRAWAL INSTITUTE OF ENGINEERING & TECHNOLOGY, NAVSARI
3RD SEM /2ND YEAR COMPUTER ENGG. DEPARTMENT
Database Management Systems-3130703
GTU PREVIOUS EXAM ASKED QUESTIONS
(LAST EIGHT PAPERS)

Unit-4 Relational Database Design


No.of
Sr.
Question times Marks Exam
No.
Asked
Explain various Normal forms up to 3NF. 3 Winter-19
1 2
What is normalization? Explain 3NF. 3 Summer-20
What is meant by normalization? Write its need. List and discuss database anomaly
2 1 4 Winter-18
during database design.
3 Elaborate Normalization. Explain any two normal forms with suitable example(s). 1 4 Summer-18

4 What is normalization? Explain 2NF 1 3 Summer-20


What is Normalization? Normalize below given relation up to 3NF.

5 1 7 Winter-17

Explain Armstrong’s Axioms in detail. 1 4 Winter-19


6 Use the definition of functional dependency to argue that each of Armstrong’s
1 7 Summer-20
axioms (reflexivity, augmentation, and transitivity) is sound.
Why should normalization be performed on a table and what are its benefits.
7 1 7 Summer-19
Explain 3NF and BCNF
What is redundant functional dependency? Explain trivial and non trivial functional
8 1 7 Summer-19
dependency with example.
Consider schema R = (A, B, C, G, H, I) and the set F of functional dependencies
9 1 4 Winter-19
{A → B, A → C, CG → H, CG → I, B → H}. Prove that AG → I Holds.
A college maintains details of its lecturers' subject area skills. These details
comprise:
Lecturer Number, Lecturer Name, Lecturer Grade, Department Code, Department
Name, Subject Code, Subject Name, Subject Level
10 1 7 Winter-19
Assume that each lecturer may teach many subjects but may not belong to more
than one department. Subject Code, Subject Name and Subject Level are repeating
fields.
Normalize this data to Third Normal Form.
Consider following set F of functional dependencies on schema R(A,B,C) and
compute canonical cover for F. A→ BC
11 B → C 1 4 Summer-19
A→B
AB → C
Consider schema R = (A, B, C, G, H, I) and the set F of functional dependencies
12 1 3 Winter-17
{A → B, A → C, CG → H, CG → I, B → H}.( Use F+ )
Prove that AG → I Holds.
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}
13 1 4 Winter-17
1) Find attribute closure for: (E-ID)+
2) Find(E-Name)+
Consider the relation scheme R = {E, F, G, H, I, J, K, L, M, M} and the set of functional
14 dependencies {{E, F} -> {G}, {F} -> {I, J}, {E, H} -> {K, L}, K -> {M}, L -> {N} on R. What 1 3 Winter-20
is the key for R?
Draw an E-R diagram of following scenario. Make necessary assumptions and
clearly note down the same.
15 1 4 Winter-20
We would like to make our College’s manually operated Library to fully
computerized .
S. S. AGRAWAL INSTITUTE OF ENGINEERING & TECHNOLOGY, NAVSARI
3RD SEM /2ND YEAR COMPUTER ENGG. DEPARTMENT
Database Management Systems-3130703
GTU PREVIOUS EXAM ASKED QUESTIONS
(LAST EIGHT PAPERS)

Unit-5 Query processing and optimization


No.of
Sr.
Question times Marks Exam
No.
Asked
Discuss various steps of query processing with diagram. 4 Winter-19

Explain query processing step with diagram. 7 Winter-18

Explain steps of query processing with the help of neat diagram. 7 Summer-18

1 Discuss various steps of query processing with proper diagram. 7 7 Winter-17

Explain typical query processing strategy of DBMS? 4 Summer-20

Write short note on query processing. 7 Winter-20

Explain various steps involved in query processing with example. 7 Summer-21

2 Explain query evaluation process. 1 3 Summer-19

3 Explain the purpose of sorting with example with reference to query optimization. 1 4 Summer-19

4 Explain the measures of finding out the cost of a query in query processing. 1 4 Summer-19

5 Write short on block nested loop join. 1 4 Summer-20

6 List the techniques to obtain the query cost. Explain any one. 1 7 Winter-20
S. S. AGRAWAL INSTITUTE OF ENGINEERING & TECHNOLOGY, NAVSARI
3RD SEM /2ND YEAR COMPUTER ENGG. DEPARTMENT
Database Management Systems-3130703
GTU PREVIOUS EXAM ASKED QUESTIONS
(LAST FOUR PAPERS)

Unit-6 Storage strategies


No.of
Sr.
Question times Marks Exam
No.
Asked

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


(2,3,5,7,11,17,19,23,29,31)
1 1 7 Winter-19
Assume that the tree is initially empty and values are added in ascending order.
Consider the number of pointers in each node as four.

Explain Dense and Sparse indices in detail. 1 7 Winter-19


2
What is the role of an index in the database management system? Explain dense
1 4 Summer-21
index with example.

3 Explain hashing. 1 3 Summer-20

4 Explain B-trees. 1 3 Summer-20

5 Differentiate closed hashing and open hashing in DBMS. 1 3 Summer-21


S. S. AGRAWAL INSTITUTE OF ENGINEERING & TECHNOLOGY, NAVSARI
3RD SEM /2ND YEAR COMPUTER ENGG. DEPARTMENT
Database Management Systems-3130703
GTU PREVIOUS EXAM ASKED QUESTIONS
(LAST EIGHT PAPERS)

Unit-7 Transaction processing


No.of
Sr.
Question times Marks Exam
No.
Asked

Enlist and explain ACID properties for transaction. 4 Winter-19

What is transaction? List and explain ACID property of transaction. 4 Summer-19

List and discuss ACID properties of transaction 4 Winter-18

1 List and discuss ACID properties of transaction. 6 4 Summer-18

Explain the ACID properties using suitable example. 7 Winter-17

List and explain ACID properties with respect to Database transaction. 3 Winter-20

List and describe ACID property of transactions. 4 Summer-20

Describe log-based recovery in brief 4 Winter-19

Explain Log based recovery method. 4 Summer-19

What is log based recovery? Explain Immediate database modification technique for
2 5 3 Winter-18
database recovery.
What is log based recovery? Explain Immediate database modification technique for
3 Summer-18
database recovery.
What is log-based recovery? List and explain various fields use in log records for log-
3 Summer-21
based recovery.

Write a note on two phase locking protocol. 4 Winter-19

Write a note on two phase locking protocol. 4 Winter-18


4
3 Write a note on two phase locking protocol. 4 Summer-18

Explain Two phase locking protocol. 7 Winter-17

What is the use of two-phase locking protocol in concurrency control? Describe the
1 7 Summer-21
two-phase locking protocol in detail.
Explain conflict serializability with the help of suitable example. 3 Winter-19

Explain conflict serializability and view serializability with example. 7 Summer-19

Write a note on conflict serializability 7 Winter-18

4 Write a note on conflict serializability 7 7 Summer-18

Explain conflict serializability and view serializability. 4 Summer-20

Explain the concept of Conflict Serializable with suitable schedules. 7 Winter-20

What is the schedule in truncation? How to identify that the given schedule is
7 Summer-21
conflict serializable? Explain with example.
What is deadlock of transaction? Explain wound wait technique for prevention of
3 Winter-18
deadlock.
What is deadlock of transaction? Explain wound wait technique for prevention of
3 Summer-18
deadlock.

5 Explain deadlock with suitable example. 5 4 Winter-17

Explain deadlock with suitable scheduling examples. 7 Winter-20

What is a deadlock in transaction? How to detect deadlock in system? Explain with


7 Summer-21
example.

Write differences between shared lock and exclusive lock. 3 Winter-18

Write differences between shared lock and exclusive lock. 3 3 Summer-18


6
Differentiate shared lock and exclusive lock in lock-based protocol. 4 Summer-21

List and explain types of locks in transactions. 1 3 Winter-20

7 Explain various types of LOCKs used in Lock base protocol for concurrency control. 1 3 Winter-17

Define transaction. Explain various states of transaction with suitable diagram. 4 Winter-18

8 Define transaction. Explain various states of transaction with suitable diagram. 3 4 Summer-18

Describe various state of transaction 3 Summer-21

9 Explain system recovery procedure with Checkpoint record concept 1 4 Summer-19

10 What is transaction? What are the functions of commit and rollback? 1 4 Summer-20

11 Discuss view serializability in transactions. 1 4 Summer-21


S. S. AGRAWAL INSTITUTE OF ENGINEERING & TECHNOLOGY, NAVSARI
3RD SEM /2ND YEAR COMPUTER ENGG. DEPARTMENT
Database Management Systems-3130703
GTU PREVIOUS EXAM ASKED QUESTIONS
(LAST EIGHT PAPERS)

Unit-8 Database Security


No.of
Sr.
Question times Marks Exam
No.
Asked

1 Explain Authorization and access control in brief. 1 3 Winter-19

2 What is the difference between data security and data integrity? 1 3 Summer-19

Write & explain two rules in the Bell-LaPadula model for mandatory access control. 1 3 Summer-17
3
Describe two rules of mandatory access control. 1 3 Summer-21

Write a short note on SQL injection 7 Summer-20


4 2
Explain SQL injection in brief. 3 Summer-21

5 Write a short note on intrusion detection. 1 4 Summer-20


S. S. AGRAWAL INSTITUTE OF ENGINEERING & TECHNOLOGY, NAVSARI
3RD SEM /2ND YEAR COMPUTER ENGG. DEPARTMENT
Database Management Systems-3130703
GTU PREVIOUS EXAM ASKED QUESTIONS
(LAST EIGHT PAPERS)

Unit-9 SQL Concepts


No.of
Sr.
Question times Marks Exam
No.
Asked
List and explain aggregation functions with suitable example. 4 Winter-18

1 List and explain aggregation functions with suitable example. 3 4 Summer-18

Explain Aggregate Functions of SQL with suitable example. 7 Winter-17

Describe GRANT and REVOKE commands. 3 Winter-18

Describe GRANT and REVOKE commands. 3 Summer-18

2 Describe GRANT and REVOKE commands with suitable example. 5 4 Winter-17


Explain following SQL commands with syntax and significance.
3 Winter-20
Grant & Revoke
Describe Grant and Revoke commands with suitable example. 4 Summer-21

List the reason why NULL values introduces might be introduces in database 4 Winter-18
3 2
List reasons why null values might be introduced into the database. 3 Winter-17

Define view. Write syntax to create view .Give an example of view. 3 Summer-18
4 2
Define View. Explain with appropriate example. 4 Winter-17

What is constraint? Explain types of constraints. 3 Summer-19


5 2
Define: Primary key, Foreign Key and NOT NULL constraint 4 Summer-18

Explain commit, rollback and savepoint command. 1 3 Summer-19

6 Compare rollback with commit SQL commands. 1 4 Summer-18


Explain following SQL commands with syntax and significance.
1 3 Winter-20
Commit & Rollback

7 Describe the following SQL functions: (i) Add_months(x,y) (ii) Rtrim() (iii) To_date 1 3 Summer-19

8 What is join? List and explain various types of joins. 1 3 Summer-17

Explain different types of outer join with example. 7 Summer-18


9 2
Explain Outer Joins operations. 3 Winter-17
Consider following schema and write SQL for given statements.
Student (RollNo, Name, DeptCode, City)
Department (DeptCode, DeptName)
Result (RollNo, Semester, SPI)
1. Display the name of students with RollNo whose name ends with ‘sh’.
10 2. Display department wise total students whose total students are greater than 500. 1 7 Winter-19
3. List out the RollNo, Name along with CPI of Student.
4. Create RollNo field as primary key for existing Student table.
5. Display student name who got highest SPI in semester 1.
6. Display the list of students whose DeptCode is 5, 6,7,10.
7. Create table Student_New from student table without data.

Consider the tables given below. Write the SQL queries for the questions given below:
T1 ( Empno, Ename , Salary, Designation,)
T2 (Empno, Deptno.)
(1) Display all the details of the employee whose salary is lesser
than 10000.
(2) Display the Deptno in which Employees with name starting with letter ‘S’ is
11 1 7 Winter-19
working.
(3) Add a new column Deptname in table T2.
(4) Change the designation of Geeta from ‘Manager’ to ‘Senior Manager’.
(5) Find the total salary of all the employees department wise.
(6) Add Empno as primary key in existing table T1.
(7) Display the Deptno having highest number of employees.

Consider following schema and write SQL for given statements.


employee (employee-name, street, city)
works (employee-name, company-name, salary)
company (company-name, city)
manages (employee-name, manager_name)
1. Find the names of all employees who work for First Bank Corporation.
2. Give all employees of First Bank Corporation a 10-percent raise.
12 1 7 Winter-18
3. Find the names and cities of residence of all employees who work for First Bank
Corporation.
4. Find the names, street addresses, and cities of residence of all employees who work
for First Bank Corporation and earn more than $10,000.
5. Find all employees in the database who live in the same cities as the companies for
which they work.
6. Find all employees in the database who do not work for First Bank Corporation.
Consider following schema and write SQL for given statements.
Client_master(clientno, name, address, city, pincode, state, baldue)
Product_master(productno, name, profitpercent, unitmeasure, sellprice, costprice)
Salesman_master(Salesmanno,name,address,city,pincode,state,salary,tgtotget,remark
s)
1) Find out the names of all clients.
13 1 7 Summer-18
2) List all the clients who are located in Mumbai.
3) Delete all salesmen from salesman_master whose salaries are equal to Rs.3500.
4) Destroy the table client_master along with data.
5) List the name of all clients having ‘a’ as the second letter in their names.
6) Count the number of products having cost price is less than or equal to 500.
7) Calculate the average, minimum and maximum sell price of product.

Consider following relations and write SQL queries for given statements.
Assume suitable constrains.
Instructor(ID, Name, Dept_name , Salary)
Teaches(ID, Course_id, Sec_id, Semester(even/odd),Year)
14 1) Write SQL query to create Instructor table. 1 7 Winter-17
2) Find the average salary of the instructors in computer department.
3) Find the number of instructors in each department who teach a course in even
semester of 2016.
4) Find the names of instructor with salary amounts between 30000 and 50000.

Consider the following relational schemas:


EMPLOYEE (EMPLOYEE_NAME, STREET, CITY)
WORKS (EMPLOYEE_NAME, COMPANYNAME, SALARY)
COMPANY (COMPANY_NAME, CITY)
Give an expression in SQL for each of queries below::
15 1 7 Summer-20
(1) Specify the table definitions in SQL.
(2) Find the names of all employees who work for first Bank Corporation.
(3) Find the names and company names of all employees sorted in ascending order of
company name and descending order of employee names of that company.
(4) Change the city of First Bank Corporation to ‘New Delhi’.

What is Data Definition Language? List DDL statements and explain anyone with an
16 1 3 Summer-21
example.
What are the importance of Primary key and Unique key in database? Explain with
17 1 4 Summer-21
example.
S. S. AGRAWAL INSTITUTE OF ENGINEERING & TECHNOLOGY, NAVSARI
3RD SEM /2ND YEAR COMPUTER ENGG. DEPARTMENT
Database Management Systems-3130703
GTU PREVIOUS EXAM ASKED QUESTIONS
(LAST EIGHT PAPERS)

Unit-10 PL/SQL Concepts


No.of
Sr.
Question times Marks Exam
No.
Asked

Write a note on trigger 3 Winter-18

Write a note on trigger. 3 Summer-18


1 4
What are triggers? Explain the advantages and the needs of triggers. 4 Winter-17

What is trigger? Explain its type with their syntax. 3 Summer-20

Explain stored procedure with proper example. 7 Winter-18


2 2
Explain stored procedure with proper example. 7 Summer-18

Explain Cursor in PL/SQL 3 Winter-17

3 Explain cursor and its types. 3 3 Summer-20

What is the use of a cursor in PL/SQL? Explain with example. 4 Summer-21

4 What is PL/SQL. Explain the difference between SQL and PL/SQL. 1 3 Winter-19

5 Write a PL/SQL block to print the sum of Numbers from 1 to 100. 1 3 Summer-19

Write a PL/SQL program for inserting even numbers in EVEN table and odd number
6 1 7 Winter-17
in ODD table from number 1 to 50.

7 Write a PL/SQL block to print the given number is prime or not. 1 3 Summer-19

8 Write a PL/SQL block to print the given number is odd or even. 1 4 Summer-20

9 Write a PL/SQL block to print the sum of even numbers from 1 to 50. 1 4 Summer-20

You might also like