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

GATE 2005

203 questions

MCQ 2031-mark 203

Questions 16–20 of 203

Q16Group Theory1 markMCQ−0.33 if wrong
Consider the set H of all 3 x 3 matrices of the type
[afe0bd00c]\begin{bmatrix} a & f & e\\ 0 & b & d\\ 0&0 & c \end{bmatrix}
where a,b,c,d,e and f are real numbers and abc≠\neq0. Under the matrix multiplication operation, the set H is:

Q17Group Theory1 markMCQ−0.33 if wrong
The set {1, 2, 4, 7, 8, 11, 13, 14} is a group under multiplication modulo 15. The inverses of 4 and 7 are respectively:

Q18Graph Theory1 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.

Q19Graph Theory1 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 expressions for E1E_1 and E2E_2.

Q20Graph Theory1 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