You are on page 1of 11

Techno India Batanagar

Computer Science and Engineering

Model Questions

Subject Name: Formal Language and Automata Theory Subject Code: CS 402

Multiple Choice Questions

1. The basic limitation of an FSM is iii) It can do sometimes


i) It cannot remember arbitrary large iv) Depends upon the NFA.
amount of information 6. ( P + Q )* = ?
ii) It sometimes recognizes grammar i) (P* + Q*)
that is regular ii) P* + Q*
iii) It sometimes fails to recognize iii) (P* Q*)*
regular grammar iv) Both i) and iii).
iv) All of these. 7. What is the RE for the language set
2. Choose the incorrect statement: strings with at least one 1, one 2 and
i) Moore and Mealy machines are one 3?
FSM with output capabilities i) 1 + 2 + 3
ii) Any given Moore machine has an ii) 11* 22* 33*
equivalent Mealy machine iii) 1* 2 * 3
iii) Any given Mealy machine has an iv) Both i) and ii).
equivalent Moore machine 8. Which of the following sets are regular?
iv) Moore machine is not an FSM. i) { ai | i = n2, n >=1 }
3. The intersection of CFL and regular ii) { ap | p is prime }
language iii) { ww | w ∈ {a, b}+ }
i) Regular iv) { a2n | n >=1 }
ii) CFL 9. The regular expression representing the
iii) Both regular and CFL set of all strings over {X, Y} ending with
iv) None of these. XX and beginning with Y is
4. Palindromes cannot be recognized by i) XX ( X + Y )* Y
an FSM because ii) YY ( X + Y )* X
i) An FSM cannot remember arbitrary iii) Y ( X + Y)* XX
large amount of information iv) Y (XY)* XX.
ii) An FSM cannot deterministically fix 10. The regular expression (a/b)(a/b)
the mid-point denotes the set
iii) An FSM cannot match the second i) { a, b, ab, aa }
half of the string with first half ii) { a, b, ba, bb }
iv) None of these. iii) Both i) and ii)
5. Can a DFA simulate an NFA? iv) None of these.
i) Yes, it can 11. Moore machine output depends on
ii) No, it cannot i) Input
ii) Input and present state iv) (aa + bb) a*b*.
iii) Present state 18. If Q is the number of states of a NFA,
iv) None of these. the equivalent DFA can have a
12. FSM can recognize maximum number of states
i) A grammar depending on the i) Q
characteristics of FSM ii) Q - 1
ii) An CFG iii) 2Q - 1
iii) Any unambiguous grammar iv) 2Q.
iv) Only regular grammar. 19. A Shift Register is
13. DFA has a transition function i) A Mealy machine
i) Q X Σ  Q ii) A Moore machine
ii) Q X Σ  2Q iii) A Turing machine
iii) Both i) and ii) iv) All of these.
iv) None of these. 20. A Push Down Automaton is different
from a finite automaton because of
14. The class of CFG is not closed under i) A read head
i) Concatenation ii) A memory in the form of a stack
ii) Intersection iii) A set of states
iii) Union iv) All of these.
iv) Repeated Concatenation. 21. The production grammar { S  aSbb , S
15. Consider the CFG as defined:  abb} is
X  XY i) Type 3 grammar
X  aX / bX / a ii) Type 2 grammar
Y  Ya / Yb / b iii) Type 1 grammar
Any string of terminals, which can be iv) Type 0 grammar.
generated by the CFG 22. The loop-free testing graph indicates
i) Has at least one b that
ii) Ends with a i) The machine has finite memory
iii) Has no consecutive a’s and b’s ii) The machine has non-finite memory
iv) Has at least 2 a’s. iii) The machine has finite states
16. A grammar that produces more than iv) The machine has non-finite states.
one parse tree for the same sentence is 23. Consider the following regular
called expression
i) Contiguous R = ( ab + abb )* bbab
ii) Ambiguous Which of the following is not a set
iii) Unambiguous denoted by R?
iv) Regular i) abababab
17. The following production rules of a ii) ababbabbbab
regular grammar generate a language L: iii) abbbab
S aS / bS / a / b iv) abbabbbab.
The regular expression of L is 24. Which of the following is correct?
i) a + b i) A language can be derived from the
ii) (a + b)* FA
iii) (a + b)(a + b)*
ii) Regular expressions can be derived 31. Which is true for the transition
from the FA statement: δ(q, ab)
iii) FA can be derived from the i) δ(q, a) ∪ δ(q, b)
language ii) δ(δ(q, a), b)
iv) Both i) and iii). iii) δ(δ(q, a), b
25. The reduced grammar of S  AB | a, A iv) δ(q, a) ∩ δ(q, b)
 a is
