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

GATE 2003

107 questions

MCQ 1071-mark 107

Questions 6–10 of 107

Q6Propositional Logic1 markMCQ−0.33 if wrong
Which of the following is a valid first order formula? (Here α\alpha and β\beta are first order formulae with x as their only free variable)
(A) ((x)[α] (x)[β]) (x)[αβ] (B) (x)[α] (x)[α β] (C) ((x)[α β] (x)[α] (x)[α] (D) (x)[α β] ((x)[α] (x)[β])

Q7Propositional Logic1 markMCQ−0.33 if wrong
Let (S,≤\leq) be a partial order with two minimal elements a and b, and a maximum element c.
Let P:S →\rightarrow {True, False} be a predicate defined on S . Suppose that P(a) = True, P(b) =False and P(x) ⇒\Rightarrow p(y) for all x,y ∈\in S satisfying x≤\leqy, where ⇒\Rightarrow stands for logical implication. Which of the following statements CANNOT be true?

Q8Functions1 markMCQ−0.33 if wrong
Let f : A→\rightarrowB be an injective (one-to-one) function.

Define g:2A→2Bg:2^{A}\rightarrow 2^{B} as:

g(C) = {f (x)| x ∈\in C}, for all subsets C of A.

Define h:2B→2Ah:2^{B}\rightarrow 2^{A} as :

h(D) = {x | x ∈\in A, f (x) ∈\in D}, for all subsets D of B.

Which of the following statements is always true?

Q9Group Theory1 markMCQ−0.33 if wrong
Consider the set Σ∗\Sigma ^{*} of all strings over the alphabet Σ\Sigma={0,1}. Σ∗\Sigma ^{*} with the concatenation operator for strings

Q10Graph Theory1 markMCQ−0.33 if wrong
Let G = (V,E) be a directed graph with n vertices. A path from viv_{i} to vjv_{j} in G is a sequence of vertices (viv_{i},vi+1v_{i+1},....., vjv_{j}) such that (vkv_{k},vk+1v_{k+1})∈\inE for all k in i through j - 1. A simple path is a path in which no vertex appears more than once.
Let A be an n x n array initialized as follows.
A[j,k]={1if(j,k)∈E0otherwiseA[j,k]=\left\{\begin{matrix} 1 & if (j,k) \in E \\ 0& otherwise \end{matrix}\right.
Consider the following algorithm
 for i = 1 to n
   for j = 1 to n
      for k = 1 to n
         A [j , k] = max (A[j, k], A[j, i] + A [i, k]); 
Which of the following statements is necessarily true for all j and k after termination of the above algorithm?