Database Management System
2022105502
B.Tech. 5th Semester Examination, 2022
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct answer of the following (Any seven question
only):
Ask AI
Q1.1
Four DML commands are:
Ask AI
Q1.2
View is a:
Ask AI
Q1.3
The different levels of data abstraction are:
Ask AI
Q1.4
Which of the following is true?
Ask AI
Q1.5
What is the purpose of project operation:
Ask AI
Q1.6
The weak entity set does not have sufficient attributes to form.
Ask AI
Q1.7
Which normal form is considered adequate for normal relational database design?
Ask AI
Q1.8
Which of the following is not a super key in R(V, W, X, Y, Z) with primary key VY?
Ask AI
Q1.9
Consider R (A, B, C, D, E) with following FDs:- $ A \rightarrow B $, $ A \rightarrow C $, $ CD \rightarrow E $, $ B \rightarrow D $, $ E \rightarrow A $ which of the following FDs is not implied by above set?
Ask AI
Q1.10
Which of the following is a concurrency control protocol.
Ask AI
Q.2 Solve both questions :
Ask AI
Q2.1
What is attribute closure $ X^+ $ of a set of attributes X with respect to a set of FDs F? Give the algorithm for commuting $ X^+ $ for X.
Ask AI
Q2.2
Relation R (ABCDEFGH) contains only atomic values for all of its attributes. $ F = \{ CH \rightarrow G, A \rightarrow BC, B \rightarrow CFH, E \rightarrow A, F \rightarrow EG \} $ is a set of functional dependencies (FDs) so that F is exactly the set of FDs that hold for R.
(i) Find all the candidate keys the relation R have?
(ii) Find the highest normal form with justification in which R exist?Ask AI
Q.3 Solve both questions :
Ask AI
Q3.1
Briefly explain the ACID properties of the transactions to ensure integrity of the data.
Ask AI
Q3.2
Consider the transactions T1, T2 and T3 and schedules S1 and S2 given below:
T1: r1 (X); r1(Z); w1 (X); w1 (Z)
T2: r2 (Y); r2 (Z); w2 (Z)
T3: r3 (Y); r3 (X); w3 (Y)
S1: r1 (X); r3(Y); r3(X); r2 (Y); r2(Z); w3(Y); w2 (Z); r1 (Z); w1(X); w1 (Z).
S2: r1 (X); r3 (Y); r2(Y); r3(X); r1(Z); r2(Z); w3 (Y); w1 (X); w2(Z); w1 (Z).
Determine which of the above schedules are conflict - serializable.Ask AI
Q.4 Solve both questions :
Ask AI
Q4.1
Explain the reasons for the update, insertion and deletion anomalies.
Ask AI
Q4.2
With example discuss candidate key, super key, primary key and foreign key.
Ask AI
Q.5 Solve both questions :
Ask AI
Q5.1
What are the typical phases of query processing? With a sketch, discuss these phases in high level query processing.
Ask AI
Q5.2
When is the decomposition of relation schema R into two relation schemes X and Y, said to be a loss-less-join decomposition? Why is this property so important? Explain with example.
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
Explain the terms partial functional dependency' and 'transitive dependency'. Define 2NF and 3 NF in relation with these terms.
Ask AI
Q6.2
Discuss the concept of generalization, specialization and aggregation.
Ask AI
Q.7 Solve this question :
Ask AI
Q7.1
Consider the following employee database, primary keys are underlined.
Employee (ename, street, city)
Works (ename, cname, salary)
Company (cname, city)
Manages (cname, manager-name)
Write SQL queries to:
(i) Find the names of all the employees who work for XYZ.
(ii) Find all employees who live in the same city as the company for which they work.
(iii) Find all employees who live in the same cities and on the same streets as do their managers.
(iv) Find all employees who earn more than the average salary of all employees of their company.Ask AI
Q.8 Solve both questions :
Ask AI
Q8.1
Discuss the advantages and disadvantages of using DBMS as compared to a conventional file system.
Ask AI
Q8.2
What is weak entity set? Explain with suitable example. How weak entities are represented as relational schemas.
Ask AI
Q.9 Write short notes on any two of the following:
Ask AI
Q9.1
Ask AI
2022V2105502
B.Tech. 5th Semester Examination, 2022
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct answer of the following (Any seven question
only):
Ask AI
Q1.1
Four DML commands are:
Ask AI
Q1.2
View is a:
Ask AI
Q1.3
The different levels of data abstraction are:
Ask AI
Q1.4
Which of the following is true?
Ask AI
Q1.5
What is the purpose of project operation:
Ask AI
Q1.6
The weak entity set does not have sufficient attributes to form.
Ask AI
Q1.7
Which normal form is considered adequate for normal relational database design?
Ask AI
Q1.8
Which of the following is not a super key in R(V, W, X, Y, Z) with primary key VY?
Ask AI
Q1.9
Consider R (A, B, C, D, E) with following FDs:- , $ A \rightarrow C $, $ CD \rightarrow E B \rightarrow D E \rightarrow A $ which of the following FDs is not implied by above set?
Ask AI
Q1.10
Which of the following is a concurrency control protocol.
Ask AI
Q.2 Solve both questions :
Ask AI
Q2.1
What is attribute closure of a set of attributes X with respect to a set of FDs F? Give the algorithm for commuting for X.
Ask AI
Q2.2
Relation R (ABCDEFGH) contains only atomic values for all of its attributes. $ F = { CH \rightarrow G, A \rightarrow BC, B \rightarrow CFH, E \rightarrow A, F \rightarrow EG } $ is a set of functional dependencies (FDs) so that F is exactly the set of FDs that hold for R.
(i) Find all the candidate keys the relation R have?
(ii) Find the highest normal form with justification in which R exist?Ask AI
Q.3 Solve both questions :
Ask AI
Q3.1
Briefly explain the ACID properties of the transactions to ensure integrity of the data.
Ask AI
Q3.2
Consider the transactions T1, T2 and T3 and schedules S1 and S2 given below:
T1: r1 (X); r1(Z); w1 (X); w1 (Z)
T2: r2 (Y); r2 (Z); w2 (Z)
T3: r3 (Y); r3 (X); w3 (Y)
S1: r1 (X); r3(Y); r3(X); r2 (Y); r2(Z); w3(Y); w2 (Z); r1 (Z); w1(X); w1 (Z).
S2: r1 (X); r3 (Y); r2(Y); r3(X); r1(Z); r2(Z); w3 (Y); w1 (X); w2(Z); w1 (Z).
Determine which of the above schedules are conflict - serializable.Ask AI
Q.4 Solve both questions :
Ask AI
Q4.1
Explain the reasons for the update, insertion and deletion anomalies.
Ask AI
Q4.2
With example discuss candidate key, super key, primary key and foreign key.
Ask AI
Q.5 Solve both questions :
Ask AI
Q5.1
What are the typical phases of query processing? With a sketch, discuss these phases in high level query processing.
Ask AI
Q5.2
When is the decomposition of relation schema R into two relation schemes X and Y, said to be a loss-less-join decomposition? Why is this property so important? Explain with example.
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
Explain the terms partial functional dependency' and 'transitive dependency'. Define 2NF and 3 NF in relation with these terms.
Ask AI
Q6.2
Discuss the concept of generalization, specialization and aggregation.
Ask AI
Q.7 Solve this question :
Ask AI
Q7.1
Consider the following employee database, primary keys are underlined.
Employee (ename, street, city)
Works (ename, cname, salary)
Company (cname, city)
Manages (cname, manager-name)
Write SQL queries to:
(i) Find the names of all the employees who work for XYZ.
(ii) Find all employees who live in the same city as the company for which they work.
(iii) Find all employees who live in the same cities and on the same streets as do their managers.
(iv) Find all employees who earn more than the average salary of all employees of their company.Ask AI
Q.8 Solve both questions :
Ask AI
Q8.1
Discuss the advantages and disadvantages of using DBMS as compared to a conventional file system.
Ask AI
Q8.2
What is weak entity set? Explain with suitable example. How weak entities are represented as relational schemas.
Ask AI
Q.9 Write short notes on any two of the following:
Ask AI
Q9.1
Ask AI
2021105502
B.Tech Examination, 2021
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Questions
Ask AI
Q1
Choose the correct answer from the following (any seven) :
a)2 marksThe relational model feature is that there (i) is no need for primary key data (ii) is much more data independence than some other database models (iii) are explicit relationships among records (iv) are tables with many dimensions
b)2 marksWhich of the following operations is used if we are interested in only certain columns of a table? (i) PROJECTION (ii) SELECTION (iii) UNION (iv) JOIN
c)2 marksWhich of the following is the original purpose of SQL? (i) To specify the syntax and semantics of SQL data definition language (ii) To specify the syntax and semantics of SQL manipulation language (iii) To define the data structures (iv) All of the above
d)2 marksWhich of the following is true? (i) B+ tree allows only the rapid random access (ii) B+ tree allows only the rapid sequential access (iii) B+ tree allows rapid random access as well as rapid sequential access (iv) B+ tree allows rapid random access and slower sequential access
e)2 marksTransaction processing is associated with everything below, except (i) conforming an action or triggering a response (ii) producing detailed summary or exception report (iii) recording a business activity (iv) maintaining a data
f)2 marksWhich of the following is used at the end of the view to reject the tuples which do not satisfy the condition in where clause? (i) With (ii) Check (iii) With check (iv) All of the above
g)2 marksMany applications use ______ where two independent factors are used to identify a user. (i) Two-factor authentication (ii) Cross-site request forgery (iii) Cross-site scripting (iv) Cross-site scoring scripting
h)2 marks______ allows a system administrator to associate a function with a relation; the function returns a predicate that must be added to any query that uses the relation. (i) OpenID (ii) Single-site system (iii) Security Assertion Markup Language (SAML) (iv) Virtual Private Database (VPD)
i)2 marksThe Object Query Language is which of the following? (i) Similar to SQL and uses a select-from-where structure (ii) Similar to SQL and uses a select-where structure (iii) Similar to SQL and uses a from-where structure (iv) Not similar to SQL
j)2 marksWhich join refers to join records from the right table that have no matching key in the left table and are included in the result set? (i) Left outer join (ii) Right outer join (iii) Full outer join (iv) Half outer join
14 marksAsk AI
Q2
a) List five responsibilities of the database manager. For each responsibility, explain the problem that would arise if the responsibility were not discharged. b) Consider a two-dimensional integer array of size name that is to be used in your favourite programming language. Using the array as an example, illustrate the difference (i) between the three levels of data abstraction and (ii) between a schema and instances.
a)7 marksList five responsibilities of the database manager. For each responsibility, explain the problem that would arise if the responsibility were not discharged.
b)7 marksConsider a two-dimensional integer array of size name that is to be used in your favourite programming language. Using the array as an example, illustrate the difference (i) between the three levels of data abstraction and (ii) between a schema and instances.
14 marksAsk AI
Q3
Construct an E-R diagram for a car insurance company that has a set of customers, each of whom owns one or more cars. Each car has associated with it zero to any number of recorded accidents.
14 marksAsk AI
Q4
a) What are DDL and DML? Explain with the help of examples. b) Explain the following operations with the help of examples : (i) Set of intersection operation (ii) Natural join operation (iii) Division operation
a)7 marksWhat are DDL and DML? Explain with the help of examples.
b)7 marksExplain the following operations with the help of examples : (i) Set of intersection operation (ii) Natural join operation (iii) Division operation
14 marksAsk AI
Q5
a) What are the differences between primary index and secondary index? b) How does the remapping of bad sectors by disk controllers affect data retrievals rates?
a)7 marksWhat are the differences between primary index and secondary index?
b)7 marksHow does the remapping of bad sectors by disk controllers affect data retrievals rates?
14 marksAsk AI
Q6
Show that the two-phase locking protocol ensures conflict serializability and that transaction can be serialized according to their lock points.
14 marksAsk AI
Q7
a) Make a list of security concerns for a bank. For each item on your list, state whether this concern relates to physical security, human security, operating-system security or database security. b) Explain web and distributed database with the help of example.
a)7 marksMake a list of security concerns for a bank. For each item on your list, state whether this concern relates to physical security, human security, operating-system security or database security.
b)7 marksExplain web and distributed database with the help of example.
14 marksAsk AI
Q8
Consider the following ordering schedule—'S' of transactions: T1 : R(A); T1 : A:=A+5; T1 : commit; T2 : R(B); T2 : B:=B+5; T3 : R(C); T3:C:=C+5; T3 : C:=C+5; T4 : R(A); T4 : A:=A+5; T4 : R(D); T4 : D:=D+5; T4 : commit; T2 : commit; T3 : commit; Let the initial value of A=B=C=D=0. The system follows log-based recovery process of immediate database modification. The assumption is the concurrency control system uses strict 2PL, and all the transactions share a common disk buffer and single log. Explain what happens during the recovery process, if it occurs a failure at 'T2 : commit' statement.
14 marksAsk AI
Q9
Write a short note on any one of the following : a) SQL injection b) Database recovery
a)14 marksSQL injection
b)14 marksDatabase recovery
14 marksAsk AI
2020105502
B.Tech 5th Semester Exam., 2020
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct answer of the following (any seven):
Ask AI
Q1.1
The way a particular application views the data from the database that the application uses is a
Ask AI
Q1.2
A relational database developer refers to a record as
Ask AI
Q1.3
Key to represent relationship between tables is called
Ask AI
Q1.4
It is better to use files than a DBMS when there are
Ask AI
Q1.5
Which of the following are the five built-in functions provided by SQL?
Ask AI
Q1.6
A B-tree of order 4 and of height 3 will have a maximum of keys.
Ask AI
Q1.7
Consider the following action: TRANSACTION..... Commit; ROLLBACK; What does rollback do?
Ask AI
Q1.8
Which of the following is used to get back all the transactions back after rollback?
Ask AI
Q1.9
_____ is an attack which forces an end user to execute unwanted actions on a Web application in which he/she is currently authenticated.
Ask AI
Q1.10
_____ allows a system administrator to associate a function with a relation; the function returns a predicate that must be added to any query that uses the relation.
Ask AI
Q.2 Solve both questions :
Ask AI
Q2.1
What are the five main functions of a database administrator?
Ask AI
Q2.2
What are four main differences between file-processing system and a DBMS?
Ask AI
Q.3 Solve this question :
Ask AI
Q3.1
Construct an E-R diagram for a university registrar's office. The office maintains data about each class, including the instructor, the enrollment, and the time and place of the class meetings. For each class pair, a grade is recorded. Document all assumptions that you make about the mapping constraints.
Ask AI
Q.4 Solve both questions :
Ask AI
Q4.1
What is the use of relational query language in DBMS? Use the example to explain tuple and domain relational calculus.
Ask AI
Q4.2
Explain the following operations with the help of examples: (i) Generalized projection (ii) Outer join (iii) Aggregate function
Ask AI
Q.5 Solve this question :
Ask AI
Q5.1
Construct the B+ tree for the following set of key values: (2, 3, 5, 7, 11, 17, 19, 23, 29, 31). Assume that tree is initially empty and values are added in ascending order. Construct B+ tree for the cases where the number of pointers that will fit in one node is as follows: (a) Four (b) Six (c) Eight
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
List the ACID properties. Explain the usefulness of each.
Ask AI
Q6.2
What benefit is provided by rigorous two-phase locking? How does it compare with other forms of two-phase locking?
Ask AI
Q.7 Solve both questions :
Ask AI
Q7.1
What is the purpose of having separate categories for index authorization and resource authorization?
Ask AI
Q7.2
Explain the data mining and data warehousing related to DBMS.
Ask AI
Q.8 Solve this question :
Ask AI
Q8.1
Compute the closure (F+) of the following set of functional dependencies for the relational schema (A, B, C, D, E) = R. List the candidate keys for R:
$ A \rightarrow BC $
$ CD \rightarrow E $
$ B \rightarrow D $
$ E \rightarrow A $Ask AI
Q.9 Write short notes on the following:
Ask AI
Q9.1
Ask AI
2020V2105502
B.Tech 5th Semester Exam., 2020
Instructions
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Q.1 Choose the correct answer of the following (any seven):
Ask AI
Q1.1
The way a particular application views the data from the database that the application uses is a
Ask AI
Q1.2
A relational database developer refers to a record as
Ask AI
Q1.3
Key to represent relationship between tables is called
Ask AI
Q1.4
It is better to use files than a DBMS when there are
Ask AI
Q1.5
Which of the following are the five built-in functions provided by SQL?
Ask AI
Q1.6
A B-tree of order 4 and of height 3 will have a maximum of keys.
Ask AI
Q1.7
Consider the following action: TRANSACTION..... Commit; ROLLBACK; What does rollback do?
Ask AI
Q1.8
Which of the following is used to get back all the transactions back after rollback?
Ask AI
Q1.9
_____ is an attack which forces an end user to execute unwanted actions on a Web application in which he/she is currently authenticated.
Ask AI
Q1.10
_____ allows a system administrator to associate a function with a relation; the function returns a predicate that must be added to any query that uses the relation.
Ask AI
Q.2 Solve both questions :
Ask AI
Q2.1
What are the five main functions of a database administrator?
Ask AI
Q2.2
What are four main differences between file-processing system and a DBMS?
Ask AI
Q.3 Solve this question :
Ask AI
Q3.1
Construct an E-R diagram for a university registrar's office. The office maintains data about each class, including the instructor, the enrollment, and the time and place of the class meetings. For each class pair, a grade is recorded. Document all assumptions that you make about the mapping constraints.
Ask AI
Q.4 Solve both questions :
Ask AI
Q4.1
What is the use of relational query language in DBMS? Use the example to explain tuple and domain relational calculus.
Ask AI
Q4.2
Explain the following operations with the help of examples: (i) Generalized projection (ii) Outer join (iii) Aggregate function
Ask AI
Q.5 Solve this question :
Ask AI
Q5.1
Construct the B+ tree for the following set of key values: (2, 3, 5, 7, 11, 17, 19, 23, 29, 31). Assume that tree is initially empty and values are added in ascending order. Construct B+ tree for the cases where the number of pointers that will fit in one node is as follows: (a) Four (b) Six (c) Eight
Ask AI
Q.6 Solve both questions :
Ask AI
Q6.1
List the ACID properties. Explain the usefulness of each.
Ask AI
Q6.2
What benefit is provided by rigorous two-phase locking? How does it compare with other forms of two-phase locking?
Ask AI
Q.7 Solve both questions :
Ask AI
Q7.1
What is the purpose of having separate categories for index authorization and resource authorization?
Ask AI
Q7.2
Explain the data mining and data warehousing related to DBMS.
Ask AI
Q.8 Solve this question :
Ask AI
Q8.1
Compute the closure (F+) of the following set of functional dependencies for the relational schema (A, B, C, D, E) = R. List the candidate keys for R:
$ A \rightarrow BC $
$ CD \rightarrow E $
$ B \rightarrow D $
Ask AI
Q.9 Write short notes on the following:
Ask AI
Q9.1
Ask AI