Header Ads

ad728
  • Latest

    Regular Language & Expression Automata Theory Multiple Choice Questions with Answers



    Automata Theory Multiple Choice Questions & Answers (MCQs) focuses on “Regular Language & Expression”.


    1. A regular language over an alphabet a is one that can be obtained from
    a) union
    b) concatenation
    c) kleene
    d) All of the mentioned
    View Answer




    2. Regular expression {0,1} is equivalent to
    a) 0 U 1
    b) 0 / 1
    c) 0 + 1
    d) All of the mentioned
    View Answer


    3. Precedence of regular expression in decreasing order is
    a) * , . , +
    b) . , * , +
    c) . , + , *
    d) + , a , *
    View Answer


    4. Regular expression Φ* is equivalent to
    a) ϵ
    b) Φ
    c) 0
    d) 1
    View Answer




    5. a? is equivalent to
    a) a
    b) a+Φ
    c) a+ϵ
    d) wrong expression
    View Answer


    6. ϵL is equivalent to
    a) ϵ
    b) Φ
    c) L
    d) Lϵ
    View Answer


    7. (a+b)* is equivalent to
    a) b*a*
    b) (a*b*)*
    c) a*b*
    d) none of the mentioned
    View Answer




    8. ΦL is equivalent to
    a) LΦ
    b) Φ
    c) L
    d) ϵ
    View Answer


    9. Which of the following pair of regular expression are not equivalent?
    a) 1(01)* and (10)*1
    b) x(xx)* and (xx)*x
    c) (ab)* and a*b*
    d) x+ and x*x+
    View Answer


    10. Consider following regular expression
    i) (a/b)* ii) (a*/b*)* iii) ((ϵ/a)b*)*
    Which of the following statements is correct
    a) i,ii are equal and ii,iii are not
    b) i,ii are equal and i,iii are not
    c) ii,iii are equal and i,ii are not
    d) all are equal
    View Answer













    1. How many strings of length less than 4 contains the language described by the regular expression (x+y)*y(a+ab)*?
    a) 7
    b) 10
    c) 12
    d) 11
    View Answer




    2. Which of the following is true?
    a) (01)*0 = 0(10)*
    b) (0+1)*0(0+1)*1(0+1) = (0+1)*01(0+1)*
    c) (0+1)*01(0+1)*+1*0* = (0+1)*
    d) All of the mentioned
    View Answer


    3. A language is regular if and only if
    a) accepted by DFA
    b) accepted by PDA
    c) accepted by LBA
    d) accepted by Turing machine
    View Answer


    4. Regular grammar is
    a) context free grammar
    b) non context free grammar
    c) english grammar
    d) none of the mentioned
    View Answer




    5. Let the class of language accepted by finite state machine be L1 and the class of languages represented by regular expressions be L2 then
    a) L1<L2
    b) L1>=L2
    c) L1 U L2 = .*
    d) L1=L2
    View Answer


    6. Which of the following is not a regular expression?
    a) [(a+b)*-(aa+bb)]*
    b) [(0+1)-(0b+a1)*(a+b)]*
    c) (01+11+10)*
    d) (1+2+0)*(1+2)*
    View Answer


    7. Regular expression are
    a) Type 0 language
    b) Type 1 language
    c) Type 2 language
    d) Type 3 language
    View Answer




    8. Which of the following is true?
    a) Every subset of a regular set is regular
    b) Every finite subset of non-regular set is regular
    c) The union of two non regular set is not regular
    d) Infinite union of finite set is regular
    View Answer


    9. L and ~L are recursive enumerable then L is
    a) Regular
    b) Context free
    c) Context sensitive
    d) Recursive
    View Answer


    10. Regular expressions are closed under
    a) Union
    b) Intersection
    c) Kleen star
    d) All of the mentioned
    View Answer








    No comments

    Post Top Ad

    ad728

    Post Bottom Ad

    ad728