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

GATE 2006

191 questions

MCQ 1911-mark 191

Questions 6–10 of 191

Q6Propositional Logic1 markMCQ−0.33 if wrong
Consider the following propositional statements:
P1:((A∧B)→C)≡(A→C)∧(B→C)P1:((A\wedge B)\rightarrow C)\equiv (A\rightarrow C)\wedge (B\rightarrow C)
P2:((A∨B)→C)≡(A→C)∨(B→C)P2:((A\vee B)\rightarrow C)\equiv (A\rightarrow C)\vee (B\rightarrow C)
Which one of the following is true?

Q7Propositional Logic1 markMCQ−0.33 if wrong
Which one of the first order predicate calculus statements given below correctly expresses the following English statement?

Tigers and lions attack if they are hungry or threatened.

Q8Set Theory1 markMCQ−0.33 if wrong
A set X can be represented by an array x[n] as follows
x[i]={1ifi∈X0otherwisex[i]=\left\{\begin{matrix} 1 &if i\in X \\ 0& otherwise \end{matrix}\right.
Consider the following algorithm in which x,y and z are boolean arrays of size n;
algorithm zzz(x[] , y[], z [])
{
   int i;
   for (i=O; i < n; ++i)
         z[i] = (x[i] ^ ~y[i]) V (~x[i] ^ y[i])
}
The set Z computed by the algorithm is

Q9Set Theory1 markMCQ−0.33 if wrong
Let E,F and G be finite sets.
Let X=(E ∩\capF) - (F∩\capG) and Y = (E - (E∩\capG)) - (E - F).
Which one of the following is true?

Q10Set Theory1 markMCQ−0.33 if wrong
Let X, Y, Z be sets of sizes x, y and z respectively. Let W=X×\timesY and E be the set of all subsets of W. The number of functions from Z to E is