i) S  a; A  a
ii) S  a | A ; A  a 32. Which of the following statements is
iii) S  a incorrect?
iv) S  aa. i) A Turing Machine cannot solve
26. Which of the following grammars Halting problem
generates strings with any number of ii) Set of recursively enumerated
1’s? languages is closed under union
i) S  1A, A  ε iii) A FSM with 3 stacks is more
ii) S  1S, S  ε powerful than FSM with 2 stacks
iii) S  S1, S  ε iv) Context sensitive grammar can be
iv) Both ii) and iii). recognized by a linearly bounded
27. Input sequence of an information memory machine.
lossless machine can be determined 33. A string after full traversal, if not
from the knowledge of accepted by an FA, ends up at
i) Only output sequence i) Some non-final states
ii) Output sequence and the initial ii) One of the final states
state iii) One non-final state
iii) Output sequence, initial state and iv) Some non-final states
final state 34. A FA with the same initial and final state
iv) Initial state. i) Not possible to define such an FA
28. Context Free Grammar can be ii) Can produce arbitrary output
recognized by iii) Can accept Null string
i) Finite State Automata iv) Can accept any input
ii) 2-way Linear Bounded Automata 35. A NFA with ε-transition includes
iii) Push Down Automata i) No transition for an input
iv) Both ii) and iii). ii) Multiple transitions for an input
29. A Mealy machine accepts a string of iii) One or more transition without any
length k; the output string length is input
i) k iv) Transition to a Null state
ii) 2k 36. What is true for a dead or sink state
iii) k + 1 i) It cannot be reached any time
iv) k - 1 ii) There is no necessity of the state
30. a*(a+b)* is equivalent to iii) If the state is reached, there is no
i) a* + b* way to come out of the state
ii) a*b* iv) None of the above
iii) (ab)* 37. An Incompletely specified FA is defined
iv) None of these such as
i) All next states are not mentioned ii) Compatibility Graph is a directed
ii) All outputs are not mentioned graph
iii) Both of i) and ii) iii) Both are directed
iv) All inputs are not mentioned iv) None of these
43. The logic of pumping lemma is a good
example of
38. Two states are called 1-equivalent if i) The pigeon-hole principle
i) Both of the states produces the ii) The Divide and Conquer technique
output 1 iii) Recursion
ii) Both of the states produces the iv) Iteration
same output for a string of length 1 44. Which of the following strings can be
iii) Both of the states produces the obtained by the language: L = {aib2i |
same output for any input i>=1}
iv) Both of the states produces the i) aaabbbbbb
same output for input 1 ii) aabbb
39. Two states are called k-equivalent if iii) abbabbba
i) Both of the states are equivalent for iv) aaaabbbabb
all levels above k 45. Which of the following production rule
ii) Both of the states are equivalent for is in CNF?
all levels from 0 to k-1 i) S  aA
iii) Both of the states have at least k ii) SA  AS
number of states iii) S  AB
iv) Both of the states have exactly k iv) All of these
number of states 46. The solution for the equation R = Q + RP
40. Two states of an Incompletely specified is
FA are compatible if i) R = QP*
i) Both of the states have identical ii) R = Q*P
outputs for same input iii) P = RQ*
ii) Both of the states have compatible iv) R = P
next states for all inputs 47. Consider the following language: L = { an
iii) Both of the states have identical bn cn dn | n>= 1}
output and compatible next states i) CFL but not regular
for same input ii) CSL but not CFL
iv) None of the above iii) Regular
41. A Moore machine accepts a string of iv) Type 0 not Type 1
length k; the length of the output string 48. A CFG is not closed under:
is i) Product
i) k ii) Union
ii) 2k iii) Complementation
iii) k + 1 iv) Kleene Star
iv) k - 1 49. Compatible Pairs are obtained from
42. Which is true of the following? i) Merger Graph
i) Merger Graph is a directed graph ii) Compatibility Graph
iii) Testing Table
iv) Testing Graph L1 = {wwR | w ∈ {0, 1}*}
50. Consider the grammar: S  aSAb | ε; A L2 = (w# wR | w ∈ {0, 1}*} (#: Special
 bA | ε; Symbol)
