Вы находитесь на странице: 1из 4

Set No.

1
II B.Tech II Semester Model Examinations
DATABASE MANAGEMENT SYSTEM
(Common to Computer Science &Engineering and Information Technology)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆ ⋆ www.suhritsolutions.com ⋆ ⋆

1. Explain
(a) Data Definition language.
(b) Data Manipulation language .
(c) Database access from the application programs. [5+6+5]
2. Construct an ER diagram for Airport database. Identify entities, attributes for each entity,
relationship among entities. Represent necessary constraints in this database design process in detail.
[16]
3. (a) Discuss about Tuple Relational Calculus in detail.
(b) Write the following queries in Tuple Relational Calculus for following Schema.
Sailors (sid: integer, sname: string, rating: integer, age: real)
Boats (bid: integer, bname: string, color: string)
Reserves (sid: integer, bid: integer, day: date)
i. Find the names of sailors who have reserved a red boat
ii. Find the names of sailors who have reserved at least one boat
iii. Find the names of sailors who have reserved at least two boats
iv. Find the names of sailors who have reserved all boats. [8+8]
4. (a) Consider the following Relations
Student (snum: integer, sname: string, major: string, level: string, age: integer)
Class (name: string, meets-at: time, room: string, fid: integer)
Enrolled (snum: integer, cname: string)
Faculty (fid: integer, fname: string, deptid: integer)
Write the following queries in SQL.
i. Find the names of students not enrolled in any class.
ii. Find the names of students enrolled in the maximum number of classes.
iii. Print the level and the average age of students for that level, for each level.
iv. Print the level and the average age of the students for that level, for all levels except JR.
(b) Explain about following in brief
i. Triggers ii. Assertions [12+4]
5. (a) What is redundancy?
(b) What are the different problems encountered by redundancy? Explain them [4+12]
6. Justify the following statement: Concurrent execution of transactions is more important when data
must be fetched from (slow) disk or when transactions are long, and is less important when data is in
memory and transactions are very short? [16]
7. Explain
(a) Commit Overhead
(b) Data fragmentation
(c) Garbage Collection. [6+5+5]
8. (a) Explain Clustered Indexes?
(b) Explain primary & Secondary Indexes? [8+8]
Set No. 2
II B.Tech II Semester Model Examinations
DATABASE MANAGEMENT SYSTEM
(Common to Computer Science &Engineering and Information Technology)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆ ⋆ www.suhritsolutions.com ⋆ ⋆
1. (a) Give short note on Transaction management.
(b) What is Data Abstraction? Explain three levels of Abstraction. [8+8]
2. Construct an ER diagram for Airport database. Identify entities, attributes for each entity,
relationship among entities. Represent necessary constraints in this database design process in
detail. [16]
3. Consider the following Schema:
Suppliers (sid : integer, sname: string, address: string)
Parts (pid : integer, pname: string, color: string)
Catalog (sid : integer, pid : integer, cost: real)
The key fields are underlined. The catalog relation lists the price changes for parts
by supplies. Write the following Queries in Relational Algebra and tuple relational
calculus.
(a) Find the sids of suppliees who supply some red part and some green part
(b) Find the sids of suppliees who supply every part
(c) Find the sids of suppliees who supply every red or green part
(d) Find the pids of parts supplied by at least two different suppliees. [16]
4. (a) What is a Trigger, and what are its three parts? What are the differences between row - level
and statement - level triggers?
(b) What aggregate operators does SQL support? Explain about them in detail? [8+8]
5. (a) What is Normalization? What are the various normal forms.
(b) Explain First NF with examples?
(c) Explain Second NF with examples? [4+6+6]
6. What is Transaction? Explain ACID properties of Transaction? [16]
7. Explain Buffer Management in detail. [16]
8. Explain overflow of pages, locking considerations? [16]
⋆⋆⋆⋆⋆
Set No. 3
II B.Tech II Semester Model Examinations
DATABASE MANAGEMENT SYSTEM
(Common to Computer Science &Engineering and Information Technology)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆ ⋆ www.suhritsolutions.com ⋆ ⋆

1. (a) Define DBMS? List Database system Applications.


(b) Explain Database Administrator’s responsibilities. [8+8]
2. (a) Why is designing a Database for large Enterprise especially hard? Explain
(b) What is the composite Attribute? How to model it in the ER diagram? Explain with an
example. [8+8]
3. What is a view? How do views support logical data independence? How are views
used for security? How are queries on views evaluated? Why does SQL restrict the
class of views that can be updated? [2+6+4+4]
4. Explain about the following clauses in SQL with examples.
(a) UNION
(b) INTERSECT
(c) EXCEPT
(d) IN
(e) EXISTS
(f) LIKE
(g) AS
(h) DISTINCT [16]
5. Discuss how schema refinement through dependency analysis and normalization
can improve schemas obtained through ER design?
6. What is Transaction? Explain ACID properties of Transaction? [16]
7. Give a normalized version of the Index-metadata relation, and explain why using
the normalized version would result in worse performance. [16]
8. (a) Explain Clustered Indexes?
(b) Explain primary & Secondary Indexes? [8+8]
Set No. 4
II B.Tech II Semester Model Examinations
DATABASE MANAGEMENT SYSTEM
(Common to Computer Science &Engineering and Information Technology)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆ ⋆ www.suhritsolutions.com ⋆ ⋆

1. (a) Give a note on storage manager component of database system structure.


(b) Make a comparison between Database system and File system. [8+8]
2. (A) Why is designing a Database for large Enterprise especially hard? Explain
(B) What is the composite Attribute? How to model it in the ER diagram? Explain with an
example. [8+8]
3. (a) Discuss about Tuple Relational Calculus in detail.
(b) What SQL construct enables the definition of a relation? What constructs allow modification
of Relation instances? [8+8]
4. What is a Trigger, and what are its three parts? What are the differences between row - level and
statement - level triggers?
(b) Explain about following in brief
i. Triggers
ii. Assertions
iii. Active Databases
5. (a) Define functional dependency?
(b) Explain closure set of Functional dependency’s. [4+12]
6. Justify the following statement: Concurrent execution of transactions is more important when
data must be fetched from (slow) disk or when transactions are long, and is less important when
data is in memory and transactions are very short? [16]
7. Compare the shadow-paging recovery scheme with the log-based recovery schemes? [16]
8. Explain overflow of pages, locking considerations? [16]

Вам также может понравиться