DBMS
DBMS
CS601
mc Allotted: 3 Ilours 70
Thefigures in the margin indicatcful/ marks.
Candidates arc required to give their answers in their words as far as practicab/c
GROUP - A
(Short Answer Type Questions)
Answer any TEN of the follov,ing. 100=10
. Relational calculus is a
z) procedural language b) non-procedural language
c) data definition language d) high level language
1.Normalization is a process of
a) decomposing a set of relations b) successive reduction of relation schema
c) Deciding which attributes in a relation to be grouped together .d)All of These
11.In a relational model, relations are termed as
a) Tuples b) Attributes c) Tables d) Rows.
[v. Which of the .followingoperationsis used if we are interestedin only certain columnsof a
table?
a) Projection b) Selection c) Union d) Join.
v. The relation R={A,B,C} and set of functional dependencies
F={A->B, B->C}. R is decomposed in two different ways:
GROUP - B
(Short Answer Type Questions)
Answer any THREE of the following. 3x5=1i
GROUP - C
(Long Answer Type Questions)
Answer any THREE of the following.
GROUP - C
(Long Answer Type Questions)
Answer any THREE of the following.
7. i) Construct the E-R diagram for Online Course Portal System using at-least 7 entity seta
state all assumptions that you make.
ii) is the difference between the logical data independence and physical data
Page.
Sem-V1/CS601/2018
I}.lech 'CSI i
one of these. b) list all single rooms with a charge below Rs•.1 per
c) list the names of all guests who are going to stay at I
January.
d) list the price per night and type of all rooms at Grand
e) list all guests currently staying at Taj Hotel.
ta type. ii) What is a referential integrity constraint?
eternal schema is iii) What is safe expression in tuple relational calculus?
the following:
11. Write short notes on any Three of
15
i) Aggregation
ii) Armstrong's axioms
iii) Multivalued Dependency
iv) Query Optimization
v) Clustering
MAULANA ABUL KALAM
AZAD UNIVERSITYOF
TECHNOLOGY, WEST BENGAL
Paper code : CS-601
DATABASE MANAGEMENTSYSTEM
TimeAllotted: 3 Hours
Full Marks: 70
Thefigures in the margin indicatefull
marks.
Candidates are required to give their
answers in their own words
as far as practicable.
Group —A
(Multiple Choice Type Questions)
1. Choose the correct alternative for the following:
(i) Which of the following is not a property of transaction?
(a) Atomicity (b) Concurrency
(c) Isolation (d) Durability
(ii) Check points are part of
(a) Recoverymeasure (b) Security measure
(c) Concurrency measure (d) Authorization measure
(iii) Tree structures are used to store data in
(a) Network model (b) Relational model
(c) Hierarchical model (d) file based system
(iv) The language that requires a user to specify the data to be retrieved without specifying how to get
it is
(a) ProceduralDML (b) Non procedural DML
(c) ProceduralDDL (d) Non-procedural DDL
(v) The rule that a value of a foreign key must appear as a value of some specific table is called a
(a) Referential constraint (b) Index
(c) Integrity constraint (d) Functional Dependency
Turn
CVA IS
result Should be sorted in ascendinv
(VI) nie clause in SQL tbnt evecificsthat the query is
column
ordet based on the values of one ot more
(b) order by
(a) view
(d) having
(c) group by
(vii) Conflict serializability can be detectedby
(b) precedence graph
(a) WFG
(d) None of these
(c) spanning tree
intermediate level is called
(viii) According to the levels of abstractions the schema at the
(a) Logical schema (b) Physical schema
(c) Subschema (d) Super schema
algebra
(ix) The operation which is not considered as basic operation in relational
(a) Join (b) Selections
(c) Union (d) Cross product
—(x)At is an abstraction through which relationships are treated as higher level entities?
(a) Generalisation (b) Specialisation
(c) Aggregation (d) Inheritence
Group —B
(Short Answer Type Questions)
Answer any three of the following:
Employee E - name)
4. Whatis
s mad read if A B •rite (BY.
Group —C
(b) What are the advantages of database over traditional file system?
FD's are —{worker-id —iname, {worker-id, building-id) start date, name -9 skill). Is the relation
in 3 NF, if not then make it in 3NF.
3+4+3+5=15
(d) 'Trimary keys are candidate keys but reverse is not true."—explain.
3+4+6+2=15
3
CUB.
(c) Let Tl, Tz and T, be transactions that operate on the same data items A, B, and C. Let
that Tl read A, WI (A) means that writes A and so on for T2 and T3. Consider the
schedule:
10. Answer the following queries in SQL using given database schema:
EMP (E no, E name, E add, B date, super-no)
DEPT (D no, D name, mgrno)
Ptimary Index
6tc.8 i7
GROUP - A
( Multiple Choice Type Questions )
I. Choose the correct alternatives for the following.
10x 1=10
i) The information about data in a database is called
a) Metadata
b) Teradata
c) Hyperdata
d) none of these.
ii) What is the highest normal form for the relational
schema Bank ?
a) First b) Second
iii) Which operator performs pattern matching in vii) One of the shortcomings of the file system
SQL ?
a) Data availability
a) Except b) Intersect
b) Fixed records
c) Like d) All of these.
c) Sequential records
iv) Select operation in SQLis a
d) Lack of security.
a) Data query language
viii) In the E-R diagram the term
b) Data definition language
synonymous to
c) DML
a) Attribute b) Degree
d) DCL.
c) Entities d) Cartesian.
v) Serializability of concurrenttransactions
•are
ix) The employeesalary should not be grater
ensured by
Rs. 20,000. This is
a) Locking
a) integrity constraint
b) Drop
b) referential constraint
c) Both of these
c) over-defined constraint
d) None of these.
d) feasible constraint.
vi) Which index is specified on the non-ordering fields
x) What is the name of a triggerthat triaers
of a file ?
a) Triggering trigger
a) Primary
b) Cascading trigger
b) Clustering
c) Mutating trigger
c) Secondary
d) None of these.
d) None of these.
VI-600101 3
2
TCHfCSE/EVEN/SEM-6/CS-601/2016-17
CS/B.TECH/CSE/ EVEN/ /'20
GROUP - B
)
( Short Answer Type Questions c) Consider the following two sets of FDs
3 x 5=15
Answer any three of the following. {A — C, AC —D, E AD, E — H
the ACID properties of transactions. CD, E —yAH}.
a! Distinguish between filenanagement syStem and Check whether they are equivalent. Jusufy
database management system. answer.
Discuss the role of DBA. 8. Consider the relational database :
Employee ( person-name, street, city )
What is Cardinality ratio ? What is the difference
between procedural and non-procedural DML ? Works ( person-name, company name, salary )
Describe different types of attribute. Company ( company name, city )
S What is closure and minimal cover ? What is inclusion Manages ( person-name, manager-name )
dependency ? Write down appropriate SQL statement for the foiiowung
queries :
What is 2-phase locking protocol ? How does it
a) Find the name of all employeeswho work for SBI
guarantee serializability?
bank'.
GROUP - A
( Multiple Choice Type Questions )
1. Choose the correct alternatives for the following :
10x 1=10
i) Overall logical structure of a database can be
graphically represented by
a). ER diagram b) Records
c) Hierarchy d) Relation.
ii) Which key cannot be null ?
a) Unique key b) Primary key
c) Super key d) Foreign key.
iii) Relational calculus is a
a) Query language
b) Procedural language
c) Non-procedural language
d) None of these.
6/60102 Turn over
:EVEN/SEM-6/CS-601/2015-16
'CSF CS/B.TECH/CSE/EVEN/SF.V
on GROUP - B
iv) 2 NFts based
( Short Answer Type Questions )
full dependency Answer anv three of the lotto'*
transitive dependency
2. What is Data dictionary ? What do
functi01haldependency
operations in Relational algebra ? ('live
d) partial dependency.
data in a database is 3. Explain two-phase locking protocol
v) The information about
a) Meta data b) Hyper data 4. Consider the relation R = A. B. C, D, E, F
c) Tera data d) None of these. and the set of functional dependenctes
A row from a table is selected by
a) selection operator Decompose R into 3 NF.
b) projection operator 5. Discuss the different levels of vtews
c) union operator 6. What is Weak entity set ? Explaitl
d) none of these. example.
vti) Which data type can store unstructured data ?
a) Raw b) Char
GROUP - C
c) Numeric d) Varchar. ( Long Answer Type Questions )
viii) A normal form in which every non-prime attrib Answer any three of the
is fully dependent on prime attribute is 7. a) Draw the ER diagram of a hospital
a) system and explain.
d) BCNF. b) Consider the relation R A, B, C, l). E
Serializabilityof concurrenttransaction is ensur set of functional dependenctes
by
a) locking b) . time stamping Find out the candidate key.
c) both (a)and (b) d) none of these. 8. a) What do you mean by transaction ?
Transaction follows transaction states.
a) ACID properties b) Explain log based recovery and checkpoent*
b) Starvation properties c) What do you mean by shadow paging
c) Preemption properties d) What do you mean by deadlock handhng
d) Non-preemption properties. in detail.
6/00102 6/60102 3
2
TECH/CSE/EVLN/SF.M.6/CS.601/201tY16
a) File indexing
b) B+ tree
c) Advantages of DBMS
d) Database models
e) Inner join and Outer join.
ERSVTYOF TECMSOLOGY
cs-601
DATABASE MANAGE MENT SYSTEM
Allotted: 3 Hours Full Marks: 70
GROUP A
(Multiple Choice Type Questions)
1. Answer any ten questions. = 10
(i) Check-pointing is associated with
(A) log based recovery (B) non-log based recovery
(C) both (A) & (B) (D) none of these
(ii) The different levels of data abstraction are
(A) Physical level (B) Logical level
(C) View level (D) all of these
(iii) The strategy for processing a query is improved by
(A) query evaluation (B) decomposition
(C) query optimization (D) none of these
(iv) View is a
(A) temporary table (B) virtual table
(C) SQL statement (D) query
(v) DML stands for
(A) Data Manipulation Language (B) Data Media Language
(C) Both (A) & (B) (D) None
toi
Trangaettcmfollows
(A) Acid propenies (B) Non-preemption property
(C) Preemption property (D) Starvation ptopcrty
be in
(vii) Relations produced from an ER-model will always
(C) 3NF (D) 4NF
(A) INF (B) 2NF
(ix) BCNF stands for
(A) Boyle Codd Normalization Form (B) Boyce Cold Normal Form
(C) Boyce Codd Normal Form (D) None of these
(x) Which of the following guarantees that, "A transaction is either
performed in its entirety or not performed at all"?
(A) Consistency (B) Durability
(C) Isolation (D) Atomicity
(xi) Which of the following is true?
(A) a super key is always a candidate key
(B) every 3NF schema is also in BCNF
(C) generalization is a bottom-up design approach
(D) none of these
GROUP B
(Short Answer Type Questions)
Answer any three questions. 3x5
i.(a) What do you mean by degree, cardinalityof
relationship? 2
(b) What do you mean by data abstraction?Explain
abstraction? three levels of data
GROUP C
(Long Answer Type Questions)
Answer any three questions.
Consider the following employee database, primary keys are 2+3+3+3+4
underlined.
Employee(employee-name, street, city)
Works(employee-name, company-name, salary)
Company(company-name, city)
Manages(employee-name,manager-name)
Write SQL's for the queries given below:
(i) Find the names of all employees who work for XYZ.
(ii) Find all employees in the database who live in the same cities as the
companies for which they work.
(iii) Find all employees in the database 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.
(v) Find the company that has the smallest payroll.
10.(a) Explain the purpose of the checkpoint mechanism. How often should
checkpoints be performed?
(b) How does 'strict two-phase' and 'conservative two-phase' locking
protocol differ.
(c) Construct a B+ tree for the following set ofkey values —(3, 4, 6, 8, 12,
17, 19, 23, 29, 31) assume that the tree is initially empty, values are
added in ascending order and the number of pointer in one node is 3.
Also perform the following operations on B+ tree: (i) insert 10
(ii) insert I I (iii) delete 29