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

GATE 2000

54 questions

MCQ 541-mark 54

Questions 36–40 of 54

Q36Graph Traversal (BFS and DFS)1 markMCQ−0.33 if wrong
Let G be an undirected graph. Consider a depth-first traversal of G, and let T be the resulting depth-first search tree. Let u be a vertex in G and let v be the first new (unvisited) vertex visited after visiting u in the traversal. Which of the following statement is always true?

Q37Minimum Spanning Tree1 markMCQ−0.33 if wrong
Let G be an undirected connected graph with distinct edge weights. Let emaxe_{max} be the edge with maximum weight and emine_{min} the edge with minimum weight. Which of the following statements is false?

Q38Regular Expression1 markMCQ−0.33 if wrong
Let S and T be languages over Σ={a,b}\Sigma=\{a,b\} represented by the regular expressions (a+b∗)∗ and (a+b)∗(a+b^*)^* \text{ and } (a+b)^*, respectively. Which of the following is true?

Q39Finite Automata1 markMCQ−0.33 if wrong
What can be said about a regular language L over {a} whose minimal finite state automaton has two states?

Q40Context Free Grammar1 markMCQ−0.33 if wrong
Consider the following decision problems:

(P1): Does a given finite state machine accept a given string?
(P2): Does a given context free grammar generate an infinite number of strings?

Which of the following statements is true?