• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

Regular languages and finite automata

Question 121

The following Finite Automaton recognizes which of the given languages?
  • {1, 0}* {01}
  • {1, 0}* {1}
  • {1}{1, 0}* {1}
  • 1*0* {0, 1}

Question 122

The regular grammar for the language L = {anbm | n + m is even} is given by
  • S → S1 | S2 S1 → a S1| A1 A1 → b A1| λ S2 → aaS2| A2 A2 → b A2| λ
  • S → S1 | S2 S1 → a S1| aA1 S2 → aaS2| A2 A1 → b A1| λ A2 → b A2| λ
  • S → S1 | S2 S1 → aaa S1| aA1 S2 → aaS2| A2 A1 → b A1| λ A2 → b A2| λ
  • S → S1 | S2 S1 → aa S1| A1 S2 → aaS2| A2 A1 → bb A1| λ A2 → bb A2| λ

Question 123

Let Σ = {a, b} and language L = {aa, bb}. Then, the complement of L is

  • {λ, a, b, ab, ba} ∪ {w∈{a, b}* | |w| > 3}

  • {a, b, ab, ba} ∪ {w∈{a, b}* | |w| > 3}

  • {w ∈ { a, b}* | |w| > 3} ∪ {a, b, ab, ba}

  • {λ, a, b, ab, ba} ∪ {w ∈ {a, b}* | |w| ≥ 3}

Question 124

Consider the following identities for regular expressions: (a) (r + s)* = (s + r)* (b) (r*)* = r* (c) (r* s*)* = (r + s)* Which of the above identities are true?
  • (a) and (b) only
  • (b) and (c) only
  • (c) and (a) only
  • (a), (b) and (c)

Question 125

Given the following two languages : L1 = {uwwRν | u, v, w ∈ {a, b}+} L2 = {uwwRν | u, ν, w ∈ {a, b}+, |u| > |ν|} Which of the following is correct ?
  • L1 is regular language and L2 is not regular language.
  • L1 is not regular language and L2 is regular language.
  • Both L1 and L2 are regular languages.
  • Both L1 and L2are not regular languages.

Question 126

The number of strings of length 4 that are generated by the regular expression (0|∈)1+2* (3|∈), where | is an alternation character, {+, *} are quantification characters, and ∈ is the null string, is :
  • 08
  • 10
  • 11
  • 12

Question 127

The regular expression for the complement of the language L = {anbm|n ≥ 4, m ≤ 3} is:
  • (λ + a + aa + aaa) b* + a* bbbb* + (a + b)* ba(a + b)*
  • (λ + a + aa + aaa) b* + a* bbbbb* + (a + b)* ab(a + b)*
  • (λ + a + aa + aaa) + a* bbbbb* + (a + b)* ab(a + b)*
  • (λ + a + aa + aaa)b* + a* bbbbb* + (a + b)* ba(a + b)*

Question 128

Let L be the language generated by regular expression 0*10* and accepted by the deterministic finite automata M. Consider the relation RM defined by M. As all states are reachable from the start state, RM has _____ equivalence classes.
  • 2
  • 4
  • 5
  • 6

Question 129

What are the final states of the DFA generated from the following NFA? isro72
  • q0, q1, q2
  • [q0, q1], [q0, q2], [ ]
  • q0, [q1, q2]
  • [q0, q1], q2

Question 130

There are exactly __________ different finite automata with three states x, y and z over the alphabet {a, b} where x is always the start state.
  • 64
  • 56
  • 1024
  • 5832

There are 154 questions to complete.

Last Updated :
Take a part in the ongoing discussion