Consider the following DFA and select the correct option with reference to DFA.

The DFA accepts all strings having “baa” as substring.
The DFA accepts all strings ending with “a”.
The DFA accepts all strings which do not end with “b”.
None of the above
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the below NFA. The number of state/states in corresponding min DFA is/are ______

2
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Which of the following statement is true about regular expression R=bb*+ϵ?
It represents a finite set of finite strings.
It represents an infinite set of finite strings.
It represents a finite set of infinite strings.
It represents an infinite set of infinite strings.
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following statements.

S1: Every proper subset of a context free language is regular.

S2: Every finite subset of a recursive enumerable language is context free.

Select the correct option

Both S1 and S2 are true.
Both S1 and S2 are false
S1 is true but S2 is false.
S1 is false but S2 is true.
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following language L={a^n b^k c^m | k=n+m & n,m >0}.

Select the correct grammar generating L from options.

S→AB & A→aAb |ϵ & B→bBc |ϵ
S→AB & A→aAb |ab & B→bBc | bc
S→AB|ϵ & A→aAb |ϵ & B→bBc |ϵ
S→AB|ϵ & A→aAb |ab & B→bBc | bc
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following language L such that every string in L begins with “a” or ends with “b”. The number of states in min DFA accepting L are ____

4
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider a language L over ∑={a,b} such that every string in L has second symbol from LHS is “a” and all strings are of odd length . The number of states in min DFA will be _________
5
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Consider the following languages.

L1={wxn yn wr | w ϵ{a,b}* & n>0}

L2={xnwwr yn | w ϵ{a,b}* & n>0}

Select the correct option.

Both L1 and L2 are DCFL.
Both L1 and L2 are CFL but not DCFL.
L1 is DCFL and L2 is CFL but not DCFL.
L1 is CFL but not DCFL and L2 is DCFL.
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following languages

L1={a^n a^m b^n b^m | n,m > 0}

L2={a^n a^m b^m b^n | n,m > 0}

Select the correct option.

Both L1 and L2 are DCFL.
Both L1 and L2 are CFL but not DCFL.
L1 is DCFL and L2 is CFL but not DCFL.
L1 is CFL but not DCFL and L2 is DCFL.
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Let L1 be a recursive language. Let L2 and L3 be languages that are recursively enumerable but not recursive. Which of the following statements must always be true?
L2 – L1 is recursively enumerable.
L1 – L3 is recursively enumerable
L2 – L3 is recursively enumerable
L2 ∪ L1 is recursive
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following languages.

L1={a^n b^m | n=m &n,m >=0}

L2={a^n b^m | n≠m &n,m >=0}

Select the option which is not true.

Both L1 and L2 are DCFL.
L1 U L2 is regular language.
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Let w be any string of length n. Let L be the set of all proper prefixes of w. What is the minimum number of final states in a non-deterministic finite automaton that accepts L?
n-1
n-2
n
2n-1
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following statements.

S1: Every language accepted by DPDA can also be accepted by NPDA.

S2: If a language is accepted by finite automata then the subset of language must also be accepted by finite automata.

Select the correct option.

Both S1 and S2 are correct.
Both S1 and S2 are wrong
S1 is correct and S2 is wrong
S1 is wrong and S2 is correct.
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following statements.

S1: A Turing machine accepting a recursively enumerable language may go to infinite loop for any string “w” belongs to language.

S2: A Turing machine accepting a recursive language will never go into infinite loop.

Select the correct option.

Both S1 and S2 are correct.
Both S1 and S2 are wrong.
S1 is correct and S2 is wrong.
S1 is wrong and S2 is correct.
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following Turing machine which recognize language L={a^n b^n | n>=0}

Select the correct transition in place of P and Q from the options.

P=(β, β,L) & Q= (X,X,L)
P=(β, β,L) & Q= (X,X,R)
P=(β, β,R) & Q= (X,X,L)
P=(β, β,R) & Q=(X,X,R)
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following problems.

P1: A NFA M1 is equivalent to another NFA M2.

P2: A NFA M1 accepts the same language generated by regular expression R1.

Select the correct option.

Both P1 and P2 are decidable.
Both P1 and P2 are undecidable.
P1 is decidable and P2 is undecidable.
P1 is undecidable and P2 is decidable.
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following language L={(ab)^n (ab)^m | n=m+1 &n,m>=0}.

