GATE 2021 (Session 2) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2021 (Session 2)

64 questions

MCQ 33 · MSQ 13 · NAT 181-mark 29 · 2-mark 35

Questions 41–45 of 64

Q42Transaction2 marksMCQ−0.67 if wrong
Let S be the following schedule of operations of three transactions T1,T2 and T3T_1, T_2 \text{ and }T_3 in a relational database system:

R2(Y),R1(X),R3(Z),R1(Y)W1(X),R2(Z),W2(Y),R3(X),W3(Z)R_2(Y), R_1(X), R_3(Z), R_1(Y)W_1(X), R_2(Z), W_2(Y), R_3(X), W_3(Z)

Consider the statements P and Q below:

P: S is conflict-serializable.
Q: If T3T_3 commits before T1T_1 finishes, then S is recoverable.

Which one of the following choices is correct?

Q43Probability Theory2 marksMCQ−0.67 if wrong
A bag has rr red balls and bb black balls. All balls are identical except for their colours. In a trial, a ball is randomly drawn from the bag, its colour is noted and the ball is placed back into the bag along with another ball of the same colour. Note that the number of balls in the bag will increase by one, after the trial. A sequence of four such trials is conducted. Which one of the following choices gives the probability of drawing a red ball in the fourth trial?

Q46Regular Language2 marksMCQ−0.67 if wrong
Consider the following two statements about regular languages:

S1: Every infinite regular language contains an undecidable language as a subset.
S2: Every finite language is regular.

Which one of the following choices is correct?