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

GATE 2012

82 questions

MCQ 821-mark 39 · 2-mark 43

Questions 36–40 of 82

Q36Minimum Spanning Tree2 marksMCQ−0.67 if wrong
Let G be a weighted graph with edge weights greater than one and G' be the graph constructed by squaring the weights of edges in G. Let T and T' be the minimum spanning trees of G and G', respectively, with total weights t and t'. Which of the following statements is TRUE?

Q37Shortest Path2 marksMCQ−0.67 if wrong
Consider the directed graph shown in the figure below. There are multiple shortest paths between vertices S and T. Which one will be reported by Dijkstra's shortest path algorithm? Assume that, in any iteration, the shortest path to a vertex v is updated only when a strictly shorter path to v is discovered
4 1 1 3 7 3 4 1 5 3 4 2 3 5 3 2 S A C E G D B F T

Q38Finite Automata2 marksMCQ−0.67 if wrong
Consider the set of strings on {0,1} in which, every substring of 3 symbols has at most two zeros. For example, 001110 and 011001 are in the language, but 100010 is not. All strings of length less than 3 are also in the language. A partially completed DFA that accepts this language is shown below.
00001ε11011q010101010, 1
The missing arcs in the DFA are
(A)00011011q0001101110100(B)00011011q0001101101100(C)00011011q0001101110100(D)00011011q0001101110100

Q39Finite Automata1 markMCQ−0.33 if wrong
What is the complement of the language accepted by the NFA shown below? Assume ∑\sum={a} and ε\varepsilon is the empty string.
aεε

Q40Regular Language1 markMCQ−0.33 if wrong
Given the language L = {ab, aa, baa}, which of the following strings are in L*?
1) abaabaaabaa
2) aaaabaaaa
3) baaaaabaaaab
4) baaaaabaa