adplus-dvertising
frame-decoration

Question

Which of the following languages is/are regular?
L1: {wxwR ⎪ w, x ∈ {a, b}* and ⎪w⎪, ⎪x⎪ >0} wR is the reverse of string w

L2: {anbm ⎪m ≠ n and m, n≥0

L3: {apbqcr ⎪ p, q, r ≥ 0}

a.

L1 and L3 only

b.

L2

c.

L2 and L3 only

d.

L3 only

Posted under Compiler Design

Answer: (a).L1 and L3 only

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following languages is/are regular? L1: {wxwR ⎪ w, x ∈ {a, b}* and ⎪w⎪, ⎪x⎪ >0} wR is the reverse of string w L2: {anbm ⎪m ≠ n and m, n≥0 L3: {apbqcr ⎪ p, q, r...

Similar Questions

Discover Related MCQs

Q. The set of all strings over ∑ = {a,b} in which strings consisting a’s and b’s and ending with in bb is

Q. An individual token is called ________

Q. Lexical Analyser’s Output is given to Syntax Analysis.

Q. Lexical Analysis Identifies Different Lexical Units in a _______

Q. Which one is a type of Lexeme

Q. The process of forming tokens from an input stream of characters is called_____

Q. When expression sum=3+2 is tokenized then what is the token category of 3

Q. Which grammar defines Lexical Syntax

Q. It has encoded within it information on the possible sequences of characters that can be contained within any of the tokens it handles .Above motioned function is performed by?

Q. Lexers are often generated by a lexer generator, same as parser generators,

Q. Which one is a lexer Generator

Q. Which of the lexical analyser can handle Unicode

Q. Which NDFA correctly represents the following RE :

a(bab)*∪a(ba)*

Q. Which is the correct NDFA for the following mentioned expression? (ab)*∪(aba)*.

Q. Construct a NDFA for the following regular expression :

(a∪b)*aba(a∪b)*

Q. A deterministic finite automation (DFA)D with alphabet ∑= {a,b} is given below.
Which of the following is a valid minimal DFA which accepts the same language as D?

Q. What is the complement of the language accepted by the NFA shown below? Assume ∑ = {a} and ε is the empty string.

Q. Consider the set of strings on {0,1} in which, every substring of 3 symbols has at most two zeros. Complete the partially completed DFA that accepts this language is shown below. The missing arcs in the DFA are

Q. Convert the NFA to DFA

Q. Examine the following DFA: If input is 011100101, which edge is NOT traversed?