DBMS Latest
DBMS Latest
GROUP-A
D. none of these
A. relation
B. tuple
C. attribute
D. degree
D. all of these
A. loss of information
B. loss of relations
C. loss of attributes
D. none of these
A. INF
B. MVD
C. BCNF
D. none of these
vi) In a one-to-many relationship, the entity that is on the one side of the relationship is called a(n)
entity.
A. parent
B. child
C. instance
D. subtype
vii) Which of the following refers to an entity in which the identifier of one entity includes the
identifier of another entity?
A. Weak entity
B. Strong entity
C. ID-dependent entity
D. ID-independent entity
viii) Every time attribute A appears, it is matched with the same value of attribute B, but not the
same value of attribute C. Therefore, it is true that:
A. A →B.
B. A→C.
C. A→ (B,C).
D. (B,C)→ A.
A. record
B. relation
C. column
D. field
A. Serialization
B. Deadlock control
C. Transaction log
A. define schema
B. define internal level
C. access data
D. all of these.
GROUP-B
2. What is database? What are the advantages of DBMS over file processing system?
3. Discuss the entity integrity and referential integrity constrains. Why each is considered important?
Explain with suitable example.
4. a) Write the concepts of dense index and sparse index with example.
b) When is it preferable to use a dense index rather than a sparse index? Explain.
c) Show that (A, B, C) and (A, D, E) are not a dependency preserving decomposition of R.
6 a) What is the disadvantage of Cartesian product and how to recover from it?
b) Explain full outer join, left outer join, right outer join with examples.
GROUP-C
i) Show the commissions of all the sale persons who receive at least one order of amount greater
than 5,000.
ii) Find all the customers located in cities where sale person Amit has customers.
d) Explain the terms 'partial functional dependency' and 'transitive dependency' with examples.
8. a) Draw the E-R diagram of the following:
A General Hospital consists of a number of specialized wards (such as Maternity, Paediatry, Oncology,
etc). Each ward hosts a number of patients, who were admitted on the recommendation of their own
GP and confirmed by a consultant employed by the Hospital. On admission, the personal details of
every patient are recorded. A separate register is to be held to store the information of the tests,
undertaken and the results of a prescribed treatment. A number of tests may be conducted for each
patient. Each patient is assigned to one leading consultant but may be examined by another doctor, if
required. Doctors are specialists in some branch of medicine and may be leading consultants for a
number of patients, not necessarily form the same ward.
(c) Explain the difference between Primary key, Candidate key and Super key.
(c) What is the wait for graph and how it detects deadlock in database.
10. (a) What do you by functional dependency? Explain fully and partial functional dependency.
STUDENT
Table 1
a) Serializable
b) Two-phase protocol
c) Natural join
d) Transition state
GROUP-A
1. Answer any ten from the following, choosing the correct alternative of each question:
(A) relation
(B) tuple
(C)attribute
(D) degree
(A) J and K
(B) JK
(C) only J
(D) JK and JL
(A) INF
(B) 2NF
(C) 3NF
(D) 4NF
(B)dirty read
(C)unrepeatable read
(A) locking
(xi) What schema defines how and where the data are organized in a physical data storage?
(A) External
(B) Conceptual
(C) Internal
(B) log2n
(C) 2log2n
(D) logan
GROUP-B
2. Discuss the entity integrity and referential integrity constrains. Why each is considered important?
Explain with suitable example.
3. Consider the following relations for a database that keeps track of business trips of salesperson in
a sales office:
a) Give the details (all attributes of TRIP relation) for trip that exceeded Rs. 3,000 in expenses.
5. a) Define BCNF.
GROUP-C
7. a) Consider the relational database as given below and write down expressions in relational
algebra for the following queries.
ii) Select the names of items which have the lowest total quantity.
8. a) i) What is transaction?
i) Show the commissions of all the sale persons who receive at least one order of amount greater
than 5,000.
ii) Find all the customers located in cities where sales-person's name is 'Riyam'.
A General Hospital consists of a number of specialized wards (such as Maternity, Paediatry, Oncology,
etc). Each ward hosts a number of patients, who were admitted on the recommendation of their own
GP and confirmed by a consultant employed by the Hospital. On admission, the personal details of
every patient are recorded. A separate register is to be held to store the information of the tests
undertaken and the results of a prescribed treatment. A number of tests may be conducted for each
patient. Each patient is assigned to one leading consultant but may be examined by another doctor, if
required. Doctors are specialists in some branch of medicine and may be leading consultants for a
number of patients, not necessarily form the same ward.
(c) Explain the difference between Candidate key, Super key and Foreign key.
b) Meta data.
c) Deadlock in transaction.
Question Set 3
GROUP-A
1. Answer any ten from the following, choosing the correct alternative of each question:
a) schema
c) data domain
d) independence
a) Unary operator
b) Binary operator
c) Ternary operator
d) Not defined
(iii) Which of the following operation is only certain columns of a table ? we are interested in
a) PROJECTION
b) SELECTION
c) UNION
D) JOIN
a) X →Y
b) Y→X
c) XY→Y
d) XY→Z
a) Relation
b) Attribute
c) Parameter
d) Constraint
(vi) If X--> YZ then X --> Y and X --> Z is
a) Composition Rule
b) Reflexivity Rule
c) Union Rule
d) Decomposition Rule
(vii)A table on the many sides of a one to many or many to many relationships must:
(viii) The main task carried out in the is to remove repeating attributes to separate tables.
a) Primary Key
b) Candidate Key
c) Super Key
d) All of these
(X) Which one of the following is used to define the structure of the relation, deleting relations and
relating schemas?
c) Query
d) Relational Schema
a) query optimization
b) primary key
c) foreign key
d) none of these
(xii) Advantage of locking protocol
a) Deadlock handling
b) Consistency
c) Concurrency
d) none of these
GROUP-B
b) Why it is necessary?
3. All candidate keys are superkeys but all superkeys are not candidate key. Justify it with suitable
example.
b) Using relational algebra write down the query that finds customers, who have a balance of over
1000 from the relation Borrower.
GROUP-C
A General Hospital consists of a number of specialized wards (such as Maternity, Paediatry, Oncology,
etc). Each ward hosts a number of patients, who were admitted on the recommendation. of their
own and confirmed by a consultant employed by the Hospital. On admission, the personal details of
every patient are recorded A separate register is to be held to store the information of the tests
undertaken and the results of a prescribed treatment. A number of tests may be conducted for each
patient. Each patient is assigned to one leading consultant but may be examined by another doctor, if
required. Doctors are specialists in some branch of medicine and may be leading consultants for a
number of patients, not necessarily form the same ward.
Write down the following queries in relational algebra based on above relations.
i) Find the names of all employees who work for "Juniper Enterprise"
ii) Find the names, streets and cities of all employees who work for the "Mykart Logistics" and earn
more than 450000 per year.
iii) Find the names of all employees who live in the same city as the company for which they work.
v) Find the maximum, minimum and average salary for each company.
b) Explain the 2 Phase locking protocol. What is the benefit of two- phase locking protocol?
b) DKNF
c) Deadlock prevention
d) Metadata
e) Serializable Schedule
Question Set 4
GROUP-A
1. Answer any ten from the following, choosing the correct alternative of each question:
a) Number of tuples
b) Number of attributes
c) Number of tables
d) Number of constraints
a) Unary operator
b) Binary operator
c) Ternary operator
d) Not defined
a) PROJECTION
b) SELECTION
c) UNION
d) JOIN
a) Jand K
b) JK
c) Only J
d) JK and JL
a) X→ Y
b) Y →X
c) XY →Y
d) XY →Z
(vi) Which one of the following is used to define the structure of the relation, deleting relations?
c) Query
d) Relational Schema
a) Relation
b) Attribute
c) Parameter
d) Constraint
(ix) If the state of the database no longer reflects a real state of the world that the database is
supposed to capture, then such a state is called
a) Consistent state
b) Parallel state
c) Atomic state
d) Inconsistent state
a) Null
b) Not Null
d) Any Value
(xi) When the transaction finishes the final statement the transaction enters into
a) Active state
b) Committed state
d) Abort state
(xii) Using relational algebra the query that finds customers, who have a balance of over 1000 is
GROUP-B
4. Explain the following terms: a) Functional dependency b) Prime and Non prime attribute.
GROUP-C
(b) What are the differences between weak entity and strong entity?
(c) Design a database for a college. Many students seek admission in the college. The college has a
number of departments and students can be enrolled to these departments. The department also
offers a number of courses to the students, each with a different duration from the other. Each
department has its H.O.D and many teachers under him. The syllabus of each course is also defined.
Teachers are recruited by the college for teaching the said courses to the students. The teachers may
have different qualifications and experience. They may also teach different subjects if required. Each
student in the college has a unique ID. We need to store the names of the students studying in the
college, their residential address, date of birth. We also need to store information about the college
like the name, address, contact number. reference ID, departments of the college, name of the
H.O.D, number of teachers and students in the department. Also, the courses offered by the
departments, the syllabus, the duration and the course ID. We can also store information about the
teachers like their qualification, experience, name and subjects taught. Draw ER Diagram for this case
study.
(c) Consider a schema R(A,B,C,D) and functional dependencies A->B and C->D. Check whether the
decomposition of R into R1(AB) and R2(CD) is lossless and/or dependency preserving or not.
Add lock and unlock instructions to transactions T1 and T2, so they observe the two-phase locking
protocol.
ii) Find out list of students who have enrolled in "computer" course.
10.(a) Consider the following two schedules. Check whether both of these schedules are conflict-
serializable? Explain why or why not.
(c) Consider the relational database as given below and write down expressions in relational algebra
for the following queries.
Question Set 5
Group A
1. Answer any ten from the following, choosing the correct alternative of each question:
(i) In the relational modes, cardinality is termed as:
a) Number of tuples
b) Number of tables
c) Number of attributes
d) Number of constraints
(ii) Which one of the following is used to define the structure of the relation?
a) Read
b) Write
c) Commit
d) Rollback
(iv) If the state of the database no longer reflects a real state of the world hat the database is
supposed to capture, then such a state is called
a) Consistent state
b) Parallel state
c) Atomic state
d) Inconsistent state
(v) Consider the relation R(A, B, C, D, E, F, G) with following unctional dependencies: {A->BC, B->DG,
E->F}. Identify the Candidate Key.
a) A
b) AF
c) AD
d) AB
b) NOT obtain any new locks once it has started releasing locks
d) None of these.
a) A programming language
b) A security protocol
d) A data type
(x) Which of the following command is a type of Data Definition language command?
a) Create
b) Update
c) Delete
d) Merge
a) locking
b) time-stamping
c) occuring deadlock
d) serial in nature
(xii) DML is provided for
GROUP-B
2. Consider the following two schedules. Check whether both of these schedule are conflict-
serializable? Explain why or why not.
3. Check the highest normal form for the relation R(A, B, C, D, E, F) where the following FDs
hold: {AB -> C, C->DE, E ->F, F ->A}.
4. Explain three schema architecture.
5. What is a multi-valued dependency? Explain with example.
6. write the answer in details.
Group C
(b) Explain the 2 Phase locking protocol. What benefit does strict two- phase locking provide? What
is the disadvantage of it?
(c) What is deadlock in transaction? How to detect deadlock in a system? Explain with diagram.
9. Given a set of FDs for the relation schema R (A, B, C, D, E). The FDs are (BC->D, AC->BE, B->A, A-
>D}. Explain and find out the highest normal form of R.
10. Consider a schema R(A,B,C,D, E) and functional dependencies AB->CD,A->E and C->D. Check
whether the decomposition of R into R1(ABC), R2(BCD) and R3(CDE) is lossless and/or dependency
preserving or not.
11. (a) Consider the following relations:
ii) list all single rooms with a charge below Rs. 1000 per night.
iii) list the names of all guests who are going to stay at ITC Hotel from 25th December to 1st January.
iv) list the price per night and type of all rooms at Grand Hotel.
22.(a) Design an ER diagram on database for a library system that needs to manage information
about books, authors, and library members.
(c) Define the relationships between these entities, indicating the cardinality and participation
constraints.
(d) Specify attributes for each entity, taking into consideration key attributes.
(e)Draw an Entity-Relationship (ER) diagram that accurately represents the database design based on
your analysis in steps 1-3.
Consider entities such as Book, Author, Member, and relationships such as Authorship, Borrow, etc.
Include attributes like ISBN for books, AuthorID for authors, and MemberID for library members.
Ensure that your ER diagram is clear, and relationships are appropriately represented.
Question Set 6
Q.1 Differentiate between weak entity and strong entity.
Q.7 Explain the following terms: a) Functional dependency b) Prime and Non-prime attribute.
Q.21 Explain trivial and Non trivial functional dependency with example.
Q.22 What is the difference between a shared lock and exclusive lock?
Q.6 Consider the relational database as given below and write down expressions in
relational algebra for the following queries.
Q.7 Consider the following two schedules. Check whether both of these schedules
are conflict-serializable or not. Explain.
Q.8 Given a set of FDs for the relation schema R (A,B,C,D,E). The FDs are {BC―>D,
AC―>BE, B―>E}. Explain and find out the highest normal form of R.
Q.9 Design a database for a college. Many students seek admission in the college.
The college has a number of departments and students can be enrolled to these
departments. The department also offers a number of courses to the students,
each with a different duration from the other. Each department has its H.O.D
and many teachers under him. The syllabus of each course is also defined.
Teachers are recruited by the college for teaching the said courses to the
students. The teachers may have different qualifications and experience. They
may also teach different subjects if required. Each student in the college has a
unique ID. We need to store the names of the students studying in the college,
their residential address, date of birth. We also need to store information about
the college like the name, address, contact number, reference ID, departments
of the college, name of the H.O.D, number of teachers and students in the
department. Also, the courses offered by the departments, the syllabus, the
duration and the course ID. We can also store information about the teachers
like their qualification, experience, name and subjects taught.
Q.11 Create a B+ tree (of order-3) with the following keys 8, 5 , 1, 7, 3, 12, 9, 6 And
now delete 12, 5
Q.12 Explain the difference between Primary index & secondary index.
Q.14 With proper example explain how recovery in a database system can be done
using LOG files when the following techniques are used
Q.16 Short note : (a) Data Models (b) Foreign key (c) Aggregate functions (d) Ordered
indexing and hashing (e) Wait/Die and Wound/Wait deadlock protocols (f)
Database languages (g) Armstrong’ axioms for FD’s.(h) Inner Join and Outer Join
Q.17 Explain about Selection, Projection, Rename, division and Cartesian product
operations in relational algebra? 7. Discuss about Domain Relational Calculus?
Write and explain a query in DRC to Find the names of sailors who have reserved
boat 103.
Q.18 Determine the closer of the following set of functional dependencies for a
relational scheme R(A,B,C,D) and FDs {AB → C, C → D, D → A}. List out the
candidate keys of R.
Q.19 Explain about Aggregate operators in sql with examples? 2. Discuss correlated
nested queries? Explain about Selection, Projection, Rename, division and
Cartesian product operations in relational algebra?
Q.20 What is a Phantom deadlock? What is a checkpoint and when does it occur?