Select the correct option.

L is regular language.
L is DCFL but not regular.
L is CFL but not DCFL.
None of the above
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider a language L over ∑={a,b} in which every string is of odd length and start with “a”. The number of states in min NFA which accept L is / are ________
3
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Select the equality which is not correct from the given options.

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following ϵ-NFA over ∑={a}. Select the correct language accepted by NFA.

L(NFA)= a*
L(NFA)={a^(2n+1) | n>0}
L(NFA)={a^(2n) | n>0} {a}
L(NFA)= φ
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following language L=(aa)* +(bb)* . The number of states in min DFA accepting L is _____
6
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Consider the following PDA. Select the correct language accepted by PDA. Please note: no(wa) means number of “a” in string “w”.

All strings “w” such that no(wa) = no(wb) +1
All strings “w” such that no(wa) = no(wb) −1
All strings “w” such that no(wa) = no(wb)
None of the above
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following languages L1 and L2.

L1 ={a^p b^q c^r | p=q or q≠r}

L2={ a^p b^q c^r | p=q and q>r}

Select the correct option.

Both L1 and L2 are CFL but not DCFL.
Both L1 and L2 are CSL but not CFL.
L1 is CFL but not DCFL and L2 is CSL but not CFL.
L2 is CFL but not DCFL and L1 is CSL but not CFL.
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following grammar G whose productions are

S→AB

A→aAa |ϵ

B→bBb |ϵ

Select the correct option about the grammar.

The given grammar is regular grammar.
The given grammar is CFG but L(G) is regular.
The L(G) is DCFL but not regular.
None of the above
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following PDA. The transition (b,a|ϵ) means when input is “b” and top of stack is “a” then pop “a” from stack and (ϵ,z0|ϵ) means when input is over and stack contains z0 then pop stack symbol z0. Select the language accepted by PDA from the given options.

L= {a^m b^n | m=2n+1, m,n>0 }
L= {a^m b^n | n=2m+1, m,n>0 }
L= {a^m b^n | m=2n+1, m,n>=0 }
None of the above
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following languages.

LA ={wXw^r | w,X ϵ{a,b}+ }

LB ={Xww^r | w,X ϵ{a,b}* }

Select the correct option.

Both LA and LB are regular languages.
Both LA and LB are non-regular languages.
LA is regular but LB is non-regular.
LA is non-regular but LB is regular.
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following languages. L1 is CFL, L2 is CSL and L3 is regular. Select the option which is not correct.

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following languages.

L1={a^n | n>=0} , L2={b^n |n>=0} and L3={c^n | n>=0}

Consider a new language L = L1.L2.L3

Select the correct option.

L is regular but infinite.
L is CFL but not regular.
L is CSL but not CFL.
L is a finite language.
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following Turing Machine (q1 is intial state and qf is final state). Select the correct language accepted by given Turing machine from the options.

L={a(ab)^n | n>=0}
L={a(ab)^n | n>0}
L={a(ba)^n | n>=0}
L={a(ba)^n | n>0}
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following problems.

S1: Whether a given Turing machine accept empty language.

S2: Whether a given Turing machine accept finite language.

Select the correct options.

Both S1 and S2 are decidable.
Both S1 and S2 are undecidable.
S1 is decidable but S2 is undecidable.
S2 is decidable but S1 is undecidable.
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following problems.

S1: Whether a given Turing machine accept regular language.

S2: Whether a given Turing machine accept universal language.

Select the correct options.

Both S1 and S2 are decidable.
Both S1 and S2 are undecidable.
S1 is decidable but S2 is undecidable.
S2 is decidable but S1 is undecidable.
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following Turing Machine “M” ( q1 is initial state and qf is final state). Select the wrong option about given Turing machine “M”.

The language accepted by Turing Machine is regular.
The Turing machine can go to infinite loop for some input string.
The language accepted by Turing Machine is finite.
The given Turing Machine accepts an empty language.
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

Both L1 and L2 are DCFL
Both L1 and L2 are CFL but not DCFL.
L1 is DCFL and L2 is CFL but not DCFL.
L2 is DCFL and L1 is CFL but not DCFL.
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66