Jump to Year/Set
2019 051509

B.Tech 5th Semester Exam., 2019

Time 3 hours
Full Marks 70
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 Answer the following as directed (any seven) :

Q1.1

_____ play an important role in defining and maintaining a database for an organization. (Fill in the blank)

Q1.2

The strong entity type and weak entity type participate in _____ relationship. (Fill in the blank)

Q1.3

A level that describes how a record is stored is

a)

physical

b)

logical

c)

user

d)

view

Q1.4

Which of the following is true?

a)

Every relation in 3NF is also in BCNF

b)

A relation R is in 3NF if very non-prime attribute of R is fully functionally dependent on every key of R

c)

Every relation in BCNF is also in 3NF

d)

No relation can be in both BCNF and 3NF

Q1.5

Consider the relation scheme R={E,F,G,H,I,J,K,L,M,N} and the set of functional dependencies $ \{E,F\} \rightarrow \{G\} $, $ \{F\} \rightarrow \{I,J\} $, $ \{E,H\} \rightarrow \{K, L\} $, $ \{K\} \rightarrow \{M\} $, $ \{L\} \rightarrow \{N\} $ on R. What is the key for R?

a)

{E, F}

b)

{E, F, H}

c)

{E, F, H, K, L}

d)

{E}

Q1.6

Given the Students' relation as shown below (StudentName, StudentAge) to be the key for this instance, the value X should not be equal to

Question Diagram
a)

18

b)

19

c)

15

d)

20

Q1.7

From the instance of a relation scheme R (A, B, C) we can conclude that

Question Diagram
a)

A functionally determines B and B does not functionally determine C

b)

B does not functionally determine C

c)

A does not functionally determine B and B does not functionally determine C

d)

A functionally determines B and B functionally determines C

Q1.8

Date base is generally

a)

system centered

b)

user centered

c)

company centered

d)

data centered

Q1.9

The restriction placed on data is said to be

a)

relation

b)

attribute

c)

parameter

d)

constraint

Q1.10

An object in databases is equal to _____ + relationships.

a)

data

b)

attribute

c)

entity

d)

constraint

Q.2 Solve both questions :

Q2.1

Draw and explain the three-level architecture of the database system.

Q2.2

Compare the traditional file-based systems and relational database management system approaches.

Q.3 Solve all questions :

Q3.1

What is a view? Can we update a view? Justify your answer.

Q3.2

When we try to modify any table in database system, we encounter some side-effects if the tables are insufficiently normalized. Can you explain those side-effects with the respective examples?

Q3.3

List out various constraints in relational model and explain in short.

Q.4 Solve both questions :

Q4.1

Discuss the correspondence between E-R model construct and the relation model construct. Show how each E-R model construct can be append to the relational model using the following description of an organization: An organization uses number of items of an equipment to produce goods. Each item is at one LOCATION, of one TYPE and has a DETAILED_DISCRIPTION. Faults on the equipment are identified by a unique FAULT_ID and are reported at a TIME_REPORTED. Any number of persons may be assigned to a fault and work on the fault until it is fixed. The TIME_FIXED is recorded as the TIME_SPENT by each person on a fault. Any number of parts may be used to repair a fault. The QTY_USED of each part is recorded against the fault. Each part is identified by a PART_ID and has a given weight and MAX_DIMENSION and can have any number of colors.

Q4.2

Write a short note on types of attributes and their representation in E-R model with neat figures.

Q.5 Solve this question :

Q5.1

Considering the following schema, create the appropriate tables and insert at least 5 records:
AUTHOR (author-id, name, city, country)
PUBLISHER (publisher-id, name, city, country)
CATALOG (book-id, title, author-id, publisher-id, category-id, year, price)
CATEGORY (category-id, description)
ORDER-DETAILS (order-no, book-id, quantity)
Write each of the following queries in SQL and relational algebra :
(a) Obtain the names of authors who have 2 or more books in the catalog.
(b) Find the author of the book which has maximum sales.
(c) Obtain the names of author who have maximum number of publisher.
(d) Obtain the name of the city, author, publisher where publisher and author belong to same city.
(e) Obtain the title of books which has maximum sales.
(f) Obtain the book-id, description for the author who have exactly 3 books in the catalog.
(g) Obtain the author and publisher who have published books in more than or equal to 2 categories.

Q.6 Solve both questions :

Q6.1

