GATE 2024 (Session 1) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2024 (Session 1)

65 questions

MCQ 29 · MSQ 20 · NAT 161-mark 30 · 2-mark 35

Questions 46–50 of 65

Q46Transaction2 marksMSQ
Consider the following read-write schedule SS over three transactions T1,T2T_1, T_2, and T3T_3, where the subscripts in the schedule indicate transaction IDs:

S:r1(z);w1(z);r2(x);r3(y);w3(y);r2(y);w2(x);w2(y);S: r_1(z) ; w_1(z) ; r_2(x) ; r_3(y) ; w_3(y) ; r_2(y) ; w_2(x) ; w_2(y) ;

Which of the following transaction schedules is/are conflict equivalent to SS ?

One or more options are correct.

Q47Boolean Algebra2 marksMSQ
Consider a Boolean expression given by F(X,Y,Z)=Σ(3,5,6,7)F(X, Y, Z)=\Sigma(3,5,6,7).
Which of the following statements is/are CORRECT?

One or more options are correct.

Q48Loop2 marksMSQ
Consider the following C function definition.

int f(int x, int y) {
for (int i=0; i < y; i++) {
x=x+x+y;
}
return x;
}
Which of the following statements is/are TRUE about the above function?

One or more options are correct.

Q49Systems of Linear Equations2 marksMSQ
Let AA be any n×mn \times m matrix, where m>nm > n. Which of the following statements is/are TRUE about the system of linear equations Ax=0A x=0 ?

One or more options are correct.

Q50Finite Automata2 marksMSQ
Consider the 5 -state DFA MM accepting the language L(M)⊂(0+1)∗L(M) \subset(0+1)^* shown below. For any string w∈(0+1)∗w \in(0+1)^* let n0(w)n_0(w) be the number of 0′s0^{\prime} s in ww and n1(w)n_1(w) be the number of 1 's in ww.
1 2 3 4 5 0 1 0 1 1 0 1 0 0 1
Which of the following statements is/are FALSE?

One or more options are correct.