Regular Languages questions

Q12

GATE CS 2012 CSRegular LanguagesMCQ1 mark−1/3 if wrong
What is the complement of the language accepted by the NFA shown below?
Assume Σ={a}\Sigma = \{a\} and ϵ\epsilon is the empty string.

(In the figure, the edge label printed as η denotes ϵ\epsilon.)
Question figure
Show answer without attempting

Answer: B

Q25

GATE CS 2012 CSRegular LanguagesMCQ1 mark−1/3 if wrong
Given the language L={ab,aa,baa}L = \{ab, aa, baa\}, which of the following strings are in L∗L^*?

1) abaabaaabaa
2) aaaabaaaa
3) baaaaabaaaab
4) baaaaabaa
Show answer without attempting

Answer: C

Q46

GATE CS 2012 CSRegular LanguagesMCQ2 marks−2/3 if wrong
Consider the set of strings on {0,1}\{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.

(In the figure, the start state printed as η is the state for the empty string ϵ\epsilon.)

The missing arcs in the DFA are
Question figure
Show answer without attempting

Answer: D

0/30 correct0 marks

Related topics in Theory of Computation