You are given the following set F of functional dependencies for a relation: $ R(A,B,C,D,E,F):F=\{ABC\rightarrow D, AB \rightarrow DE, CD\rightarrow F, $ $ CDF\rightarrow B, BF \rightarrow D\} $
(i) Find all keys of R based on these functional dependencies.
(ii) Is this relation in Boyce-Codd normal form? Is it 3NF? Explain your answer.
(iii) Can the set F be simplified (by removing functional dependencies or by removing attributes from the left-hand side of functional dependencies) without changing the closure of F (i.e. F+)?

Q6.2

Compute the closure of the following set F of functional dependencies for relation schema: $ R=(A,B,C,D,E).A\rightarrow BC,CD\rightarrow E,B\rightarrow D,E\rightarrow A $. List the candidate keys for R.

Q.7 Solve both questions :

Q7.1

What is the need of normalization? How many types of normalization exist? Explain in detail with suitable examples.

Q7.2

What is trigger? When are they used and why? Explain.

Q.8 Solve both questions :

Q8.1

For the following set of key values construct a B+ tree with a degree 4: 5, 10, 15, 29, 35, 46, 58, 63, 67, 89. Initially tree is empty. Values must be added in ascending order. Show the step-by-step construction.

Q8.2

What is multilevel indexing? Explain in detail.

Q.9 Solve both questions :

Q9.1

What is two-phase locking protocol? Explain its working in detail. How can it guarantee serializability?

Q9.2

Discuss the various approaches for handling the deadlocks in dbms.


2019 V4 051509

B.Tech 5th Semester Exam., 2019

Time 3 hours
Full Marks 70
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 Answer the following as directed (any seven) :

Q1.1

_____ play an important role in defining and maintaining a database for an organization. (Fill in the blank)

Q1.2

The strong entity type and weak entity type participate in _____ relationship. (Fill in the blank)

Q1.3

A level that describes how a record is stored is

a)

physical

b)

logical

c)

user

d)

view

Q1.4

Which of the following is true?

a)

Every relation in 3NF is also in BCNF

b)

A relation R is in 3NF if very non-prime attribute of R is fully functionally dependent on every key of R

c)

Every relation in BCNF is also in 3NF

d)

No relation can be in both BCNF and 3NF

Q1.5

Consider the relation scheme R={E,F,G,H,I,J,K,L,M,N} and the set of functional dependencies $ \{E,F\} \rightarrow \{G\} $, $ \{F\} \rightarrow \{I,J\} $, $ \{E,H\} \rightarrow \{K, L\} $, $ \{K\} \rightarrow \{M\} $, $ \{L\} \rightarrow \{N\} $ on R. What is the key for R?

a)

{E, F}

b)

{E, F, H}

c)

{E, F, H, K, L}

d)

{E}

Q1.6

Given the Students' relation as shown below (StudentName, StudentAge) to be the key for this instance, the value X should not be equal to

Question Diagram
a)

18

b)

19

c)

15

d)

20

Q1.7

From the instance of a relation scheme R (A, B, C) we can conclude that

Question Diagram
a)

A functionally determines B and B does not functionally determine C

b)

B does not functionally determine C

c)

A does not functionally determine B and B does not functionally determine C

d)

A functionally determines B and B functionally determines C

Q1.8

Date base is generally

a)

system centered

b)

user centered

c)

company centered

d)

data centered

Q1.9

The restriction placed on data is said to be

a)

relation

b)

attribute

c)

parameter

d)

constraint

Q1.10

An object in databases is equal to _____ + relationships.

a)

data

b)

attribute

c)

entity

d)

constraint

Q.2 Solve both questions :

Q2.1

Draw and explain the three-level architecture of the database system.

Q2.2

Compare the traditional file-based systems and relational database management system approaches.

Q.3 Solve all questions :

Q3.1

What is a view? Can we update a view? Justify your answer.

Q3.2

When we try to modify any table in database system, we encounter some side-effects if the tables are insufficiently normalized. Can you explain those side-effects with the respective examples?

Q3.3

List out various constraints in relational model and explain in short.

Q.4 Solve both questions :

Q4.1

Discuss the correspondence between E-R model construct and the relation model construct. Show how each E-R model construct can be append to the relational model using the following description of an organization: An organization uses number of items of an equipment to produce goods. Each item is at one LOCATION, of one TYPE and has a DETAILED_DISCRIPTION. Faults on the equipment are identified by a unique FAULT_ID and are reported at a TIME_REPORTED. Any number of persons may be assigned to a fault and work on the fault until it is fixed. The TIME_FIXED is recorded as the TIME_SPENT by each person on a fault. Any number of parts may be used to repair a fault. The QTY_USED of each part is recorded against the fault. Each part is identified by a PART_ID and has a given weight and MAX_DIMENSION and can have any number of colors.

