MCQ Automata Unit-1
MCQ Automata Unit-1
MCQ Automata Unit-1
This set of Automata Theory Multiple Choice Questions & Answers (MCQs) focuses on “Finite
Automata-Introduction”.
1. Assume the R is a relation on a set A, aRb is partially ordered such that a and b are _____________
a) reflexive
b) transitive
c) symmetric
d) reflexive and transitive
View Answer
Answer: d
Explanation: A partially ordered relation refers to one which is Reflexive, Transitive and Antisymmetric.
advertisement
2. The non- Kleene Star operation accepts the following string of finite length over set A = {0,1} | where
string s contains even number of 0 and 1
a) 01,0011,010101
b) 0011,11001100
c) ε,0011,11001100
d) ε,0011,11001100
View Answer
Answer: b
Explanation: The Kleene star of A, denoted by A*, is the set of all strings obtained by concatenating
zero or more strings from A.
3. A regular language over an alphabet ∑ is one that cannot be obtained from the basic languages
using the operation
a) Union
b) Concatenation
c) Kleene*
d) All of the mentioned
View Answer
Answer: d
Explanation: Union, Intersection, Concatenation, Kleene*, Reverse are all the closure properties of
Regular Language.
4. Statement 1: A Finite automata can be represented graphically; Statement 2: The nodes can be its
states; Statement 3: The edges or arcs can be used for transitions
Hint: Nodes and Edges are for trees and forests too.
https://www.sanfoundry.com/automata-theory-questions-answers-finite-automata-introduction/ 1/3
8/27/2019 Finite Automata Theory Questions and Answers - Sanfoundry
5. The minimum number of states required to recognize an octal number divisible by 3 are/is
a) 1
b) 3
c) 5
d) 7
View Answer
Answer: b
Explanation: According to the question, minimum of 3 states are required to recognize an octal number
divisible by 3.
advertisement
7. If an Infinite language is passed to Machine M, the subsidiary which gives a finite solution to the
infinite input tape is ______________
a) Compiler
b) Interpreter
c) Loader and Linkers
d) None of the mentioned
View Answer
Answer: a
Explanation: A Compiler is used to give a finite solution to an infinite phenomenon. Example of an
infinite phenomenon is Language C, etc.
https://www.sanfoundry.com/automata-theory-questions-answers-finite-automata-introduction/ 2/3
8/27/2019 Finite Automata Theory Questions and Answers - Sanfoundry
8. The number of elements in the set for the Language L={xϵ(∑r) *|length if x is at most 2} and ∑={0,1}
is_________
a) 7
b) 6
c) 8
d) 5
View Answer
Answer: a
Explanation: ∑r= {1,0} and a Kleene* operation would lead to the following
set=COUNT{ε,0,1,00,11,01,10} =7.
9. For the following change of state in FA, which of the following codes is an incorrect option?
a) δ (m, 1) =n
b) δ (0, n) =m
c) δ (m,0) =ε
d) s: accept = false; cin >> char;
if char = “0” goto n;
View Answer
Answer: b
Explanation: δ(QX∑) = Q1 is the correct representation of change of state. Here, δ is called the
Transition function.
advertisement
https://www.sanfoundry.com/automata-theory-questions-answers-finite-automata-introduction/ 3/3
8/27/2019 Moore Machine - Automata Theory Questions and Answers - Sanfoundry
This set of Automata Theory Multiple Choice Questions & Answers (MCQs) focuses on “Moore
Machine”.
advertisement
3. For a give Moore Machine, Given Input=’101010’, thus the output would be of length:
a) |Input|+1
b) |Input|
c) |Input-1|
d) Cannot be predicted
View Answer
Answer: a
Explanation: Initial state, from which the operations begin is also initialized with a value.
https://www.sanfoundry.com/automata-theory-questions-answers-moore-machine/ 1/4
8/27/2019 Moore Machine - Automata Theory Questions and Answers - Sanfoundry
5. The total number of states and transitions required to form a moore machine that will produce
residue mod 3.
a) 3 and 6
b) 3 and 5
c) 2 and 4
d) 2 and 5
View Answer
Answer: a
Explanation:
advertisement
Present State
Next State
Output
0
1
https://www.sanfoundry.com/automata-theory-questions-answers-moore-machine/ 2/4
8/27/2019 Moore Machine - Automata Theory Questions and Answers - Sanfoundry
Q0
Q1
Q2
1
Q1
Q2
1
Q2
Q0
a) Q0, Q2, 0
b) Q0, Q2, 1
c) Q1, Q2, 1
d) Q1, Q0, 0
View Answer
Answer: a
Explanation: The table can be filled accordingly seeing the graph.
advertisement
https://www.sanfoundry.com/automata-theory-questions-answers-moore-machine/ 3/4
8/27/2019 Moore Machine - Automata Theory Questions and Answers - Sanfoundry
https://www.sanfoundry.com/automata-theory-questions-answers-moore-machine/ 4/4
8/27/2019 Mealy Machine - Automata Theory Questions and Answers - Sanfoundry
This set of Automata Theory Multiple Choice Questions & Answers (MCQs) focuses on “Mealy
Machine”.
advertisement
a) 9’s Complement
b) 2’s Complement
c) 1’s Complement
d) 10’s Complement
View Answer
https://www.sanfoundry.com/automata-theory-questions-answers-mealy-machine/ 1/3
8/27/2019 Mealy Machine - Automata Theory Questions and Answers - Sanfoundry
Answer: b
Explanation: The input can be taken in form of a binary string and can be verified.
advertisement
5.The ratio of number of input to the number of output in a mealy machine can be given as:
a) 1
b) n: n+1
c) n+1: n
d) None of the mentioned
View Answer
Answer: a
Explanation: The number of output here follows the transitions in place of states as in Moore machine.
https://www.sanfoundry.com/automata-theory-questions-answers-mealy-machine/ 2/3
8/27/2019 Mealy Machine - Automata Theory Questions and Answers - Sanfoundry
advertisement
a) 9’s Complement
b) 2’s Complement
c) 1’s Complement
d) 10’s Complement
View Answer
Answer: c
Explanation: Inputs can be taken and can be verified.
https://www.sanfoundry.com/automata-theory-questions-answers-mealy-machine/ 3/3
8/27/2019 Mealy Machine Questions and Answers - Sanfoundry
This set of Automata Theory Multiple Choice Questions & Answers (MCQs) focuses on “Mealy
Machine-II”.
1. Which of the following does not belong to input alphabet if S={a, b}* for any language?
a) a
b) b
c) e
d) none of the mentioned
View Answer
Answer: c
Explanation: The automaton may be allowed to change its state without reading the input symbol using
epsilon but this does not mean that epsilon has become an input symbol. On the contrary, one
assumes that the symbol epsilon does not belong to any alphabet.
advertisement
https://www.sanfoundry.com/automata-theory-questions-answers-mealy-machine-1/ 1/5
8/27/2019 Mealy Machine Questions and Answers - Sanfoundry
advertisement
https://www.sanfoundry.com/automata-theory-questions-answers-mealy-machine-1/ 2/5
8/27/2019 Mealy Machine Questions and Answers - Sanfoundry
a) 0
b) 1
c) 2
d) 3
View Answer
Answer: c
Explanation: The epsilon closure set of f2 consist of the elements:{f2, f3}. Thus the count of the
element in the closure set is 2.
https://www.sanfoundry.com/automata-theory-questions-answers-mealy-machine-1/ 3/5
8/27/2019 Mealy Machine Questions and Answers - Sanfoundry
advertisement
8. Which of the steps are non useful while eliminating the e-transitions for the given diagram?
9. Is the language preserved in all the steps while eliminating epsilon transitions from a NFA?
a) yes
b) no
View Answer
Answer: a
Explanation: Yes, the language is preserved during the dteps of construction: L(N)=L(N1)=L(N2)=L(3).
10. Remove all the epsilon transitions in the given diagram and compute the number of a-transitions in
the result?
https://www.sanfoundry.com/automata-theory-questions-answers-mealy-machine-1/ 4/5
8/27/2019 Mealy Machine Questions and Answers - Sanfoundry
a) 5
b) 7
c) 9
d) 6
View Answer
Answer: b
Explanation:
https://www.sanfoundry.com/automata-theory-questions-answers-mealy-machine-1/ 5/5
8/27/2019 Automata Theory Interview Questions and Answers - Sanfoundry
This set of Automata Theory Interview Questions and Answers focuses on “Deterministic Finite
Automata-Introduction and Definition”.
advertisement
https://www.sanfoundry.com/automata-theory-interview-questions-answers/ 1/5
8/27/2019 Automata Theory Interview Questions and Answers - Sanfoundry
advertisement
https://www.sanfoundry.com/automata-theory-interview-questions-answers/ 2/5
8/27/2019 Automata Theory Interview Questions and Answers - Sanfoundry
a) ababaabaa
b) abbbaa
c) abbbaabb
d) abbaabbaa
View Answer
Answer: a
Explanation: All the Strings are getting accepted except ‘ababaabaa’ as it is directed to dumping state.
Dumping state also refers to the reject state of the automata.
advertisement
https://www.sanfoundry.com/automata-theory-interview-questions-answers/ 3/5
8/27/2019 Automata Theory Interview Questions and Answers - Sanfoundry
a) ε
b) 11010
c) 10001010
d) String of letter count 11
View Answer
Answer: a
Explanation: As the initial state is not made an acceptance state, thus ε will not be accepted by the
given DFA. For the automata to accept ε as an entity, one should make the initial state as also the final
state.
https://www.sanfoundry.com/automata-theory-interview-questions-answers/ 4/5
8/27/2019 Automata Theory Interview Questions and Answers - Sanfoundry
Answer: b
Explanation: Language to accept a palindrome number or string will be non-regular and thus, its DFA
cannot be obtained. Though, PDA is possible.
10. Which of the following is not an example of finite state machine system?
a) Control Mechanism of an elevator
b) Combinational Locks
c) Traffic Lights
d) Digital Watches
View Answer
Answer: d
Explanation: Proper and sequential combination of events leads the machines to work in hand which
includes The elevator, Combinational Locks, Traffic Lights, vending machine, etc. Other applications of
Finite machine state system are Communication Protocol Design, Artificial Intelligence Research, A
Turnstile, etc.
https://www.sanfoundry.com/automata-theory-interview-questions-answers/ 5/5
8/27/2019 DFA Processing Strings - Automata Theory Questions and Answers - Sanfoundry
This set of Automata Theory Multiple Choice Questions & Answers (MCQs) focuses on “DFA
Processing Strings”.
1. The password to the admins account=”administrator”. The total number of states required to make
a password-pass system using DFA would be __________
a) 14 states
b) 13 states
c) 12 states
d) A password pass system cannot be created using DFA
View Answer
Answer: a
Explanation: For a string of n characters with no repetitive substrings, the number of states required to
pass the string is n+1.
advertisement
3. Let ∑= {a, b, …. z} and A = {Hello, World}, B= {Input, Output}, then (A*∩B) U (B*∩A) can be
represented as:
a) {Hello, World, Input, Output, ε}
b) {Hello, World, ε}
c) {Input, Output, ε}
d) {}
View Answer
Answer: d
Explanation: Union operation creates the universal set by combining all the elements of first and
second set while intersection operation creates a set of common elements of the first and the second
state.
4. Let the given DFA consist of x states. Find x-y such that y is the number of states on minimization of
DFA?
a) 3
b) 2
c) 1
d) 4
View Answer
Answer: b
Explanation: Use the equivalence theorem or Myphill Nerode theorem to minimize the DFA.
advertisement
https://www.sanfoundry.com/automata-theory-questions-answers-dfa-processing-strings/ 2/5
8/27/2019 DFA Processing Strings - Automata Theory Questions and Answers - Sanfoundry
5. For a machine to surpass all the letters of alphabet excluding vowels, how many number of states in
DFA would be required?
a) 3
b) 2
c) 22
d) 27
View Answer
Answer: a
Explanation:
https://www.sanfoundry.com/automata-theory-questions-answers-dfa-processing-strings/ 3/5
8/27/2019 DFA Processing Strings - Automata Theory Questions and Answers - Sanfoundry
advertisement
8. Given:
L= {xϵ∑= {0,1} |x=0n1n for n>=1}; Can there be a DFA possible for the language?
a) Yes
b) No
View Answer
Answer: b
Explanation: It is not possible to have a count of equal number of 0 and 1 at any instant in DFA. Thus,
It is not possible to build a DFA for the given Language.
9. δ(A,1) = B, δ(A,0) =A
Δ (B, (0,1)) =C
δ(C,0) = A (Initial state =A)
String=”011001” is transit at which of the states?
a) A
b) C
c) B
d) Invalid String
View Answer
Answer: a
Explanation: It is east and simple to create the table and then the corresponding transition graph in
order to get the result, at which state the given string would be accepted.
https://www.sanfoundry.com/automata-theory-questions-answers-dfa-processing-strings/ 4/5
8/27/2019 DFA Processing Strings - Automata Theory Questions and Answers - Sanfoundry
https://www.sanfoundry.com/automata-theory-questions-answers-dfa-processing-strings/ 5/5
8/27/2019 Simpler Notations - Automata Theory Questions and Answers - Sanfoundry
This set of Automata Theory Multiple Choice Questions & Answers (MCQs) focuses on “Simpler
Notations”.
1.Given Language: L= {xϵ∑= {a, b} |x has a substring ‘aa’ in the production}. Which of the
corresponding representation notate the same?
a)
advertisement
b)
c)
d)
View Answer
Answer: a
Explanation: The states transited has been written corresponding to the transitions as per the row and
column. The row represents the transitions made and the ultimate.
2.Let u=’1101’, v=’0001’, then uv=11010001 and vu= 00011101.Using the given information what is the
identity element for the string?
a) u-1
b) v-1
c) u-1v-1
d) ε
View Answer
Answer: d
Explanation: Identity relation: εw = wε = w, thus the one satisfying the given relation will be the identity
element.
https://www.sanfoundry.com/automata-theory-questions-answers-simpler-notations/ 1/5
8/27/2019 Simpler Notations - Automata Theory Questions and Answers - Sanfoundry
advertisement
a) 0101011
b) 0101010
c) 010100
d) 100001
View Answer
Answer: c
Explanation: The given DFA notation accepts the string of even length and prefix ‘01’.
4.Predict the following step in the given bunch of steps which accepts a strings which is of even length
and has a prefix=’01’
δ (q0, ε) =q0 < δ(q0,0) =δ (δ (q0, ε),0) =δ(q0,0) =q1 < _______________
a) δ (q0, 011) =δ (δ (q0,1), 1) =δ (q2, 1) =q3
b) δ (q0, 01) =δ (δ (q0, 0), 1) = δ (q1, 1) =q2
c) δ (q0, 011) =δ (δ (q01, 1), 1) =δ (q2, 0) =q3
d) δ (q0, 0111) =δ (δ (q0, 011), 0) = δ (q3, 1) =q2
View Answer
Answer: b
Explanation: Here, δ refers to transition function and results into new state or function when an
transition is performed over its state.
a) Q0
b) Q1
c) Q2
d) No Transition
View Answer
https://www.sanfoundry.com/automata-theory-questions-answers-simpler-notations/ 2/5
8/27/2019 Simpler Notations - Automata Theory Questions and Answers - Sanfoundry
Answer: Q1
Explanation: The tabular representation of DFA is quite readable and can be used to some ore
complex problems. Here, we need to form the transition graph and fill up the given blank.
6.Which among the following is the missing transition in the given DFA?
L= {xϵ∑= {a, b} | x starts with a and ends with b}
a) δ (q0, a) =q0
b) δ (F, a) =q1
c) δ (F, a) =D
d) δ (q1, a) =D
View Answer
Answer: b
Explanation: For the given Language, the transition missing is δ (F, a) =q1.
advertisement
7.The complement of a language will only be defined when and only when the __________ over the
language is defined.
a) String
b) Word
c) Alphabet
d) Grammar
View Answer
Answer: c
Explanation: It is not possible to define the complement of a language without defining the input
alphabets. Example: A language which does not consist of substring ‘ab’ while the complement would
be the language which does contain a substring ‘ab’.
https://www.sanfoundry.com/automata-theory-questions-answers-simpler-notations/ 3/5
8/27/2019 Simpler Notations - Automata Theory Questions and Answers - Sanfoundry
9.Which among the following states would be notated as the final state/acceptance state?
L= {xϵ∑= {a, b} | length of x is 2}
a) q1
b) q2
c) q1, q2
d) q3
View Answer
Answer: b
Explanation: According to the given language, q2 Is to become the final/acceptance state in order to
satisfy.
10.Which of the following are the final states in the given DFA according to the Language given.?
L= {xϵ∑= {a, b} |length of x is at most 2}
https://www.sanfoundry.com/automata-theory-questions-answers-simpler-notations/ 4/5
8/27/2019 Simpler Notations - Automata Theory Questions and Answers - Sanfoundry
a) q0, q1
b) q0, q2
c) q1, q2
d) q0, q1, q2
View Answer
Answer: d
Explanation: According to the given language, the length is at most 2, thus the answer is found
accordingly.
https://www.sanfoundry.com/automata-theory-questions-answers-simpler-notations/ 5/5
8/27/2019 DFA Language - Automata Theory Questions and Answers - Sanfoundry
This set of Automata Theory Multiple Choice Questions & Answers (MCQs) focuses on “The
Language of DFA”
advertisement
https://www.sanfoundry.com/automata-theory-questions-answers-the-language-dfa/ 1/4
8/27/2019 DFA Language - Automata Theory Questions and Answers - Sanfoundry
advertisement
5. For a DFA accepting binary numbers whose decimal equivalent is divisible by 4, what are all the
possible remainders?
a) 0
b) 0,2
c) 0,2,4
d) 0,1,2,3
View Answer
Answer: d
Explanation: All the decimal numbers on division would lead to only 4 remainders i.e. 0,1,2,3 (Property
of Decimal division).
6. Which of the following x is accepted by the given DFA (x is a binary string ∑= {0,1})?
a) divisible by 3
b) divisible by 2
c) divisible by 2 and 3
d) divisible by 3 and 2
View Answer
https://www.sanfoundry.com/automata-theory-questions-answers-the-language-dfa/ 2/4
8/27/2019 DFA Language - Automata Theory Questions and Answers - Sanfoundry
Answer: d
Explanation: The given DFA accepts all the binary strings such that they are divisible by 3 and 2.Thus,
it can be said that it also accepts all the strings which is divisible by 6.
7. Given:
L1= {xϵ ∑*|x contains even no’s of 0’s}
L2= {xϵ ∑*|x contains odd no’s of 1’s}
No of final states in Language L1 U L2?
a) 1
b) 2
c) 3
d) 4
View Answer
Answer: c
Explanation:
advertisement
8. The maximum number of transition which can be performed over a state in a DFA?
∑= {a, b, c}
a) 1
b) 2
c) 3
d) 4
View Answer
Answer: c
Explanation: The maximum number of transitions which a DFA allows for a language is the number of
elements the transitions constitute.
https://www.sanfoundry.com/automata-theory-questions-answers-the-language-dfa/ 3/4
8/27/2019 DFA Language - Automata Theory Questions and Answers - Sanfoundry
9. The maximum sum of in degree and out degree over a state in a DFA can be determined as:
∑= {a, b, c, d}
a) 4+4
b) 4+16
c) 4+0
d) depends on the Language
View Answer
Answer: d
Explanation: The out degree for a DFA I fixed while the in degree depends on the number of states in
the DFA and that cannot be determined without the dependence over the Language.
10. The sum of minimum and maximum number of final states for a DFA n states is equal to:
a) n+1
b) n
c) n-1
d) n+2
View Answer
Answer: a
Explanation: The maximum number of final states for a DFA can be total number of states itself and
minimum would always be 1, as no DFA exits without a final state. Therefore, the solution is n+1.
https://www.sanfoundry.com/automata-theory-questions-answers-the-language-dfa/ 4/4
8/27/2019 Finite Automata Interview Questions and Answers - Sanfoundry
This set of Automata Theory Multiple Choice Questions & Answers (MCQs) focuses on “Regular
Language & Expression”.
advertisement
5. δ*(q,ya) is equivalent to .
a) δ((q,y),a)
b) δ(δ*(q,y),a)
c) δ(q,ya)
d) independent from δ notation
View Answer
Answer:b
Explanation: First it parse y string after that it parse a.
advertisement
7. Languages of a automata is
a) If it is accepted by automata
b) If it halts
c) If automata touch final state in its life time
d) All language are language of automata
View Answer
Answer:a
Explanation: If a string accepted by automata it is called language of automata.
https://www.sanfoundry.com/automata-theory-mcqs-finite-automata/ 2/4
8/27/2019 Finite Automata Interview Questions and Answers - Sanfoundry
11. Regular expression for all strings starts with ab and ends with bba is.
a) aba*b*bba
b) ab(ab)*bba
c) ab(a+b)*bba
d) All of the mentioned
View Answer
Answer:c
Explanation: Starts with ab then any number of a or b and ends with bba.
12. How many DFA’s exits with two states over input alphabet {0,1} ?
a) 16
b) 26
c) 32
d) 64
View Answer
Answer:d
Explanation: Number of DFA’s = 2n * n(2*n).
advertisement
https://www.sanfoundry.com/automata-theory-mcqs-finite-automata/ 3/4
8/27/2019 Finite Automata Interview Questions and Answers - Sanfoundry
14. Number of states require to simulate a computer with memory capable of storing ‘3’ words each of
length ‘8’.
a) 3 * 28
b) 2(3*8)
c) 2(3+8)
d) None of the mentioned
View Answer
Answer:b
Explanation: 2(m*n) states requires .
15. FSM with output capability can be used to add two given integer in binary representation. This is
a) True
b) False
c) May be true
d) None of the mentioned
View Answer
Answer:a
Explanation: Use them as a flip flop output .
https://www.sanfoundry.com/automata-theory-mcqs-finite-automata/ 4/4
8/27/2019 Non Deterministic Finite Automata Theory Questions and Answers - Sanfoundry
This set of Automata Theory Multiple Choice Questions & Answers (MCQs) focuses on “Non
Deterministic Finite Automata – Introduction”
advertisement
https://www.sanfoundry.com/automata-theory-questions-answers-non-deterministic-finite-automata-introduction/ 1/4
8/27/2019 Non Deterministic Finite Automata Theory Questions and Answers - Sanfoundry
4. If NFA of 6 states excluding the initial state is converted into DFA, maximum possible number of
states for the DFA is ?
a) 64
b) 32
c) 128
d) 127
View Answer
Answer: c
Explanation: The maximum number of sets for DFA converted from NFA would be not greater than 2n.
advertisement
https://www.sanfoundry.com/automata-theory-questions-answers-non-deterministic-finite-automata-introduction/ 2/4
8/27/2019 Non Deterministic Finite Automata Theory Questions and Answers - Sanfoundry
8. The construction time for DFA from an equivalent NFA (m number of node)is:
a) O(m2)
b) O(2m)
c) O(m)
d) O(log m)
View Answer
Answer: b
Explanation: From the coded NFA-DFA conversion.
9. If n is the length of Input string and m is the number of nodes, the running time of DFA is x that of
NFA.Find x?
a) 1/m2
b) 2m
c) 1/m
d) log m
View Answer
Answer: a
Explanation: Running time of DFA: O(n) and Running time of NFA =O(m2n).
advertisement
https://www.sanfoundry.com/automata-theory-questions-answers-non-deterministic-finite-automata-introduction/ 3/4
8/27/2019 Non Deterministic Finite Automata Theory Questions and Answers - Sanfoundry
https://www.sanfoundry.com/automata-theory-questions-answers-non-deterministic-finite-automata-introduction/ 4/4
8/27/2019 Extended Transition Function - Automata Theory Questions and Answers - Sanfoundry
This set of Automata Theory Multiple Choice Questions & Answers (MCQs) focuses on “Extended
Transition Function”.
advertisement
a) Correct
b) Incorrect, Incomplete DFA
c) Wrong proposition
d) May be correct
View Answer
Answer: c
Explanation: The given figure is an NFA. The statement contradicts itself.
https://www.sanfoundry.com/automata-theory-questions-answers-extended-transition-function/ 1/4
8/27/2019 Extended Transition Function - Automata Theory Questions and Answers - Sanfoundry
4. If δ is the transition function for a given NFA, then we define the δ’ for the DFA accepting the same
language would be:
Note: S is a subset of Q and a is a symbol.
a) δ’ (S, a) =Upϵs δ (p, a)
b) δ’ (S, a) =Up≠s δ (p, a)
c) δ’ (S, a) =Upϵs δ(p)
d) δ’ (S) =Up≠s δ(p)
View Answer
Answer: a
Explanation: According to subset construction, equation 1 holds true.
5. What is the relation between DFA and NFA on the basis of computational power?
a) DFA > NFA
b) NFA > DFA
c) Equal
d) Can’t be said
View Answer
Answer: c
Explanation: DFA is said to be a specific case of NFA and for every NFA that exists for a given
language, an equivalent DFA also exists.
advertisement
6. If a string S is accepted by a finite state automaton, S=s1s2s3……sn where siϵ∑ and there exists a
sequence of states r0, r1, r2…… rn such that δ(r(i), si+1) =ri+1 for each 0, 1, …n-1, then r(n) is:
a) initial state
b) transition symbol
c) accepting state
d) intermediate state
View Answer
Answer: c
Explanation: r(n) is the final state and accepts the string S after the string being traversed through r(i)
other states where I ϵ 01,2…(n-2).
7. According to the given table, compute the number of transitions with 1 as its symbol but not 0:
a) 4
b) 3
https://www.sanfoundry.com/automata-theory-questions-answers-extended-transition-function/ 2/4
8/27/2019 Extended Transition Function - Automata Theory Questions and Answers - Sanfoundry
c) 2
d) 1
View Answer
Answer: d
Explanation: The transition graph is made and thus the answer can be found.
a) {q0}
b) {q1} U {q0, q1, q2}
c) {q2, q1}
d) {q3, q1, q2, q0}
View Answer
Answer: b
Explanation: δ*(q0,011) = Urϵδ*(q0,01) δ (r, 1) = {q0, q1, q2}.
a) 6
b) 5
https://www.sanfoundry.com/automata-theory-questions-answers-extended-transition-function/ 3/4
8/27/2019 Extended Transition Function - Automata Theory Questions and Answers - Sanfoundry
c) 4
d) 7
View Answer
Answer: a
Explanation: According to the question, presence of q2 or q1 would count so it does and the answer
according to the diagram is 6.
1.Δ(Q0, ε) ={Q0},
2.Δ(Q0, 01) = {Q0, Q1}
3.δ(Q0, 010) =?
advertisement
https://www.sanfoundry.com/automata-theory-questions-answers-extended-transition-function/ 4/4
8/27/2019 NFA Language - Automata Theory Questions and Answers - Sanfoundry
This set of Automata Theory Multiple Choice Questions & Answers (MCQs) focuses on “The
Language of NFA”.
advertisement
2. Given Language:
Ln= {xϵ {0,1} * | |x|≥n, nth symbol from the right in x is 1}
How many state are required to execute L3 using NFA?
a) 16
b) 15
c) 8
d) 7
View Answer
Answer: b
Explanation: The finite automaton for the given language is made and thus, the answer can be
obtained.
https://www.sanfoundry.com/automata-theory-questions-answers-the-language-nfa/ 1/4
8/27/2019 NFA Language - Automata Theory Questions and Answers - Sanfoundry
4. The number of transitions required to convert the following into equivalents DFA:
a) 2
b) 3
c) 1
d) 0
View Answer
Answer: a
Explanation:
advertisement
https://www.sanfoundry.com/automata-theory-questions-answers-the-language-nfa/ 2/4
8/27/2019 NFA Language - Automata Theory Questions and Answers - Sanfoundry
advertisement
https://www.sanfoundry.com/automata-theory-questions-answers-the-language-nfa/ 3/4
8/27/2019 NFA Language - Automata Theory Questions and Answers - Sanfoundry
10. Which of the following recognizes the same formal language as of DFA and NFA?
a) Power set Construction
b) Subset Construction
c) Robin-Scott Construction
d) All of the mentioned
View Answer
Answer: d
Explanation: All the three option refers to same technique if distinguishing similar constructions for
different type of automata.
https://www.sanfoundry.com/automata-theory-questions-answers-the-language-nfa/ 4/4
8/27/2019 Equivalence of NFA & DFA - Automata Theory Questions and Answers - Sanfoundry
This set of Automata Theory Multiple Choice Questions & Answers (MCQs) focuses on “Equivalence
of NFA and DFA”.
advertisement
2. It is less complex to prove the closure properties over regular languages using
a) NFA
b) DFA
c) PDA
d) Can’t be said
View Answer
Answer: a
Explanation: We use the construction method to prove the validity of closure properties of regular
languages. Thus, it can be observe, how tedious and complex is the construction of a DFA as
compared to an NFA with respect to space.
https://www.sanfoundry.com/automata-theory-questions-answers-equivalence-nfa-dfa/ 1/4
8/27/2019 Equivalence of NFA & DFA - Automata Theory Questions and Answers - Sanfoundry
4. John is asked to make an automaton which accepts a given string for all the occurrence of ‘1001’ in
it. How many number of transitions would John use such that, the string processing application works?
a) 9
b) 11
c) 12
d) 15
View Answer
Answer: a
Explanation:
advertisement
6. Which among the following can be an example of application of finite state machine(FSM)?
a) Communication Link
b) Adder
c) Stack
d) None of the mentioned
View Answer
Answer: a
Explanation: Idle is the state when data in form of packets is send and returns if NAK is received else
waits for the NAK to be received.
https://www.sanfoundry.com/automata-theory-questions-answers-equivalence-nfa-dfa/ 2/4
8/27/2019 Equivalence of NFA & DFA - Automata Theory Questions and Answers - Sanfoundry
c) State charts
d) None of the mentioned
View Answer
Answer: d
Explanation: Finite state automation is used in Lexical Analyser, Computer BOT (used in games), State
charts, etc.
advertisement
9. Predict the number of transitions required to automate the following language using only 3 states:
L= {w | w ends with 00}
a) 3
b) 2
https://www.sanfoundry.com/automata-theory-questions-answers-equivalence-nfa-dfa/ 3/4
8/27/2019 Equivalence of NFA & DFA - Automata Theory Questions and Answers - Sanfoundry
c) 4
d) Cannot be said
View Answer
Answer: a
Explanation:
10. The total number of states to build the given language using DFA:
L= {w | w has exactly 2 a’s and at least 2 b’s}
a) 10
b) 11
c) 12
d) 13
View Answer
Answer: a
Explanation: We need to make the number of a as fixed i.e. 2 and b can be 2 or more. Thus, using this
condition a finite automata can be created using 1 states.
https://www.sanfoundry.com/automata-theory-questions-answers-equivalence-nfa-dfa/ 4/4
8/27/2019 DFA Applications - Automata Theory Questions and Answers - Sanfoundry
This set of Automata Theory Multiple Choice Questions & Answers (MCQs) focuses on “Applications
of DFA”.
advertisement
3. Let L be a language whose FA consist of 5 acceptance states and 11 non final states. It further
consists of a dumping state. Predict the number of acceptance states in Lc .
a) 16
b) 11
c) 5
d) 6
View Answer
Answer: a
Explanation: If L leads to FA1, then for Lc , the FA can be obtained by exchanging the final and non-
final states.
https://www.sanfoundry.com/automata-theory-questions-answers-aplications-dfa/ 1/4
8/27/2019 DFA Applications - Automata Theory Questions and Answers - Sanfoundry
advertisement
6. Which among the following NFA’s is correct corresponding to the given Language?
L= {xϵ {0, 1} | 3rd bit from right is 0}
a)
b)
https://www.sanfoundry.com/automata-theory-questions-answers-aplications-dfa/ 2/4
8/27/2019 DFA Applications - Automata Theory Questions and Answers - Sanfoundry
c)
https://www.sanfoundry.com/automata-theory-questions-answers-aplications-dfa/ 3/4
8/27/2019 DFA Applications - Automata Theory Questions and Answers - Sanfoundry
advertisement
9. Let N (Q, ∑, δ, q0, A) be the NFA recognizing a language L. Then for a DFA (Q’, ∑, δ’, q0’, A’), which
among the following is true?
a) Q’ = P(Q)
b) Δ’ = δ’ (R, a) = {q ϵ Q | q ϵ δ (r, a), for some r ϵ R}
c) Q’={q0}
d) All of the mentioned
View Answer
Answer: d
Explanation: All the optioned mentioned are the instruction formats of how to convert a NFA to a DFA.
10. There exists an initial state, 17 transition states, 7 final states and one dumping state, Predict the
maximum number of states in its equivalent DFA?
a) 226
b) 224
c) 225
d) 223
View Answer
Answer: a
Explanation: The maximum number of states an equivalent DFA can comprise for its respective NFA
with k states will be 2k .
https://www.sanfoundry.com/automata-theory-questions-answers-aplications-dfa/ 4/4
8/27/2019 NFA Applications - Automata Theory Questions and Answers - Sanfoundry
This set of Automata Theory Multiple Choice Questions & Answers (MCQs) focuses on “Applications
of NFA”.
advertisement
2. It is less complex to prove the closure properties over regular languages using:
a) NFA
b) DFA
c) PDA
d) Can’t be said
View Answer
Answer: a
Explanation: None.
4. John is asked to make an automaton which accepts a given string for all the occurrence of ‘1001’ in
it. How many number of transitions would John use such that, the string processing application works?
a) 9
https://www.sanfoundry.com/automata-theory-questions-answers-applications-nfa/ 1/3
8/27/2019 NFA Applications - Automata Theory Questions and Answers - Sanfoundry
b) 11
c) 12
d) 15
View Answer
Answer: a
Explanation: None.
advertisement
6. Which among the following can be an example of application of finite state machine(FSM)?
a) Communication Link
b) Adder
c) Stack
d) None of the mentioned
View Answer
Answer: a
Explanation: Idle is the state when data in form of packets is send and returns if NAK is received else
waits for the NAK to be received.
advertisement
https://www.sanfoundry.com/automata-theory-questions-answers-applications-nfa/ 2/3
8/27/2019 NFA Applications - Automata Theory Questions and Answers - Sanfoundry
9. Predict the number of transitions required to automate the following language using only 3 states:
L= {w | w ends with 00}
a) 3
b) 2
c) 4
d) Cannot be said
View Answer
Answer: a
Explanation: None.
10. The total number of states to build the given language using DFA:
L= {w | w has exactly 2 a’s and at least 2 b’s}
a) 10
b) 11
c) 12
d) 13
View Answer
Answer: a
Explanation: We need to make the number of a as fixed i.e. 2 and b can be 2 or more. Thus, using this
condition a finite automata can be created using 1 states.
https://www.sanfoundry.com/automata-theory-questions-answers-applications-nfa/ 3/3