Академический Документы
Профессиональный Документы
Культура Документы
a. Specialization.
2.
a.
3.
c. Categorization
d. All of these.
exists.
a. AUB . BUA
4.
5.
.In E-R representation the location attribute for the entity DEPARTMENT is represented by two
ellipses within one another. This indicates location is a-
a. Complex attribute
6.
b. Generalization.
b. Composite attribute
a.
b.
c.
d.
18. Which of the following commands is equivalent to omitting the ON DELETE/UPDATE clause entirely
in the foreign key definition.
a. SET NULL b. SET DEFAULT c. NO ACTION d. CASCADE
19 Which of the following operations require the participating relations to be Union compatible?
a.INTERSECTION b.DIFFERENCE c. UNION
d. All of these
20.Which of the following aggregate functions does not ignore nulls?
a. COUNT b .COUNT(*) c. MAX d.
MIN
R2
SNO
PNO
S1
P1
S1
P2
S1
P3
S2
S2
S3
PNO
P1
P2
P3
P1
P2
P3
a. .S1,S2,S3
b. S1
c. S1,P1;S1,P2,S1,P3
22. Consider the two relations EMPLOYEE, DEPARTMENT. If EmpId and Dnumber are PRIMARY
KEYS and SUPERId and Dno are FOREIGN KRYS, find out anamaly, if any in EMPLOYEE table.
EMPLOYEE
EmpID Name
E1
Ramu
E2
Somu
E4
Ravi
E5
Sara
Null
Mala
a.
c.
DEPARTMENT
SuperId
Null
E1
E2
E3
E3
DNumber
D1
D2
D3
<T0
< T0,
<T0,
< T0,
< T1
Dno
1
1
Null
3
3
Dname
CSE
ECE
MECH
b.
d.
Consider the log entries corresponding to the execution of two transactions T0 and
T1-
STARTt>
A, 1000, 950>
B, 2000, 250>
COMMIT>
START>
< T1 , C, 600,700>
If the system crashes at this point,
datasbase modification scheme area. UNDO T1, UNDO T0
b. UNDO T1, REDO T0
c. REDO T0, UNDO T1
d. REDO T0, REDO T1
23. Is
the following schedule conflict serializable? If so find the equivalent serial schedule:
T1
r(Q)
T2
T3
r(Q)
w(Q)
r(Q)
w(Q)
a. NO
b. YES; T1,T2,T3
c. YES;T1,T3,T2
d. YES;T2,T1,T3.
24. The following schedule is an example of a
T1
r(Q)
T2
schedule.
T3
w(Q)
w(Q)
w(Q)
a. serial
b. conflict serializable
c. view serializable
d. None of these
25. Consider relation DPC .If we decompose the relation into two relations. DP and PC and join them
together we getDeale
r
D1
D1
D1
D2
Parts
Customer
P1
P1
P2
P1
C1
C2
C1
C1
a.
b.
c.
d.
Extra record:D2,P1,C2
None of these
26. Which is the relational algebraic equivalent of SQL query: SELECT * FROM R where
A = C;
c. A=C(R(A,B,C))
d. (a,B,C)(A =C)
e. A=C(R(A,B,C))
f. None of these
27. ARIES recovery scheme includes operations involving a. Analysis Pass.
b. Redo Pass
c. Undo Pass.
d. All of the above.
28.
Given R is a single column relation TEACHER and S is a single column relation STUDENT the list
of students who are not teachers is obtained by
a.
RS
b. S - R
c. R S
d. R U S
29. If the number of records and the number of blocks of the two relations CUSTOMER and DEPOSITOR
are respectively 10,000, 400 and 5000, 100, with Bock Nested Loop Join the number of block accesses
in the worst case will bea. 2,000,100
b. 40,100
c. 500
d. 5400
.
30.Asingle processor system takes on an average 10 msec to process a short query.With two identical
processors working in inter query processing mode average time to process a single query and throughput will
approximately be a. 10 msec; 100 queries/sec
b. 10 msec; 200 queries/sec
c. 5msec;
200 queries/sec
d. 5msec;
100queries/sec
PART C (6x10=60 marks)
31. Describe the three schema architecture of a DBMS and explain how it helps to achieve data
independence.
32. Illustrate with examples various techniques used for query optimization..
33. What is a transaction? What is a schedule? Distinguish between serial, non- serial and serializable
schedules. Illustrate with examples the conflicting operations in a schedule.
34. What is the condition for a schedule to be recoverable? Explain and illustrate with examples
recoverable ,casecadeless and non recoverable schedules.
35. Describe the architecture of distributed databases. What are fragments? What is the need for
fragmentation? Explain horizontal, vertical and hybrid fragments with examples.
36. Consider the relation R= {A, B, C, D, E, F , G, H, I} and a set of functional dependencies:
(i)
(A,B) -> D;
(ii)
A-> D,E;
(iii)
B->F;
(iv)
F->G,H;
(v)
D->I,J
What is the key for the relation R? Decompose R into 2NF and 3 NF relations.