Q4.2

Write a short note on types of attributes and their representation in E-R model with neat figures.

Q.5 Solve this question :

Q5.1

Considering the following schema, create the appropriate tables and insert at least 5 records:
AUTHOR (author-id, name, city, country)
PUBLISHER (publisher-id, name, city, country)
CATALOG (book-id, title, author-id, publisher-id, category-id, year, price)
CATEGORY (category-id, description)
ORDER-DETAILS (order-no, book-id, quantity)
Write each of the following queries in SQL and relational algebra :
(a) Obtain the names of authors who have 2 or more books in the catalog.
(b) Find the author of the book which has maximum sales.
(c) Obtain the names of author who have maximum number of publisher.
(d) Obtain the name of the city, author, publisher where publisher and author belong to same city.
(e) Obtain the title of books which has maximum sales.
(f) Obtain the book-id, description for the author who have exactly 3 books in the catalog.
(g) Obtain the author and publisher who have published books in more than or equal to 2 categories.

Q.6 Solve both questions :

Q6.1

You are given the following set F of functional dependencies for a relation: $ R(A,B,C,D,E,F):F=\{ABC\rightarrow D, AB \rightarrow DE, CD\rightarrow F, $ $ CDF\rightarrow B, BF \rightarrow D\} $
(i) Find all keys of R based on these functional dependencies.
(ii) Is this relation in Boyce-Codd normal form? Is it 3NF? Explain your answer.
(iii) Can the set F be simplified (by removing functional dependencies or by removing attributes from the left-hand side of functional dependencies) without changing the closure of F (i.e. F+)?

Q6.2

Compute the closure of the following set F of functional dependencies for relation schema: $ R=(A,B,C,D,E).A\rightarrow BC,CD\rightarrow E,B\rightarrow D,E\rightarrow A $. List the candidate keys for R.

Q.7 Solve both questions :

Q7.1

What is the need of normalization? How many types of normalization exist? Explain in detail with suitable examples.

Q7.2

What is trigger? When are they used and why? Explain.

Q.8 Solve both questions :

Q8.1

For the following set of key values construct a B+ tree with a degree 4: 5, 10, 15, 29, 35, 46, 58, 63, 67, 89. Initially tree is empty. Values must be added in ascending order. Show the step-by-step construction.

Q8.2

What is multilevel indexing? Explain in detail.

Q.9 Solve both questions :

Q9.1

What is two-phase locking protocol? Explain its working in detail. How can it guarantee serializability?

Q9.2

Discuss the various approaches for handling the deadlocks in dbms.


2017 051509

B.Tech 5th Semester Exam., 2017

Time 3 hours
Full Marks 70
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 Fill in the blanks (any seven):

Q1.1

A description of data in terms of a data model is called a _____

Q1.2

Information about the conceptual, external, and physical schemas is stored in the _____

Q1.3

The weak entity set must have participation in the _____ identifying relationship set.

Q1.4

The _____ also called arity, of a relation is the number of fields.

Q1.5

In relational algebra renaming operation is denoted by _____ operator.

Q1.6

SQL queries are optimized by decomposing them into a collection of smaller units, called _____

Q1.7

The set of all functional dependencies (FDs) implied by a given set F of FDs is called the _____ F, denoted by _____

Q1.8

X→→Y is a trivial MVD if _____ or _____

Q1.9

_____ allows us to identify a point in a transaction and selectively roll back operations carried out after this point.

Q.2 Solve both questions :

Q2.1

Design a generalization-specialization hierarchy for a motor-vehicle sales company. The company sells motor-cycles, passenger cars, vans, and buses. Justify your placement of attributes at each level of the hierarchy.

Q2.2

Explain the difference between condition-defined and user-defined constraints. Which of these constraints can the system check automatically? Explain your answer.

Q.3 Solve both questions :

Q3.1

List two reasons why we may choose to define a view.

Q3.2

List two major problems with processing update operations expressed in terms of views.

Q.4 Consider the relations below:

Q4.1

Passengers (Name, Address, Age)
Reservations (Name, FlightNum, Seat)
Flights (FlightNum, DepartCity, DestinationCity, DepartureTime, ArrivalTime, MinutesLate)
Write the following queries in relational algebra:
(a) Get the names of passengers who had a reservation on a flight that was more than 30 minutes late.
(b) Get the names of passengers who had reservations on all flights that were more than 60 minutes late.

