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

GATE 2003

107 questions

MCQ 1071-mark 107

Questions 31–35 of 107

Q31Discrete Mathematics1 markMCQ−0.33 if wrong
m identical balls are to be placed in n distinct bags. You are given that m ≥\geqkn, where k is a natural number ≥\geq1. In how many ways can the balls be placed in the bags if each bag must contain at least k balls?
(A)m − kn − 1 (B)m − kn + n − 1n − 1 (C)m − 1n − k (D)m − kn + n + k − 2n − k

Q32Discrete Mathematics1 markMCQ−0.33 if wrong
Consider the following formula α\alpha and its two interpretations I1  and  I2I_{1} \; and \; I_{2}

α:(∀x)[Px↔(∀y)[Qxy↔¬Qyy]]→(∀x)[¬Px]\alpha :(\forall x)[P_{x}\leftrightarrow (\forall y)[Q_{xy}\leftrightarrow \neg Q_{yy}]]\rightarrow (\forall x)[\neg P_{x}]

I1: Domain : the set of natural numbers
Px≡xP_{x}\equiv x is a prime number
Qxy≡yQ_{xy}\equiv y divides x

I2; same as I1 except that Px≡xP_{x}\equiv x is a composite number.

Which of the following statements is true?

Q33Discrete Mathematics1 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)

Q34Discrete Mathematics1 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?

Q35Discrete Mathematics1 markMCQ−0.33 if wrong
Consider the following graph
a e b f h g
Among the following sequences
(I) a b e g h f
(II) a b f e h g
(III) a b f h g e
(IV) a f g h b e
Which are depth first traversals of the above graph?