adplus-dvertising
frame-decoration

Question

Which one of the following languages over the alphabet {0, 1} is described by the regular expression: (0+1)*0(0+1)*0(0+1)*?

a.

strings with the substring 00

b.

strings with at most two 0’s

c.

strings with at least two 0’s

d.

strings beginning and ending with either 0 or 1

Posted under Compiler Design

Answer: (c).strings with at least two 0’s

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which one of the following languages over the alphabet {0, 1} is described by the regular expression: (0+1)*0(0+1)*0(0+1)*?

Similar Questions

Discover Related MCQs

Q. Match the following
Group 1 Group 2

P. Regular expression 1. Syntax analysis

Q. Pushdown automata 2. Code generation

R. Dataflow analysis 3. Lexical analysis

S. Register allocation 4. Code optimization

Q. Let L = L1 ∩ L2, where L1 and L2 are languages as defined below:
L1 = {ambmcanbn | m, n >= 0 }

L2 = {aibjck | i, j, k >= 0 }

Then L is

Q. Does epsilon ring any change in the automata

Q. NFA-εs are defined because certain properties can be more easily proved on them as compared to NFA.

Q. E(q) is known ε-closure of q.

Q. ε-transitions does not add any extra capacity of recognizing formal

Q. A nondeterministic finite automaton with ε-moves is an extension of nondeterministic finite automaton

Q. Is an ordinary NFA and a NFA-ε are equivalent

Q. Which grammar is not regular

Q. If is a language, and is a symbol, then, the quotient of and, is the set of strings such that is in: is in. Suppose is regular, which of the following statements is true?

Q. Here is a context-free grammar G: S → AB A → 0A1 | 2 B → 1B | 3A which of the following strings are in L (G)?

Q. The grammar G: S → SS | a | b is ambiguous. Check all and only the strings that have exactly two leftmost derivations in G

Q. For the following grammar: S → A | B | 2 A → C0 | D B → C1 | E C → D | E | 3 D → E0 | S E → D1 | S Identify all the unit pairs

Q. The classes of languages P and NP are closed under certain operations, and not closed under others. Decide whether P and NP are closed under each of the following operations.
1. Union

2. Intersection

3. Intersection with a regular language

4. Kleene closure (star)

5. Homomorphism

Q. Ndfa and dfa accept same languages

Q. If the NFA N has n states, then the corresponding DFA D has 2n states

Q. An NFA is nothing more than a ε-NFA with no ε transitions

Q. For every DFA, there is a ε-NFA that accepts the same language

Q. DFAs, NFAs, and ε-NFA s are equivalent

Q. Consider the languages L1 = and L2 = {a}. Which one of the following represents L1 L2* U L1*