Q.5 Solve both questions :

Q5.1

What is the dependency closure $ F^+ $ of a set F of FDs? How can you compute the closure of a given set F of FDs?

Q5.2

What is the attribute closure $ X^+ $ of a set of attributes X with respect to a set of FDs F? Give the algorithm for computing the attribute closure of a set X of attributes.

Q.6 Solve this question :

Q6.1

When is the decomposition of a relation schema R into two relation schemas X and Y said to be a lossless-join decomposition? Why is the property so important? Give a necessary and sufficient condition to test whether a decomposition is lossless-join.

Q.7 Solve this question :

Q7.1

Describe how a query block is translated into extended relational algebra. Describe and motivate the extensions to relational algebra. Why are $ \sigma\pi x $ expressions the focus of an optimizer?

Q.8 Solve this question :

Q8.1

When do two actions on the same data object conflict? Explain with example the anomalies that can be caused by conflicting actions.

Q.9 Solve this question :

Q9.1

What transaction characteristics can a programmer control in SQL? Explain in brief the different access modes and isolation levels in particular. How can the isolation level and access mode be set in the transaction? Show with example.


2017 V4 051509

B.Tech 5th Semester Exam., 2017

Time 3 hours
Full Marks 70
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 Fill in the blanks (any seven):

Q1.1

A description of data in terms of a data model is called a _____

Q1.2

Information about the conceptual, external, and physical schemas is stored in the _____

Q1.3

The weak entity set must have participation in the _____ identifying relationship set.

Q1.4

The _____ also called arity, of a relation is the number of fields.

Q1.5

In relational algebra renaming operation is denoted by _____ operator.

Q1.6

SQL queries are optimized by decomposing them into a collection of smaller units, called _____

Q1.7

The set of all functional dependencies (FDs) implied by a given set F of FDs is called the _____ F, denoted by _____

Q1.8

X→→Y is a trivial MVD if _____ or _____

Q1.9

_____ allows us to identify a point in a transaction and selectively roll back operations carried out after this point.

Q.2 Solve both questions :

Q2.1

Design a generalization-specialization hierarchy for a motor-vehicle sales company. The company sells motor-cycles, passenger cars, vans, and buses. Justify your placement of attributes at each level of the hierarchy.

Q2.2

Explain the difference between condition-defined and user-defined constraints. Which of these constraints can the system check automatically? Explain your answer.

Q.3 Solve both questions :

Q3.1

List two reasons why we may choose to define a view.

Q3.2

List two major problems with processing update operations expressed in terms of views.

Q.4 Consider the relations below:

Q4.1

Passengers (Name, Address, Age)
Reservations (Name, FlightNum, Seat)
Flights (FlightNum, DepartCity, DestinationCity, DepartureTime, ArrivalTime, MinutesLate)
Write the following queries in relational algebra:
(a) Get the names of passengers who had a reservation on a flight that was more than 30 minutes late.
(b) Get the names of passengers who had reservations on all flights that were more than 60 minutes late.

Q.5 Solve both questions :

Q5.1

What is the dependency closure $ F^+ $ of a set F of FDs? How can you compute the closure of a given set F of FDs?

Q5.2

What is the attribute closure $ X^+ $ of a set of attributes X with respect to a set of FDs F? Give the algorithm for computing the attribute closure of a set X of attributes.

Q.6 Solve this question :

Q6.1

When is the decomposition of a relation schema R into two relation schemas X and Y said to be a lossless-join decomposition? Why is the property so important? Give a necessary and sufficient condition to test whether a decomposition is lossless-join.

Q.7 Solve this question :

Q7.1

Describe how a query block is translated into extended relational algebra. Describe and motivate the extensions to relational algebra. Why are $ \sigma\pi x $ expressions the focus of an optimizer?

Q.8 Solve this question :

Q8.1

When do two actions on the same data object conflict? Explain with example the anomalies that can be caused by conflicting actions.

Q.9 Solve this question :

Q9.1

What transaction characteristics can a programmer control in SQL? Explain in brief the different access modes and isolation levels in particular. How can the isolation level and access mode be set in the transaction? Show with example.


Install on iOS

To install BEU Connect on your iPhone:

1. Tap the Share button at the bottom of Safari.
2. Scroll down and tap "Add to Home Screen".