GATE 2009 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2009

66 questions

MCQ 661-mark 24 · 2-mark 42

Questions 56–60 of 66

Q56Normal Form2 marksMCQ−0.67 if wrong
Consider the following relational schema:

Suppliers(sid:integer, sname:string, city:string, street:string)
Parts(pid:integer, pname:string, color:string)
Catalog(sid:integer, pid:integer, cost:real)
Assume that, in the suppliers relation above, each supplier and each street within a city has a unique name, and (sname, city) forms a candidate key. No other functional dependencies are implied other than those implied by primary and candidate keys. Which one of the following is TRUE about the above schema?

Q57Transaction2 marksMCQ−0.67 if wrong
Consider two transactions T1 and T2, and four schedules S1, S2, S3, S4 of T1 and T2 as given below:

T1:R1[x]W1[x]W1[y]T_{1}:R_{1}[x]W_{1}[x]W_{1}[y]
T2:R2[x]R2[y]W2[y]T_{2}:R_{2}[x]R_{2}[y]W_{2}[y]
S1:R1[x]R2[x]R2[y]W1[x]W1[y]W2[y]S_{1}:R_{1}[x]R_{2}[x]R_{2}[y]W_{1}[x]W_{1}[y]W_{2}[y]
S2:R1[x]R2[x]R2[y]W1[x]W2[y]W1[y]S_{2}:R_{1}[x]R_{2}[x]R_{2}[y]W_{1}[x]W_{2}[y]W_{1}[y]
S3:R1[x]W1[x]R2[x]W1[y]R2[y]W2[y]S_{3}:R_{1}[x]W_{1}[x]R_{2}[x]W_{1}[y]R_{2}[y]W_{2}[y]
S4:R2[x]R2[y]R1[x]W1[x]W1[y]W2[y]S_{4}:R_{2}[x]R_{2}[y]R_{1}[x]W_{1}[x]W_{1}[y]W_{2}[y]

Which of the above schedules are conflict-serializable?