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

GATE 2007

184 questions

MCQ 1841-mark 184

Questions 106–110 of 184

Q106Shortest Path1 markMCQ−0.33 if wrong
In an unweighted, undirected connected graph, the shortest path from a node S to every other node is computed most efficiently, in terms of time complexity, by

Q107Regular Expression1 markMCQ−0.33 if wrong
Consider the regular expression R=(a+b)∗ (aa+bb) (a+b)∗R = (a + b)^* \ (aa + bb) \ (a + b)^*
Which one of the regular expressions given below defines the same language as defined by the regular expression R ?

Q108Regular Expression1 markMCQ−0.33 if wrong
Consider the regular expression R=(a+b)∗(aa+bb)(a+b)∗R = (a + b)^* (aa + bb) (a + b)^*
Which deterministic finite automaton accepts the language represented by the regular expression R?
S0 S1 S2 S3 S4 a b a b b a b a a b (A) S0 S1 S2 S3 S4 a b a b a b a b a b (B) S3 S3 S3 S3 a a a b a b a, b (C) S0 S1 S2 S3 a a b b b a a, b (D)

Q109Regular Expression1 markMCQ−0.33 if wrong
Consider the regular expression R=(a+b)∗(aa+bb)(a+b)∗R = (a + b)^* (aa + bb) (a + b)^*
Which of the following non-deterministic finite automata recognizes the language defined by the regular expression R? Edges labeled λ\lambda denote transitions on the empty string.
(A) S0 S1 S2 S3 a b a b b a a,b a,b (B) S0 S1 S2 S3 a b a b a b a,b a,b (C) S0 S1 S2 S3 a b a b b a a,b a,b (D) S0 S1 S2 S3 a b a b b a a,b a,b a,b

Q110Finite Automata1 markMCQ−0.33 if wrong
Consider the following finite automata P and Q over the alphabet {a, b, c}. The start states are indicated by a double arrow and final states are indicated by a double circle. Let the languages recognized by them be denoted by L(P) and L(Q) respectively.
p0 p1 p2 p3 a b b a b c a (P)

q0 q1 q2 q3 b a b a b c a (Q)
The automation which recognizes the language L(P)∩\capL(Q) is :
r0 r1 r2 r3 (A) a b a a c b r0 r1 r2 r3 (B) a b b a b c r0 r1 r2 r3 (C) a b b a b c b r0 r1 r2 r3 (D) a b b a b c b