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

GATE 2005

203 questions

MCQ 2031-mark 203

Questions 31–35 of 203

Q31Probability Theory1 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:

Q32Probability Theory1 markMCQ−0.33 if wrong
Let f(x) be the continuous probability density function of a random variable X. The probability that a<X≤ba \lt X \leq b, is:

Q33Discrete Mathematics1 markMCQ−0.33 if wrong
A sink in a directed graph is a vertex i such that there is an edge from every vertex j≠ij \neq i to i and there is no edge from i to any other vertex. A directed graph G with n vertices is represented by its adjacency matrix A, where A[i] [j] = 1 if there is an edge directed from vertex i to j and 0 otherwise. The following algorithm determines whether there is a sink in the graph G.
 i = 0;
do {
    j = i + 1;
    while ((j < n) && E1) j++;
    if (j < n) E2;
} while (j < n);
flag = 1;
for (j = 0; j < n; j++)
    if ((j! = i) && E3) flag = 0;
if (flag) printf("Sink exists") ;
else printf ("Sink does not exist");

Choose the correct expression for E3E_3.

Q34Discrete Mathematics1 markMCQ−0.33 if wrong
A sink in a directed graph is a vertex i such that there is an edge from every vertex j≠ij \neq i to i and there is no edge from i to any other vertex. A directed graph G with n vertices is represented by its adjacency matrix A, where A[i] [j] = 1 if there is an edge directed from vertex i to j and 0 otherwise. The following algorithm determines whether there is a sink in the graph G.
 i = 0;
do {
    j = i + 1;
    while ((j < n) && E1) j++;
    if (j < n) E2;
} while (j < n);
flag = 1;
for (j = 0; j < n; j++)
    if ((j! = i) && E3) flag = 0;
if (flag) printf("Sink exists") ;
else printf ("Sink does not exist");

Choose the correct expression for E1E_1 and E2E_2.

Q35Discrete Mathematics1 markMCQ−0.33 if wrong
In a communication network, a packet of length L bits takes link L1L_1 with a probability of p1p_1 or link L2L_2 with a probability of p2p_2. Link L1L_1 and L2L_2 have bit error probability of b1b_1 and b2b_2 respectively. The probability that the packet will be received without error via either L1L_1 or L2L_2 is