Computer Science and Information Technology
GATE CSE topic:computing PYQs
Build your understanding with focused practice from past exam papers.
Questions 351–360 of 975. Imported answers require independent review unless marked reviewed.
Question 46
Open questionCS1MSQ2 marksNeeds review
Consider the following read-write schedule
over three transactions
,
, and
, where the subscripts in the schedule indicate transaction IDs:
Which of the following transaction schedules is/are conflict equivalent to
?Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 46
Open questionCSMSQ2 marksNeeds review
Consider a multi-threaded program with two threads T1 and T2. The threads share two semaphores: s1 (initialized to 1) and s2 (initialized to 0). The threads also share a global variable x (initialized to 0). The threads execute the code shown below.
// code of T1 // code of T2
wait(s1); wait(s1);
x = x+1; x = x+1;
print(x); print(x);
wait(s2); signal(s2);
signal(s1); signal(s1);
Which of the following outcomes is/are possible when threads T1 and T2 execute concurrently?
Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 47
Open questionCS1MSQ2 marksNeeds review
Consider a Boolean expression given by
.
Which of the following statements is/are CORRECT?Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 47
Open questionCSMSQ2 marksNeeds review
Let
be an
matrix over the set of all real numbers
. Let
be a matrix obtained from
by swapping two rows. Which of the following statements is/are TRUE?Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 48
Open questionCS1MSQ2 marksNeeds review
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?
Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 48
Open questionCSMSQ2 marksNeeds review
Let S1 and S2 be two stacks. S1 has capacity of 4 elements. S2 has capacity of 2 elements. S1 already has 4 elements: 100, 200, 300, and 400, whereas S2 is empty, as shown below.

Only the following three operations are available:
PushToS2: Pop the top element from S1 and push it on S2.
PushToS1: Pop the top element from S2 and push it on S1.
GenerateOutput: Pop the top element from S1 and output it to the user.
Note that the pop operation is not allowed on an empty stack and the push operation is not allowed on a full stack.
Which of the following output sequences can be generated by using the above operations?
Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 49
Open questionCS1MSQ2 marksNeeds review
Let
be any
matrix, where
. Which of the following statements is/are TRUE about the system of linear equations
?Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 49
Open questionCSMSQ2 marksNeeds review
Which of the following is/are EQUAL to 224 in radix-5 (i.e., base-5) notation?
Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 50
Open questionCS1MSQ2 marksNeeds review
Consider the 5-state DFA
accepting the language
shown below. For any string
let
be the number of 0's in
and
be the number of 1's in
.
Which of the following statements is/are FALSE?
Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 50
Open questionCSMSQ2 marksNeeds review
Consider 4-variable functions f1, f2, f3, f4 expressed in sum-of-minterms form as given below.
f1 = Σ(0,2,3,5,7,8,11,13)
f2 = Σ(1,3,5,7,11,13,15)
f3 = Σ(0,1,4,11)
f4 = Σ(0,2,6,13)

With respect to the circuit given above, which of the following options is/are CORRECT?
Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer