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

GATE 2006

191 questions

MCQ 1911-mark 191

Questions 121–125 of 191

Q121Finite Automata1 markMCQ−0.33 if wrong
For a state machine with the following state diagram the expression for the next state S+S^+ in terms of the current state S and the input variables x and y is

S = 1 S = 0 x=1 y=1 x=0 y=0

Q122Finite Automata1 markMCQ−0.33 if wrong
In the automaton below, s is the start state and t is the only final state.
start S t b b a a a b
Consider the strings u=abbaba,v=bab, and w=aabbu = abbaba, v = bab, \text{ and } w = aabb. Which of the following statements is true?

Q123Finite Automata1 markMCQ−0.33 if wrong
Consider the regular language L = (111 + 11111)* . The minimum number of states in any DFA accepting this languages is

Q124Regular Grammar1 markMCQ−0.33 if wrong
Consider the regular grammar below
S→bS∣aA∣ϵS \rightarrow bS \mid aA \mid \epsilon
A→aS∣bAA \rightarrow aS \mid bA
The Myhill-Nerode equivalence classes for the language generated by the grammar are

Q125Regular Language1 markMCQ−0.33 if wrong
Let L be a regular language. Consider the constructions on L below:
I. repeat(L)={ww∣w∈L}\text{repeat} (L) = \{ww \mid w \in L\}
II. prefix(L)={u∣∃v:uv∈L}\text{prefix} (L) = \{u \mid \exists v : uv \in L\}
III. suffix(L)={v∣∃u:uv∈L}\text{suffix} (L) = \{v \mid \exists u: uv \in L\}
IV. half(L)={u∣∃v:∣v∣=∣u∣ and uv∈L}\text{half} (L) = \{u \mid \exists v: | v | = | u | \text{ and } uv \in L\}
(The linked part asks which of these constructions could lead to a non-regular language; only I can.)
Which choice of L is best suited to support your answer above?