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

GATE 2005

203 questions

MCQ 2031-mark 203

Questions 41–45 of 203

Q41Discrete Mathematics1 markMCQ−0.33 if wrong
Let ff be a function from a set A to a set B, gg a function from B to C, and hh a function from A to C, such that h(a)=g(f(a))h(a) = g(f(a)) for all a∈Aa \in A. Which of the following statements is always true for all such functions ff and gg?

Q42Discrete Mathematics1 markMCQ−0.33 if wrong
In a depth-first traversal of a graph G with n vertices, k edges are marked as tree edges. The number of connected components in G is

Q43Discrete Mathematics1 markMCQ−0.33 if wrong
A bag contains 10 blue marbles, 20 green marbles and 30 red marbles. A marble is drawn from the bag, its colour recorded and it is put back in the bag. This process is repeated 3 times. The probability that no two of the marbles drawn have the same colour is

Q44Discrete Mathematics1 markMCQ−0.33 if wrong
A random bit string of length n is constructed by tossing a fair coin n times and setting a bit to 0 or 1 depending on outcomes head and tail, respectively. The probability that two such randomly generated strings are not identical is:

Q45Discrete Mathematics1 markMCQ−0.33 if wrong
Box P has 2 red balls and 3 blue balls and box Q has 3 red balls and 1 blue ball. A ball is selected as follows: (i) select a box (ii) choose a ball from the selected box such that each ball in the box is equally likely to be chosen. The probabilities of selecting boxes P and Q are 1/3 and 2/3 respectively. Given that a ball selected in the above process is a red ball, the probability that it came from the box P is: