Professional Documents
Culture Documents
CO-1 PART-B
1.Which of the following concurrency control protocols ensure both conflict
serialzability and freedom from deadlock?
(A) Time-stamp ordering
(B) mutual blocking
(C) 2-phase locking
(D) Non of above
Answer: A
2.Concurrency Control is provided in a database
A) Two-phase locking Protocol
B) Time stamp ordering Protocol
C) read phase
D A&B
Answer: D
3.A schedhule for a set of transacation must
A) conist of all instuction of those transactions
B) preserve the oder in which the instructions appear in each individual
transaction
C) both A and B
D None of these
Answer: c
4. ----- strores metadata about the structure of the database, in particular the
schema of the database
A) indices
B) data dictionary
C) data files
D) database log
Answer: B
5) Each committed transaction has an associated number to uniquely identify the
changes made by the statements within the transaction and that number is called,
_________ .
A) Supply change number
B) System change number
C) Oracle change number
15.The __________ property ensures that any instance of the original relation can
be identified from corresponding instances of the smaller relations.
A) Lossless-join
B) Lossy-join
A) Both a and b
D) None of the above
Answer: a
16.The value of a foreign key attribute A of table R that refers to table S cannot
be NULL if which of the following holds?
A) If attribute A is part of a primary key attribute in R
B) If attribute A refers the primary key of S
C) If attribute A is UNIQUE
D) If either a or b or both holds
Answer: d
17.Relational Algebra is a ________________ language.
A) Data Definition Language
B) Procedural Language
C) Non-Procedural Language
D) Data Manipulation Language
Answer: B
18. Which of the following is used in SQL to redefine/modify the definition of a
table which already exists?
A) UPDATE
B) SET
C) ALTER
D) Non of the above
Answer: C
19.A space efficient representation of expressions which avoids making
-----------copies of subexpressions
A) singile
B) double
c) multiple
D) Non of the above
Answer: C
20) The processor used to run the code of the queries of interpreted mode
A) Runtime database processor
B) Query optimization processor
C) Parser runtime processor
D) query graphic processor
Answer: A
CO1 PART-3
1. Let R1(a,b,c) and R2(x,y,z) be two relations in which a is the foreign key of R1
that refers to the primary key of R2 . Consider following four options.
3.Consider the following three SQL queries (Assume the data in the people table):
Select Name from people where Age>18;
Select Name from people where Height>165;
Select Name from people where (Age>18) or (Height>165);
If the SQL queries a and b above, return 8 rows and 5 rows in the result set
respectively, then what is one possible number of rows returned by the SQL query c?
A) 10
B) 8
C) 5
D) 21
Answer : B
Answer : B
6.Consider the transactions T1, T2, and T3 and the schedules S1 and S2 given below.
T1 : r1 (X) ; r1 (z) ; w1 (X) ; w1 (z)
T2 : r2 (X) ; r2 (z) ; w2 (z)
T3 : r3 (X) ; 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)
Answer : B
8.Given the basic ER and relational models, which of the following is INCORRECT?
A. An attribute of an entity can have more than one value
B. An attribute of an entity can be composite
C. In a row of a relational table, an attribute can have more than one value
D. In a row of a relational table, an attribute can have exactly one value or a
NULL value
Answer : C
10.The following functional dependencies hold for relations R(A, B, C) and S(B, D,
E) B -> A, A ->C The relation R contains 200tuples and the relation S contains
100tuples. What is the maximum number of tuples possible in the natural join R S?
A. 100
B. 200
C. 300
D. 2000
Answer : A