The grammar generates strings in the L3 = {ww | w ∈ {0, 1}*}
form aibi for some i, j >=0. What are the Which of the following is true?
conditions for i & j? i) L1 is a Deterministic CFL
i) i = j ii) L2 is a Deterministic CFL
ii) j <= 2i iii) L3 is a CFL, but not Deterministic
iii) j >= 2i iv) L3 is a Deterministic CFL
iv) i <= j 57. Context Sensitive Grammar can be
51. Let N be an NFA with n states and let M recognized by
be the minimized DFA with m states i) Linear bounded memory machine
recognizing the same language. Which ii) Deterministic push down machine
of the following is NECESSARILY true? iii) Non-deterministic push down
i) m <= 2n machine
ii) n <= m iv) Finite State Machine
iii) M has one accept state 58. Let A = (a+b)*a and B = b(a+b)*, then A
iv) m = 2n intersection B will be
52. The string 1101 does not belong to the i) (a+b)*ab
set represented by ii) ab(a+b)*
i) 110*(0+1) iii) a(a+b)*b
ii) 1(0+1)*101 iv) b(a+b)*a
iii) (10)*(01)*(00+11)* 59. Which of the following is the most
iv) (00+(11)*01)* general phase structured grammar?
53. Which of the following is common for i) Regular
both CNF & GNF? ii) Context Sensitive
i) (NT)  (Single T)(String of NT) iii) PDA
ii) (NT)  (Single of exactly two NT) iv) None of these
iii) (NT)  (String of NT) 60. Pumping Lemma is generally used to
iv) (NT)  (Single T) prove
54. The difference between Turing Machine i) A grammar is regular
and Two Way FA is in: ii) A grammar is not regular
i) Input Tape iii) Two Regular expressions are equal
ii) Read Write Head iv) None of these
iii) Finite Control 61. Automata is a/an ………….. device
iv) All of these i) Acceptor only
55. Recursive languages are ii) Acceptor/Rejecter
i) Closed under insertion iii) Rejecter only
ii) Recursively enumerable iv) Generating
iii) Closed under complementation
iv) All of these 62. Which of the following is true for the
language L = {ap | p is prime}?
i) It is Regular
56. Consider the following languages: ii) It is not Regular but Context Free
iii) It is neither Regular nor Context 68. The set {anbn | n>=1} is generated by
Free the CFG:
iv) None of the above i) S  aSb | ab
63. A Push Down Machine will behave like a ii) S  aSb | ab | ε
Finite State Machine if the stack iii) S  aaSbb | ab
memory size is: iv) S  aaSbb | aabb | ab
i) 0 69. Given the grammar S  aSa|bSb|a|b,
ii) 1 the language generated is the set of
iii) 2 i) All palindromes
iv) None of the above ii) Even palindromes
64. Let L = {w : w ∈ {0, 1}*}, where w iii) Odd palindromes
contains an even number of 1’s; the iv) All of the above
regular expression representing L is 70. The following CFG:
i) (0*10*1)* S  aB | bA
ii) 0*(10*1*)*0* A  b | aS | bAA
iii) 0*1(10*1)*10* B  a | bS | aBB
iv) Both i) and iii) generates strings that have:
65. State which of the following statement i) Equal number of a’s and b’s
is false: ii) Odd number of a’s and odd number
i) Halting problem of Turing Machine of b’s
is undecidable iii) Even number of a’s and even
ii) Determining whether a Context number of b’s
Free Grammar is ambiguous is iv) None of the above
undecidable
iii) Given G1 and G2, two arbitrary 71. Let L1 and L2 be two Context Free
Context Free Grammars, it is Languages and R be any regular language.
undecidable if L(G1) = L(G2) Which of the following is/are correct?
iv) Given G1 and G2, two Regular A. L1 ∪ L2 is Context Free
Grammars, it is undecidable if L(G1) B. ~L2 is Context Free
= L(G2) C. L1 – R is Context Free
66. A Language that can be accepted by a D. L1 ∩ L2 is Context Free
Finite Automata, if and only if it is: i) A, B & D only
i) Context Sensitive ii) A & C only
ii) Context Free iii) B & D only
iii) Regular iv) A only
iv) None of these
72. What is the minimum number of states
67. Every Context Free Grammar can be for a Deterministic Automata that
converted to: accepts the Regular Language?
i) Greibach Normal Form L = {w1aw2| w1,w2 ∈ {a, b}*, |w1|=2,
ii) Chomsky Normal Form |w2|>= 3}
iii) Both I & ii 73. Identify the language generated by the
iv) All of the above following grammar:
S  XY; X  aX|a; Y  aYb|ε
i) {ambn | m>=n, n> 0} 77. Consider the language by the Regular
ii) {ambn | m>=n, n>= 0} Expression (a+b)*b(a+b). The smallest
iii) {ambn | m>n, n>= 0} number of states required by a
iv) {ambn | m>n, n> 0} Deterministic Finite State Automata
that accepts the language is?
74. Consider the following grammar G: 78. Consider the Grammar, G, with the
S  E – T|T; T  T + F|F; F  (E) | id production rule:
Which of the following is not Left S  SS | SaS | aSb | bSa | ε
Recursive but equivalent to G? If S is the Start Variable, then which of
i) S  E – T|T; T  T + F|F; F  (E) | the following is not generated by G?
id i) abab
ii) E  TE’; E’  – TE’| ε; T  T + F|F; ii) aaab
F  (E) | id iii) abbaa
iii) E  TX; X  – TX| ε; T  FY ; iv) babba
Y  +FY| ε; F  (E) | id 79. Consider the following grammar G1, G2
iv) E  TX | (TX); X  – TX|+TX| ε; with the Production Rules:
T  id G1 : S  aSb |T; T  cT | ε
75.The Transition Functions for a ε-NFA G2 : S  bSa |T; T  cT | ε
are: The language L(G1) ∩ L(G2) is ?
δ(q0, ε)=q2, δ(q0, a)=q1, δ(q0, b)=q0 i) Finite
δ(q1, ε)=q2, δ(q1, a)=q2, δ(q1, b)=q3 ii) Not finite but Regular
δ(q2, ε)=q2, δ(q2, a)= Ø, δ(q2, b)= Ø iii) Context Free but not Regular
δ(q3, ε)= Ø, δ(q3, a)= Ø, δ(q3, b)=q2 iv) Recursive but not Context Free
If the initial state is q0, then, δ(q2, aba) is 80. Consider the following languages:
i) {Ø} L1 = {anbncm | m, n >= 0}
ii) {q0, q1, q3}
L2 = {ambncn | m, n >= 0}
iii) {q0, q1, q2}
Which of the following is Context Free?
iv) {q0, q2, q3}
A. L1 ∪ L2
76. Consider the following languages: B. L1 ∩ L2
L1 = {ap|p is a prime number} i) A only
L2 = {anbmc2m | m, n >= 0} ii) B only
L3 = {anbnc2n | n >= 0} iii) Both A & B
L4 = {anbn | n >= 1} iv) None of these
Which of the following is/are correct?
81. Consider the language by the Regular
A. L1 is Context Free but not Regular
Expression (0+1)*(0+1)(0+1)*. The
B. L2 is not Context Free
smallest number of states required by a
C. L3 is not Context Free but Recursive
Deterministic Finite State Automata that
D. L4 is Deterministic Context Free
accepts the language is?
i) A, B & D only
82. Consider the following grammars:
ii) B & C only
S1  aS1b | ε
iii) A & D only
S2  abS2 | ε
iv) C & D only
Which of the following is true?
i) L1, L2 are both Regular 87. Which of the following decision
ii) L1 is Regular but L2 is not Regular problems are undecidable?
iii) L2 is Regular but L1 in not Regular A. Given NFA’s N1 and N2, is L(N1) ∩
iv) Neither L1 or L2 are Regular L(N2) = Ø?
B. Given CFG G = (N, ∑, P, S) and a
83. Consider the following languages: string w ∈ ∑*, whether w ∈ L(G)?
L1: Regular, L2: Context-Free,
C. Given CFG’s G1 and G2, whether
L3: Recursive and L4: Recursively L(G1) = L(G2)?
Enumerable. D. Given a TM M, whether L(M) = Ø?
Which of the following is/are true? i) A & D only
A. ~L1 ∪ L4 is Recursively Enumerable ii) B & C only
B. ~L2 ∪ L3 is Recursive iii) C & D only
C. L1* ∩ L2 is Context Free iv) B & D only
D. L1 ∪ ~L2 is Context Free
i) A only
ii) A & C only 88. Which of the following Regular
iii) A & D only Expressions represent the language – the
iv) A, B & C only set of all binary strings having two
consecutive 0’s and two consecutive 1’s?
84. Consider the following languages: i) (0+1)*0011(0+1)* +
L1 = {anbmcm+n | m, n >= 1} (0+1)*1100(0+1)*
L2 = {anbnc2n | n >= 1} ii) (0+1)*(00(0+1)*11) +
Which of the following is Context Free? (11(0+1)*00)(0+1)*
i) Both L1 & L2 are Context Free iii) (0+1)*00(0+1)* + (0+1)*11(0+1)*
ii) L1 is Context Free but L2 is not
iv) 00(0+1)*11 + 11(0+1)*00
iii) L2 is Context Free but L1 is not
iv) Neither are Context Free 89. Consider the following Context Free
Grammar, G1 & G2, with the production rules:
85. Which of the following grammars are G1 : S  aS| B; B  bB| b
free of left recursion?
G2: S  aA| bB; A  aA| B| ε; B bB|
i) S  AB; A  Aa|b; B  c ε
ii) S  Ab|Bb|c; A  Bd|ε; B  e Which of the following languages are
iii) S  Aa|B; A  Bb|Sc|ε; B c generated by G1 and G2?
iv) S  Ab|Bb|c; A  Bd|ε; B Ae|ε i) {ambn | m>0 or n>0} and {ambn |
86. Consider the Grammar, G, with the m>0 and n >0}
production rule: ii) {ambn | m>0 and n>0} and {ambn | m
S  aS | bS | ε >0 or n=< 0}
Which of the following is generated by G? iii) {ambn | m>=0 or n>0} and {ambn |
i) {anbm | m,n >=0} m>0 and n > 0}
ii) {w ∈ {a, b}*, w has equal number of iv) {ambn | m>= 0 or n>0} and {ambn | m
a’s and b’s} >0 or n>0}
iii) {an |n >=0} ∪ {bn |n >=0} ∪ {anbn |n 90. Consider the following PDA with input
>=0} alphabet ∑ = {a,b}*, states Q = {q0, q1,
iv) {a, b}* q2}, q0 being the initial state and {q0,
q2} are final states, stack symbol Γ = {X, 93. Let L be the language represented by
Z}, with Z being the initial stack symbol. the Regular Expression ∑*0011∑*
The Transition Functions are: where ∑ = {0, 1}. What is the minimum
δ(q0, a, Z)=(q0, XZ), δ(q0, a, X)=(q0, XX), number of states in a DFA that
δ(q0, b, X)=(q1, ε), δ(q1, b, X)=(q1, ε), recognizes ~L (complement of L)?
δ(q1, ε, Z)=(q2, Z) i) 4
Let L be the language accepted by the ii) 5
PDA. Which of the following is true? iii) 6
i) L = {anbn | n>=0} and is not iv) 8
accepted by any Finite Automata
ii) L = {an |n>=0} ∪ {anbn |n>=0} and is 94. Language L1 is polynomial time
not accepted by a Deterministic reducible to L2. Language L3 is
PDA polynomial time reducible to L2, which in
iii) L is not accepted by any Turing turn is polynomial time reducible to L4.
Machine that halts on every input Which of the following is true?
iv) L = {an |n>=0} ∪ {anbn |n>=0} and is A. If L4 ∈ P, then L2 ∈ P
Deterministic Context Free B. If L1 ∈ P and L3 ∈ P, then L2 ∈ P
C. L1 ∈ P if and only if L3 ∈ P
91. X is a Recursive language and Y is a D. If L4 ∈ P, then L1 ∈ P and L3 ∈ P
Recursively Enumerable but not i) B only
recursive language. Let W and Z be two ii) C only
languages such that Y reduces to W and iii) A & D only
Z reduces to X. Which of the following is
iv) A only
true?
i) W can be Recursively Enumerable 95. Which of the following is true?
and Z is Recursive A. The complement of every Turing
ii) W can be Recursive and Z is decidable language is Turing
Recursively Enumerable decidable
iii) W is not Recursively Enumerable B. There exists some language in NP
and Z is Recursive which is not Turing decidable
iv) W is not Recursively Enumerable C. If L is an language in NP, it is Turing
and Z is not Recursive decidable
i) Only B
ii) Only C
92. Which of these languages is Context iii) Only A & B
Free? iv) Only A &C
L1 = {ambnanbm | m, n >0}
L2 = {ambnambn | m, n >0} 96. Which of these languages is Regular?
L3 = {ambn | m=2n+1} L1 = {wxwR | w, x ∈ {a, b}*, |w| & |x|>0},
Which of the following is generated by G? wR is the reverse of string w,
i) L1 and L2 only L2 = {ambn | m≠m, m, n >= 0}
ii) L2 and L3 only L3 = {apbqcr |p, q, r >=0}
iii) L1 and L3 only i) L1 and L3 only
iv) L3 only ii) L2 and L3 only
iii) L1 only
iv) L3 only state, stack alphabet Γ = {0, 1, Z}, with Z
being the initial stack symbol. The
97. Let X1, X2, X3 be strings with the Transition Functions are:
alphabet ∑ ∈ {0, 1}*. They are related as δ(q0, 0, Z)=(q0, 0Z), δ(q0, 1, Z)=(q0, 1Z),
follows: δ(q0, 0/1/ε, Z)=(q1, Z),
X1 = 1X2 δ(q1, 0, 1)=(q1, ε), δ(q1, 1, 0)=(q1, ε),
X2 = 0X2 + 1X3
δ(q1, ε, Z)=(q2, ε)
X3 = 0X2 + ε Which of the following strings must
Which of the following choices precisely follow 101100 such that the overall string
represent the string in X1? is accepted by the automaton?
i) 10(0* + (10)*)1 i) 10110
ii) 10(0* + (10)*)*1 ii) 10010
iii) 1(0 + 10)*1 iii) 01010
iv) 10(0* + (10)*)*1 + 110(0 + 10)*1 iv) 01001
98.Let L be the language represented by 102. Which of the following problems is/are
the Regular Expression (0+1)*(10). undecidable?
What is the number of states in a
i) Deciding if a CFG is ambiguous
minimal DFA that recognizes L? ii) Deciding if a given string is
99. Let L1 be a Context Free Language and generated by a given CFG
L2 be a Recursively Enumerable but not iii) Deciding if the language generated
recursive language. Which of the by a given CFG is empty
following is/are necessarily true? iv) Deciding if the language generated
A. ~L1 (complement of L1) is recursive
by a given CFG is finite
B. ~L2 (complement of L2) is recursive
C. ~L1 is Context Free 103. Consider the following languages over
D. ~L1 ∪ L2 is recursively enumerable alphabet ∑ ∈ {0, 1, c}.
i) A only L1 = {wcwR}, wR is the reverse of string w
ii) C only L2 = {wwR}
iii) C & D only L3 = {0n1n |n >=0}
iv) A & D only Which of the languages are Deterministic
Context Free languages?
100. The Transition Functions for DFA M & i) None of these
N are given below: ii) L3 only
M: δ(q0, b)=q0, δ(q0, a)=q1, iii) L1 & L3 only
δ(q1, a)=q1, δ(q1, b)=q0
iv) All of them
M: δ(q0, a)=q0, δ(q0, b)=q1,
δ(q1, b)=q1, δ(q1, a)=q0 104. Length of the shortest string (∑ ∈ {a,
where q0 is the initial state and q1 is the b}) NOT in the following Regular Expression is
final state for both DFA. The number of ___:
states for a minimal DFA that accepts a*b*(ba)*a*
L(M) ∩ L(N) is? 105. If L1 = {an | n>=0} and L2 = {bn | n >=
101. Consider the following PDA with input 0}, then consider
alphabet ∑ = {0,1}, states Q = {q0, q1, A. L1.L2 is a Regular Language
q2}, q0 the initial state and {q2} final B. L1.L2 = {an bn | n>=0}
Which of the following is CORRECT? (011)’s} and L2 = {w ∈ {0, 1}*| w has
i) A only at least as many occurrences of
ii) B only (000)’s as (111)’s}, then which of the
iii) Both A & B following is Correct?
iv) None of these i) L1 is regular but not L2
ii) L2 is regular but not L1
106. Language A <m B denotes that
iii) Both of them are regular
language A is mapping reducible to iv) None of them are regular
language B. Which of the following is
FALSE? 108. Which of the following is true?
i) If A < m B and B is recursive then A is i) Language L = {an bn | n>=0} is
recursive regular
ii) If A < m B and B is undecidable then ii) Language L = {ap | p is a prime
A is undecidable number} is regular
iii) If A < m B and B is recursively iii) Language L = {w | w has 3k+1 b’s,
enumerable then A is recursively where k ∈ N and w ∈ {a, b} } is
enumerable regular
iv) If A < m B and B is not recursively
enumerable then A is not Language L = {ww | w ∈ {0, 1} } is
recursively enumerable regular

107. If L1 = {w ∈ {0, 1}*| w has at least as


many occurrences of (110)’s as

You might also like