Collective PDF
Collective PDF
FINALTERM EXAMINATION
Fall 2012
CS402- Theory of Automata
Question No: 1 ( Marks: 1 ) - Please choose one
If Σ = {aa, bb} , then Σ* will not contain
►aaabbb
►aabbbb
►aabbaa
►bbaabbbb
1
Question No: 4 ( Marks: 1 ) - Please choose one
2
Question No: 9 ( Marks: 1 ) - Please choose one
If the FA has N states, then test the words of length less than N. If no word is accepted by this FA, then it will
_________ word/words.
►accept all
►accept no (Page 85)
►accept some
►reject no
3
Question No: 14 ( Marks: 1 ) - Please choose one
Which of the following statement is true
►The length of the output string is greater than length of input string in moore machine. Click here for detail
►The length of the output string is greater than length of input string in mealy machine.
►The length of the output string is equal to length of input string in moore machine.
►The length of the output string is less than length of input string in mealy machine.
►Of finite tape length, rewinding capability and unidirectional tape movement
►Of finite tape length, without rewinding capability and bidirectional tape movement
►Of finite tape length, rewinding capability and bidirectional tape movement
►Of finite tape length, without rewinding capability and unidirectional tape movement click here for
detail
4
Question No: 19 ( Marks: 1 ) - Please choose one
The process of finding the derivation of the word generated by particular grammar is called _____
►Processing
►Parsing (Page 136)
►Programming
►Planning
►CNK algorithm
►CYK algorithm (Page 135) Algorithm 4 (The CYK algorithm)
►CKY algorithm
►KYC algorithm
►One
►Two
►Three
►Four
5
Question No: 23 ( Marks: 1 ) - Please choose one
If r1 is a regular expression then r1* is a ______
►GTG
►NFA
►FA
►RE (Page 9)
(a)
(b)
►FA‟s
►TG‟s
►NFA‟s
►CFG’s (Page 97)
►FA
►TG
►PDA click here for detail
►Regular Grammar
6
Question No: 27 ( Marks: 1 ) - Please choose one
Pumping Lemma II says that length(x) + length(y) should be ______.
► Finite Automata
► Turing machine (Page 141)
► FA
► TG
►FA
►NFA
►TG
►PDA (Page 91)
Hint: - as it is non-regular so its CFG and PDA are possible.
7
Question No: 31 ( Marks: 1 ) - Please choose one
Which of the following statement(s) is/are true or false?
(1)The Turing Machine is similar to a finite automation but with an unlimited and unrestricted memory.
(2) A Turing machine much more accurate model of a general purpose computer.
►Parser
►Lexical analyzer
►Scanner Click here for detail
►Interpreter
Hint: - The first phase of a compiler is called lexical analysis (and is also known as a lexical scanner).
8
Question No: 36 ( Marks: 1 ) - Please choose one
If L1 and L2 are expressed by regular languages then L1 + L2 is also a_________ Language.
► Regular (Page 10)
► Ir-regular
► PDA
► Hybrid
►1
►2
►3
►Any number of (Page 111)
►FA and NFA accept the same language (Page 43) Also click here for detail
►FA shape is same like an NFA
►FA accept the null string also
►NFA accept the null string also
9
FINALTERM EXAMINATION
Spring 2010
CS402- Theory of Automata (Session - 1)
10
Question No: 6 ( Marks: 1 ) - Please choose one
Every regular expression can be expressed as CFG but every CFG cannot be expressed as a regular expression.
This statement is:
X1– X2+
a
Above given FA corresponds RE r. then FA corresponding to r* will be
z1±
b a
b a
z3+ z2 a
b
This statement is
11
Question No: 9 ( Marks: 1 ) - Please choose one
aa,bb aa,bb
ab,ba
ab,ba
Above given TG has _____________ RE.
► (aa+aa+(ab+ab)(aa+ab)*(ab+ba))*
► (aa+bb+(ab+ba)(aa+bb)*(ab+ba))* (Page 22)
► (aa+bb+(ab+ba)(aa+bb)(ab+ba))*
► None of these
► n!
► n2
► nm
► 2n
12
Question No: 14 ( Marks: 1 ) - Please choose one
If L1 and L2 are expressed by regular expressions r1 and r2, respectively then the language expressed by r1 +
r2 will be _________
► Regular (Page 10)
► Ir-regular
► Can‟t be decided
► Another Language which is not listed here
13
Question No: 19 ( Marks: 1 ) - Please choose one
If L is a regular language then, Lc is also a _____ language.
► Regular (Page 66) rep
► Non-regular
► Regular but finite
► None of the given
14
Question No: 25 ( Marks: 1 ) - Please choose one
Choose the incorrect statement:
► (a+b)*aa(a+b)* generates Regular language.
► A language consisting of all strings over ∑={a,b} having equal number of a’s and b’s is a regular
language
► Every language that can be expressed by FA can also be expressed by RE
► None of these
FINALTERM EXAMINATION
SPRING 2007
15
Question No: 5 ( Marks: 1 ) - Please choose one
START, READ, HERE and ACCEPTS are conversions of the machine
► True (Page 122)
► False
FINALTERM EXAMINATION
Spring 2006
CS402- Theory of Automata
Question No. 1
A production of the form non-terminal non-terminal is called a dead Production.
True
False (Page 127)
16
Question No. 2
Semi-word is a string having some terminals and one non-terminal at the right of string.
True (Page 97)
False
Question No. 3
Two FAs are equivalent if they have same no. of states.
True (Page 15)
False
Question No. 4
There exist exactly two different derivations in an ambiguous CFG for a word.
True (Page 93)
False
Question No. 6
Regular languages are closed under Union, Concatenation and Kleene star.
True (Page 10)
False
Question No. 7
CFG may also represent a regular language.
True (Page 97)
False
FINALTERM EXAMINATION
Spring 2005
CS402- Theory of Automata
Question No. 1
A Total Language Tree has
All languages over Σ
All strings over Σ (Page 96)
All words of all languages over Σ
All words of one language over Σ
17
Question No. 2
What Turing Machine does not have?
Stack
Tape
Head
Word
Turing machine has stack but insertion and deletion can be done from both sides. Tape and head to.
Question No. 3
CFG given S bS|Sb|aa represents language
b*aa
aab*
b*aab*
b*(aa)*b*
Question No. 4
A Language that is finite but not regular
Λ
(a+b)*
Φ (not sure)
All strings of a's in Σ = {a,.b}
18
CS402 – Quiz No.3
Question # 1 of 10 (Total Marks: 1) Select correct option:
The values of input (say a & b) does not remain same in one cycle due to
NAND gate
Click plus
OR gate
NOT gate
True
False (Page 74)
regular
non regular
EQUAL and non regular (Page 71)
EQUAL and regular
19
Question # 6 of 10 (Total Marks: 1) Select correct option:
The reverse of the string sbfsbb over { sb, f, b }
bbsfbs
bsbfsb
sbbfsb
bsfbsb
N-1
N+1
N+2N
Equal
Not Equal (Page 79)
Greater
Smaller
Finite
Infinite
Regular (Page 76)
Non Regular
20
Question # 1 of 10 (Total Marks: 1) Select correct option:
If the intersection of two regular languages is regular then the complement of the intersection of these two
languages is also regular
True rep
False
One
At least one
At most one
No (Page 71)
Intersection
Union
Complement (Page 66)
Quotient
21
Question # 3 of 10 (Total Marks: 1) Select correct option:
A non regular language can be represented by
RE
FA
TG
None of the given options (Page 71)
Infinite
Finite
Distinct (Page 75)
Non distinct
Yes
No (Page 3)
Infinite states
Infinite set of letters
Infinite set of transitions
Transition of null string is allowed at any stage (Page 71)
22
Question # 9 of 10 (Total Marks: 1) Select correct option:
If R is a regular language and L is some language, and L U R is a regular language, then L must be a regular
language.
23
Question # 5 of 10 (Total Marks: 1) Select correct option:
If S = {ab, bb}, then S* will not contain
Abbbab
Bbba
ababbb
bbbbab
1
2 (Page 3)
3
4
24
CS402 – Quiz No.4
Question # 1 of 10 (Total Marks: 1) Select correct option:
Consider the following production (of a CFG): S->XYZ Here ______ is left most nonterminal in working
string. Note: S, X, Y and Z are all nonterminals
S
X
Y
Z
There are more than one outgoing edges at READ or POP states with one label (Page 111)
There are more than one PUSH states
There are mroe than one POP states
All of the given options
EVEN-EVEN
PALINDROM (Page 91)
EQUAL
ODD-ODD
25
Question # 6 of 10 (Total Marks: 1) Select correct option:
Choice of path can be determined by left most derivation of the string belonging to CFL at………… state
RE
TG
CFG (Page 87)
PDA
START
ACCEPT
WRITE (Page 107)
REJECT
26
CS402 – Quiz No.4
Question # 1 of 10 (Total Marks: 1) Select correct option:
The production of the form: nonterminal --> one nonterminal is called the __________
Terminal
Non terminal (Page 99)
Word
None of the given options
27
Question # 6 of 10 (Total Marks: 1) Select correct option:
The CFG is said to be ambiguous if there exist at least one word of its language that can be generated by the
………… production trees
One
Two
More than one (Page 95)
At most one
Stack
Memory
Tape (Page 105)
Ram
(a+b)+
(a+b)
(a+b)* (Page 88)
(ab)*
words
alphabets
cells (Page 105)
elements
28
Question # 1 of 10 (Total Marks: 1) Select correct option:
In a CFG the nonterminal that occurs first from the left in the working string, is said to be ________
29
Question # 6 of 10 (Total Marks: 1) Select correct option:
If a CFG has a null production, then it is ______
Posiible to construct another CFG without null production accepting the same language with the
exception of the word ^ (Page 99)
Not possible to construct another CFG without null production accepting the same language with the exception
of the word ^
Called NULL CFG
Called Chmosky Normal Form (CNF)
30
Some More Quizzes
Question # 1 of 10 (Total Marks: 1) Select correct option:
For a given input, it provides the compliment of Boolean AND output.
31
Question # 7 of 10 (Total Marks: 1) Select correct option:
If L1 and L2 are regular languages_____ is/are also regular language(s).
L1 + L2
L1L2
L1*
All of above (Page 10)
32
Question # 3 of 10 (Total Marks: 1) Select correct option:
If L1 and L2 are two regular languages, then L1 U L2 is not a regular.
True
False (Page 65)
(a+b)*aa(a+b)*
(b+ab*a)* (Page 68)
a+bb*aab*a
(a+b)*ab(a+b)*
GTG, TG
FA, GTG (Page 69)
FA, TG
TG, RE
33
Question # 9 of 10 (Total Marks: 1) Select correct option:
The languages -------------- are the examples of non regular languages.
Complement of L
Pumping Lemma (Page 72)
Kleene‟s theorem
None in given
34
Question # 5 of 10 (Total Marks: 1) Select correct option:
The language Q is said to be quotient of two regular languages P and R, denoted by--- if PQ=R.
R=Q/P
Q=R/P (Page 78)
Q=P/R
P=R/Q
Non-regular
Equal
Regular (Page 79)
Infinite
State
Transition
Input Tape (Page 105)
Output Tape
35
Question # 1 of 10 (Total Marks: 1) Select correct option:
In new format of an FA (discussed in lecture 37), This state is like dead-end non final state
ACCEPT
REJECT (Page 105)
STATR
READ
START or READ
POP or REJECT
READ or POP (Page 111)
PUSH or POP
36
Question # 7 of 10 (Total Marks: 1) Select correct option:
The following problem(s) ------------- is/are called decidable problem(s).
Final to initial
Final to final
Initial to final (Page 81)
Initial to initial
Productions
Terminals
Non-terminals (Page 87)
None of given
37
Question # 3 of 10 (Total Marks: 1) Select correct option:
The grammatical rules are often called_____________
38
Question # 8 of 10 (Total Marks: 1) Select correct option:
The CFG is not said to be ambiguous if there exists atleast one word of its language that can be generated by
the different production trees,
TRUE
FALSE (Page 95)
FA1 only
FA2 only
FA1 or FA2 (Page 32)
FA1 and FA2
There exists exactly one path for certain string (Page 19)
There may exist more than one paths for certain string
There may exist no path for certain string
There may be no final state
TG only
GTG only
RE only
All of the given (Page 25)
40
Quiz No. 4
Question # 1of 10 (Total Marks: 1) Select correct option:
Consider the Following CFG: (NOTE: ^ means NULL) S->Xa X->aX|bX|^
above given CFG can be represented by RE _________
a*b*
a*b*a
(a+b)*a
a(a+b)*a
Every Regular Expression be expressed by CFG and every CFG can be expressed by a Regular
Expression (Page 97)
Every regular expression can be expressed as CFG but every CFG cannot be expressed as a regular expression.
For a PDA, there exists a CFG, that represents the same language as represented by PDA.
None of the given options
Word
String
Terminal
All of the given options
41
Question # 5 of 10 (Total Marks: 1) Select correct option:
The CFG which generates the regular language is called
Regular expression
Finite Automata
Regular grammar (Page 97)
None of the given options
42
Question # 4 of 10 (Total Marks: 1) Select correct option
In the context of Myhill Nerode theorem, for even-even language sigma star can be partitioned into
__________ number of classes.
3
4 (Page 77)
5
6
accept all
accept no (Page 85) rep
accept some
reject no
initial, final
final, initial
initial, initial
none of the given options
Regular language
un-decidable
Infinite
Decidable (Page 80)
43
Question # 9 of 10 (Total Marks: 1) Select correct option
For a machine with N number of states, the total number of strings to be tested, defined over an alphabet of m
letters, is___________.
Select correct option:
infinite
specified
finite (Page 75)
odd
44
CS402- Theory of Automata
Solved MCQS Feb 12,2013
From Midterm Papers
MC100401285 Moaaz.pk@gmail.com Mc100401285@gmail.com PSMD01
FINALTERM EXAMINATION
Spring 2010
CS402- Theory of Automata (Session - 1)
1
Question No: 5 ( Marks: 1 ) - Please choose one
A regular language:
► Must be finite (Page 11)
► Must be infinite
► Can be finite or infinite
► Must be finite and cannot be infinite
a b b
X1– X2+
a
Above given FA corresponds RE r. then FA corresponding to r* will be
z1±
b a
b a
z3+ z2 a
b
This statement is
► True (Page 38)
► False
► Depends on language
► None of these
2
Question No: 8 ( Marks: 1 ) - Please choose one
Consider the language L of strings, defined over Σ = {a,b}, ending in a
► There are finite many classes generated by L, so L is regular (Page 76)
► There are infinite many classes generated by L, so L is regular
► There are finite many classes generated by L, so L is non-regular
► There are infinite many classes generated by L, so L is non-regular
ab,ba
Above given TG has _____________ RE.
► (aa+aa+(ab+ab)(aa+ab)*(ab+ba))*
► (aa+bb+(ab+ba)(aa+bb)*(ab+ba))* (Page 22)
► (aa+bb+(ab+ba)(aa+bb)(ab+ba))*
► None of these
3
Question No: 13 ( Marks: 1 ) - Please choose one
TM is more powerful than FSM because
► The tape movement is confined to one direction
► It has no finite state control
► It has the capability to remember arbitrary long sequences of input symbols Click here for detail
► None of these
4
Question No: 18 ( Marks: 1 ) - Please choose one
In FA, if one enters in a specific state but there is no way to leave it, then that specific state is called
► Dead State
► Waste Basket
► Davey John Locker
► All of these (Page 17)
5
Question No: 24 ( Marks: 1 ) - Please choose one
Which of the following is a regular language?
► String of odd number of zeroes Click here for detail
► Set of all palindromes made up of 0‟s and 1‟s
► String of 0‟s whose length is a prime number
► All of these
FINALTERM EXAMINATION
SPRING 2007
6
Question No: 3 ( Marks: 1 ) - Please choose one
A production of the form non-terminal string of two non-terminal is called a live Production.
► True (Page 127)
► False
7
FINALTERM EXAMINATION
Spring 2006
CS402- Theory of Automata
Question No. 1
A production of the form non-terminal non-terminal is called a dead Production.
True
False (Page 127)
Question No. 2
Semi-word is a string having some terminals and one non-terminal at the right of string.
True (Page 97)
False
Question No. 3
Two FAs are equivalent if they have same no. of states.
True (Page 15)
False
Question No. 4
There exist exactly two different derivations in an ambiguous CFG for a word.
True (Page 93)
False
Question No. 6
Regular languages are closed under Union, Concatenation and Kleene star.
True (Page 10)
False
Question No. 7
CFG may also represent a regular language.
True (Page 97)
False
8
FINALTERM EXAMINATION
Spring 2005
CS402- Theory of Automata
Question No. 1
A Total Language Tree has
All languages over Σ
All strings over Σ (Page 96)
All words of all languages over Σ
All words of one language over Σ
Question No. 2
What Turing Machine does not have?
Stack
Tape
Head
Word
Turing machine has stack but insertion and deletion can be done from both sides. Tape and head to.
Question No. 3
CFG given S bS|Sb|aa represents language
b*aa
aab*
b*aab*
b*(aa)*b*
Question No. 4
A Language that is finite but not regular
Λ
(a+b)*
Φ (not sure)
All strings of a's in Σ = {a,.b}
9
CS402 – Quiz No.3
True
False (Page 74)
regular
non regular
EQUAL and non regular (Page 71)
EQUAL and regular
10
Question # 6 of 10 (Total Marks: 1) Select correct option:
The reverse of the string sbfsbb over { sb, f, b }
bbsfbs
bsbfsb
sbbfsb
bsfbsb
N-1
N+1
N+2N
Equal
Not Equal (Page 79)
Greater
Smaller
Finite
Infinite
Regular (Page 76)
Non Regular
11
Question # 1 of 10 (Total Marks: 1) Select correct option:
If the intersection of two regular languages is regular then the complement of the intersection of these two
languages is also regular
True rep
False
One
At least one
At most one
No (Page 71)
Intersection
Union
Complement (Page 66)
Quotient
12
Question # 3 of 10 (Total Marks: 1) Select correct option:
A non regular language can be represented by
RE
FA
TG
None of the given options (Page 71)
Infinite
Finite
Distinct (Page 75)
Non distinct
Yes
No (Page 3)
Infinite states
Infinite set of letters
Infinite set of transitions
Transition of null string is allowed at any stage (Page 71)
13
Question # 9 of 10 (Total Marks: 1) Select correct option:
If R is a regular language and L is some language, and L U R is a regular language, then L must be a regular
language.
14
Question # 5 of 10 (Total Marks: 1) Select correct option:
If S = {ab, bb}, then S* will not contain
Abbbab
Bbba
ababbb
bbbbab
1
2 (Page 3)
3
4
15
CS402 – Quiz No.4
Question # 1 of 10 (Total Marks: 1) Select correct option:
Consider the following production (of a CFG): S->XYZ Here ______ is left most nonterminal in working
string. Note: S, X, Y and Z are all nonterminals
S
X
Y
Z
There are more than one outgoing edges at READ or POP states with one label (Page 111)
There are more than one PUSH states
There are mroe than one POP states
All of the given options
EVEN-EVEN
PALINDROM (Page 91)
EQUAL
ODD-ODD
16
Question # 6 of 10 (Total Marks: 1) Select correct option:
Choice of path can be determined by left most derivation of the string belonging to CFL at………… state
RE
TG
CFG (Page 87)
PDA
START
ACCEPT
WRITE (Page 107)
REJECT
17
CS402 – Quiz No.4
Question # 1 of 10 (Total Marks: 1) Select correct option:
The production of the form: nonterminal --> one nonterminal is called the __________
Terminal
Non terminal (Page 99)
Word
None of the given options
18
Question # 6 of 10 (Total Marks: 1) Select correct option:
The CFG is said to be ambiguous if there exist at least one word of its language that can be generated by the
………… production trees
One
Two
More than one (Page 95)
At most one
Stack
Memory
Tape (Page 105)
Ram
(a+b)+
(a+b)
(a+b)* (Page 88)
(ab)*
words
alphabets
cells (Page 105)
elements
19
Question # 1 of 10 (Total Marks: 1) Select correct option:
In a CFG the nonterminal that occurs first from the left in the working string, is said to be ________
20
Question # 6 of 10 (Total Marks: 1) Select correct option:
If a CFG has a null production, then it is ______
Posiible to construct another CFG without null production accepting the same language with the
exception of the word ^ (Page 99)
Not possible to construct another CFG without null production accepting the same language with the exception
of the word ^
Called NULL CFG
Called Chmosky Normal Form (CNF)
21
Some More Quizzes
22
Question # 7 of 10 (Total Marks: 1) Select correct option:
If L1 and L2 are regular languages_____ is/are also regular language(s).
L1 + L2
L1L2
L1*
All of above (Page 10)
23
Question # 3 of 10 (Total Marks: 1) Select correct option:
If L1 and L2 are two regular languages, then L1 U L2 is not a regular.
True
False (Page 65)
(a+b)*aa(a+b)*
(b+ab*a)* (Page 68)
a+bb*aab*a
(a+b)*ab(a+b)*
GTG, TG
FA, GTG (Page 69)
FA, TG
TG, RE
24
Question # 9 of 10 (Total Marks: 1) Select correct option:
The languages -------------- are the examples of non regular languages.
Complement of L
Pumping Lemma (Page 72)
Kleene‟s theorem
None in given
25
Question # 5 of 10 (Total Marks: 1) Select correct option:
The language Q is said to be quotient of two regular languages P and R, denoted by--- if PQ=R.
R=Q/P
Q=R/P (Page 78)
Q=P/R
P=R/Q
Non-regular
Equal
Regular (Page 79)
Infinite
State
Transition
Input Tape (Page 105)
Output Tape
26
Question # 1 of 10 (Total Marks: 1) Select correct option:
In new format of an FA (discussed in lecture 37), This state is like dead-end non final state
ACCEPT
REJECT (Page 105)
STATR
READ
START or READ
POP or REJECT
READ or POP (Page 111)
PUSH or POP
27
Question # 7 of 10 (Total Marks: 1) Select correct option:
The following problem(s) ------------- is/are called decidable problem(s).
Final to initial
Final to final
Initial to final (Page 81)
Initial to initial
Productions
Terminals
Non-terminals (Page 87)
None of given
28
Question # 3 of 10 (Total Marks: 1) Select correct option:
The grammatical rules are often called_____________
29
Question # 8 of 10 (Total Marks: 1) Select correct option:
The CFG is not said to be ambiguous if there exists atleast one word of its language that can be generated by
the different production trees,
TRUE
FALSE (Page 95)
FA1 only
FA2 only
FA1 or FA2 (Page 32)
FA1 and FA2
There exists exactly one path for certain string (Page 19)
There may exist more than one paths for certain string
There may exist no path for certain string
There may be no final state
TG only
GTG only
RE only
All of the given (Page 25)
31
CS402 Grand Quiz File Spring 2021
Instructor Munir
2. when even length language is expressed by an FA. then it will have minimum_______states
two
1. (a+ab)*
2.(ba+a)*
3.a*(aa*b)*
4.(a*b*)*
1 and 3
Finite Automation
5. If an alphabet has "2" number of letters, then total number of strings of length "3" will be
_______
8
6. Which of the following is the bypass and state elimination step in the context of Kleeene's
theorem part II proof?
4
FA
8. Let FA3 be an FA corresponding to FA1FA2, then the initial state of FA3 must correspond to
the initial state of
http://instructormunir.blogspot.com/ Page 1
FA1 only
9. If we have only one state, having no transition for input letters, then it is an example:
NFA
10. Let S={a,bb,bab,baabb} be a set of string, which one of the following will not be included in
S*?
bbbaabaabb
a(a+b)b*
aba
12 Consider we have languages L7 and L6, Which of the following represents their
concatenation?
L7L6
Initial
14. All possible combinations of strings of a language including null string is referred as:
15. A transition graph is converted into a(n) _____ in order to obtain regular expression.
GTG
16. If an FA has 3 states and 2 letters in the alphabet set, then it will have total _______ number
of transitions.
6
Syntactic language
18. Suppose we have FA3 which is equal to the union of FA1 and FA2. Now the initial state of
the FA3 will be equal to:
http://instructormunir.blogspot.com/ Page 2
19. GTG for expression (aa+aba)* may have minimum number of states"
1
20. Which of the following machine has only one initial state and no final state?
Moore machine
21. In proving Kleene Theorem II, if three states are connected then middle state is removed by
connecting first and third state and writing corresponding RE in:
Concatenation
22. Introducing new final state in case of multiple final states is the step no._____ of proving
Kleene's theorem part II.
2
Zero
25. FA corresponding to an NFA can be built by introducing an empty state for a letter having
27. Which one of the following word is not accpeted by the given regular expression?
baabaabba
28. If S={a,b} then which of the following RE will generate all possible strings?
(a+b)*
29. Every NFA can be considered to be a ______ as well, but the converse may not be true.
TG
30. If "r1" and "r2" are regular expression, then which of the following is not a regular
expression?
http://instructormunir.blogspot.com/ Page 3
r1-r2
GTG
TG And RE
one
34.There maybe more than one transition for a certain letter on a state in:
35.Which of the following strings belongs to the language of the regular expression (aa*b)*?
aabaab
36. In concatenation, we include the initial state of FA2 automatically after the final state of FA1
because of:
37. Suppose a language L1 has 2 states and L2 has 2 states. If we have a machine M that accepts
L1 ∩ L2. Then, the total number of states in M is equal to ____________
4
38. If we have input 110010111 and the machine generates the 001101000 as an output, then that
machine will be called?
Complementing machine
39. Given the Langusage L = {ab, aa, baa}, which of the following strings are in L*?
1)abaabaaabaa
2)aaaabaaaa
3)baaaaabaaaab
4)baaaaabaa
1, 2 and 4
http://instructormunir.blogspot.com/ Page 4
40. In the Context of make NFA for the concatenation of FA1 and FA2 (none accepting null
string), which of the following option is correct?
S*
42. when ODD language is expressed by an FA , then it will have minimum_____ states
two
43. let L be the language of all strings, defined Ʃ={0,1}, ending in 10. which of the following
strings are indistinguishable with respect to L with z being 0?
111,101
44. keeping in view the discussion by Martin, how many states are required to recognizes the
language of all strings of length 2 or more defined over Ʃ={a,b}, with 'b' being the second
letter from right ?
7
45. every FA should be__________
deterministic
46. Let's we have two regular expression R1=(xx+yy) and R2=(x+y). Which on the following is
the correct regular expression for the Union of R1 and R2?
(xx+yy)+(x+y)
bbba
48. a(a+b)*b+b(a+b)*a is the regular expression of language defined over Ʃ={a,b} that is
+
51. If two finite state machines are equivalent, they should have the same number of ______
http://instructormunir.blogspot.com/ Page 5
None of these
^
53. Which of the following is Not true about the term alphabet?
55. A _____ with "n" states must accept at least one string of length greater then "n".
DFA
56. In case of finite automaton there ______ be a transition on each______ for every letter of the
alphabet set.
must, state
NFA
58. Let FA3 be an FA corresponding to FA1FA2, then the initial state of FA3 must correspond to
the final sate of
FA2 only
Distinguishable
States
61. The language of all strings defined over alphabet set={x,y} that ends with different letters
will have the maximum length of:
infinite
http://instructormunir.blogspot.com/ Page 6
63. The language of all strings defined over alphabet set={a,b} that does not end with 'a' actually
ends with:
b and ^
RE and FA
65. Which one of the following machine is represented as a pictorial representation with states
and directed edges labeled by an input letter along with an output character?
Mealy machine
66. In which of the following machine, the length of output string is the same to that of input
string?
Mealy machine
67. There is no compulsion that each state must have an on outgoing edge for every input
variable in:
Transition Graph
68. In Moore machine, if the length of input string is 9, then the length of output string will be:
10
n*(n+1)!
may not
71. While finding RE corresponding to TG, if TG has more than one start state then
72. In TG, the string is supposed to be ______ if there is no path for a string from initial to final
state.
Rejected
73. Which of the following from correctly expressed the regular expression RR*?
R+
http://instructormunir.blogspot.com/ Page 7
74. Reverse of string "YxwzYz" defined over Ʃ={w,x,Y,z} is __________.
zYzwxY
76. Suppose we have an alphabet set having four symbols, how many transition will be there on
each state of a finite automaton for any language defined over the given alphabet?
4
{^,x,xx,xxx,xxxx,.....}
FA and TG
79. A string will be accepted by an NFA if there exists __________ one successful path.
atleast
............................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
http://instructormunir.blogspot.com/ Page 8
QUIZ MASTER
Grand Quiz(CS402)
100% correct solution.
For more information you can visit my channel and for
any type of help related to CS619 you can contact me.
YOUTUBE CHANNEL:
https://www.youtube.com/channel/UCINsFwDiB62SValCcPDZbRQ/playlists
FACEBOOK GROUP:
https://www.facebook.com/groups/923887914750307
For More Visit VUStudents.pk
Question No 2
Let FA1 accepts many strings and FA2 accepts none then FA1+FA2 will be equal to:
Select Correct Option
✓ FA1…………………(For More Visit VUStudents.pk)
✓ FA2
✓ FA2-FA1
✓ (FA2)*
Question No 3
Which one of the following word is not accepted by the regular expression (a+b)*(aa)(a+b)*?
Select Correct Option
✓ aaaa
✓ baaa
✓ aa
✓ bab…………………(For More Visit VUStudents.pk)
Question No 4
There ____________ a language for which only FA can be built but not the RE.
Select Correct Option
✓ is
✓ cannot be…………………(For More Visit VUStudents.pk)
✓ may be
✓ may not be
Question No 6
If r1 and r3 are regular expressions then (r1 * r2) is a / an ________________.
Select Correct Option
✓ FA
✓ TG
✓ GTG
✓ Regular expression…………………(For More Visit VUStudents.pk)
Question No 7
The minimum length of the strings(except null string) of a language that starts and ends in
different letters will be:
Select Correct Option
✓ 1
✓ 2
✓ 3…………………(For More Visit VUStudents.pk)
✓ 4
Question No 8
In an FA, when there is no path starting from initial state and ending in final state then that FA
_____________.
Select Correct Option
✓ Accept null string
✓ Accept all string
✓ Accept all non empty strings
✓ Does not accept any string…………………(For More Visit VUStudents.pk)
Question No 10
Which one of the following is a correct word produced by the RE (a*b)ab?
Select Correct Option
✓ aaaa
✓ bbbb
✓ abab…………………(For More Visit VUStudents.pk)
✓ Null
Question No 11
If L1’ and L2’ are regular languages, then L1,L2 will be
Select Correct Option
✓ Regular…………………(For More Visit VUStudents.pk)
✓ Non regular
✓ May be regular
✓ None of the mentioned
Question No 12
In case of finite automation there, _______ be a transition on each ______ for every letter of the
alphabet set.
Select Correct Option
✓ Must, state…………………(For More Visit VUStudents.pk)
✓ May be, state
✓ Often, edge
✓ Must, edge
Question No 14
There __________ be a unique path for each valid string (called a word) in NFA.
Select Correct Option
✓ Must
✓ May not…………………(For More Visit VUStudents.pk)
✓ Should not
✓ Will
Question No 15
Fa is also called
Select Correct Option
✓ TG
✓ GTG
✓ NFA
✓ DFA…………………(For More Visit VUStudents.pk)
Question No 16
While finding RE corresponding to a TG, we connect the new state with the old start state by
_________ transition.
Select Correct Option
✓ a
✓ b
✓ null…………………(For More Visit VUStudents.pk)
✓ RE
Question No 18
While developing NFA for the union of FA1 and FA2, there will be _________
transition/transitions for both ‘a’ and ‘b’ on the new initial state.
Select Correct Option
✓ Single
✓ Only one
✓ Only three
✓ Multiple…………………(For More Visit VUStudents.pk)
Question No 19
If two RE’s generate same language then these RE’s are called ___________.
Select Correct Option
✓ Same RE
✓ Equal RE
✓ Similar RE
✓ Equivalent RE…………………(For More Visit VUStudents.pk)
Question No 20
Which of the following is an utility of state elimination phenomenon?
Select Correct Option
✓ DFA to NFA
✓ NFA to DFA
✓ DFA to Regular Expression…………………(For More Visit VUStudents.pk)
✓ All of the mentioned
Question No 22
The language having even number of a’s and even number of b’s defined over S = {a, b} is
called__________________.
Select Correct Option
✓ EVEN-EVEN…………………(For More Visit VUStudents.pk)
✓ ODD-ODD
✓ PALINDROME
✓ FACTORIAL
Question No 23
FA stands for ________________.
Select Correct Option
✓ Finite Automation…………………(For More Visit VUStudents.pk)
✓ Fixed Automation
✓ False Automation
✓ Functional Automation
Question No 24
When ODD language is expressed by an FA, then it will have minimum ___________ states
Select Correct Option
✓ One
✓ Two…………………(For More Visit VUStudents.pk)
✓ Three
✓ Four
Question No 26
Which one of the following word is not accepted by the given regular expression?
Select Correct Option
✓ aaabab
✓ aaaababb
✓ abbaab…………………(For More Visit VUStudents.pk)
✓ aabbabb
Question No 27
Which of the following doesn’t accept any language?
Select Correct Option
✓ Finite state machine
✓ Deterministic finite state machine
✓ Regular expression
✓ Moore machine…………………(For More Visit VUStudents.pk)
Question No 28
Melay machine can have ---------- final states.
Select Correct Option
✓ Zero…………………(For More Visit VUStudents.pk)
✓ One
✓ More than one but finite
✓ More than one but infinite
Question No 30
Null strings can be specified on edges in:
Select Correct Option
✓ Finite Automata
✓ Non-Deterministic Finite Automata
✓ Transition Graph…………………(For More Visit VUStudents.pk)
✓ Melay Machine
THE END
For More Visit VUStudents.pk
CS402- Theory of Automata
Solved Subjective Feb 14,2013
From Final term Papers
MC100401285 Moaaz.pk@gmail.com Mc100401285@gmail.com PSMD01
FINALTERM EXAMINATION
Spring 2012
CS402- Theory of Automata
1
Prefixes of a language in another language?
Answer:- (Page 78)
Prefixes of a language in another language
If two languages R and Q are given, then the language the prefixes of Q in R denoted by Pref(Q in R) is the set
of strings of letters that, when concatenated to the front of some word in Q to produce some word in R i.e.
Pref(Q in R) = the set of all strings p such that there exists words q in Q and w in R such that pq = w. Following
are the examples in this regard
Example
Let Q = {aa,abaaabb,bbaaaaa,bbbbbbbbbb} and R = {b,bbbb,bbbaaa,bbbaaaaa}
It can be observed that aa and bbaaaaa occur at the ending parts of some words of R, hence these words help in
defining the language pref(Q in R). Thus pref(Q in R) = {b,bbba,bbbaaa}
The entire input string must be read before the machine can accept the word.
Automata theory is also closely related to formal language theory. An automaton is a finite representation of a
formal language that may be an infinite set. Automata are often classified by the class of formal languages they
are able to recognize.
2
Parsing Techniques (5 number)
Answer:- (Page 136)
Recall the CFG for arithmetic expression
S→S+S|S*S|number
It was observed that the word 3+4*5 created ambiguity by considering its value either 23 or 35. To remove this
ambiguity, the CFG was modified to S→(S+S)|(S*S)|number
There arises a question that whether a new CFG can be defined without having parentheses with operator
hierarchy (i.e. * before +)? The answer is yes. Following is the required PLUS'TIMES grammar S→E,
E→T+E|T, T→F*T|F, F→(E)|i
Where i stands for any identifier i.e. number or of storage location name (variable). Following is the derivation
of i+i*i
S ⇒E
⇒T+E
⇒F+E
⇒i+E
⇒i+T
⇒i+F*T
⇒i+i*T
⇒i+i*F
⇒i+i*i
FINALTERM EXAMINATION
Spring 2012
CS402- Theory of Automata
3
2: Describe the POP operation and draw symbol for POP state in context of Push down stack.
Answer:- (Page 107)
POP :
POP is an operation that takes out a letter from the top of the STACK. The rest of the letters are moved one
location up. POP state is expressed as
3: Write two difference and two similarities between DFA and NFA.
Answer:- Click here for detail
Difference
1-In FA Finite number of states, having one initial and some (maybe none) final states. While in NFA Finite
many states with one initial and some final state. 2-In FA for each state and for each input letter there is a
transition showing how to move from one state to another while in NFA there may be more than one transition
for certain letters and there may not be any transition for certain letters. 3-In FA is valid while in NFA is
not valid.
Common
Every Language that can be recognized by a DFA can also be recognized by a NFA. The reverse is True.
Both DFA and NFA can only have one start state. But they can have multiple Final states.
Finite set of input letters
FINALTERM EXAMINATION
Spring 2012
CS402- Theory of Automata
4.
4
5. While converting mealy to Moore num of states remain same or not? justify [5]
Answer:- (Page 61)
6. Theorem
7. Statement
8. For every Mealy machine there is a Moore machine that is equivalent to it (ignoring the extra character printed
the Moore machine).
9.
10. Proof
11. Let M be a Mealy machine. At each state there are two possibilities for incoming transitions
12. The incoming transitions have the same output character.
13. The incoming transitions have different output characters.
14. If all the transitions have same output characters, then shift that character to the corresponding state.
15.
16. If all the transitions have different output characters, then the state will be converted to as many states as the
number of different output characters for these transitions, which shows that if this happens at state q then q
will be converted to qi1 and qi2 i.e. if at qi there are the transitions with two output characters then qi1 for one
character and q2 for other character.
17.
18. Shift the output characters of the transitions to the corresponding new states qi and qi. Moreover, these new
states q1 and q2 should behave like q as well. Continuing the process, the machine thus obtained, will be a
Moore machine equivalent to Mealy machine M.
19.
FINALTERM EXAMINATION
Spring 2012
CS402- Theory of Automata
Consider the language L which is EVEN-EVEN, defined over Σ = {a,b}. In how many classes does L
may partition Σ*. Explain briefly.(MArks 3)
Answer:- (Page 77)
Consider the language L which is EVEN'EVEN, defined over Σ = {a,b}. It can be observed that L partitions Σ*
into the following four classes
C1= set of all strings with even number of a’s and odd number of b’s.
C2= set of all strings with odd number of a’s and odd number of b’s.
C3= set of all strings with odd number of a’s and even number of b’s.
C4= set of all strings with even number of a’s and even number of b’s.
5
Q7: If two FA have no final state how the intersection of those FA will have final state? (marks 2)
Answer:- (Page 83)
If Both the FAs have no final state, so these FAs accept nothing. This implies that their union will not also
accept any string. Hence FA corresponding to the language (L1∩ L2c) ∪ ( L1c∩ L2) accepts nothing. Thus
both the languages are equivalent.
FINALTERM EXAMINATION
Spring 2012
CS402- Theory of Automata
1.
2. Write point of kleen's theorem? 2marks
Answer:- (Page 25)
3. Kleene’s Theorem
4. If a language can be expressed by
5. FA or
6. TG or
7. RE
8. Then it can also be expressed by other two as well.
9. It may be noted that the theorem is proved, proving the following three parts
10.
Kleene’s Theorem Part I
If a language can be accepted by an FA then it can be accepted by a TG as well.
Kleene’s Theorem Part II
If a language can be accepted by a TG then it can be expressed by an RE as well.
Kleene’s Theorem Part III
If a language can be expressed by a RE then it can be accepted by an FA as well.
6
What is meant by decidable problem? 2marks
Answer:- (Page 80)
11. Decidable problem
12. A problem that has decision procedure is called decidable problem e.g. the following problems
13. The two regular expressions define the same language.
14. The two FAs are equivalent.
word
A word is a string of terminals. Λ is also a word.
S→aaaa
a) Write RE defined over Σ ={a, b} strings not ending on aa, ab. 5marks
Answer:-
(a+b)*(ba+bb)
7
8. What does mean the LANGUAGE IS CLOSED? 3marks
Answer:- Rep
OR
8
TG
A Transition graph (TG), is a collection of the followings
Finite number of states, at least one of which is start state and some (maybe none) final states.
Finite set of input letters (Σ) from which input strings are formed.
Finite set of transitions that show how to go from one state to another based on reading specified substrings of
input letters, possibly even the null string (Λ).
GTG
A generalized transition graph (GTG) is a collection of three things
Finite number of states, at least one of which is start state and some (maybe none) final states.
Finite set of input letters (Σ) from which input strings are formed.
Directed edges connecting some pair of states labeled with regular expression.
It may be noted that in GTG, the labels of transition edges are corresponding regular expressions
FINALTERM EXAMINATION
Fall 2011
CS402- Theory of Automata
3. if there is no initial state in FA then that FA does not accept any language Discuss two situations when
an FA does not accept any string not even the null string?
Answer:- (Page 15)
In FA2, there is no final state and in FA3, there is a final state but FA3 is disconnected as the states 2 and 3 are
disconnected.
9
4. Describe pop operation?and draw symbol for pop state in contex of push down stack?
Answer:- Rep
11. 8. Difference between push down stack and push down store?
Answer:- (Page 107)
There is no difference between PUSHDOWN STACK or PUSHDOWN STORE
PUSHDOWN STACK is a place where the input letters can be placed until these letters are referred again. It
can store as many letters as one can in a long column.
Initially the STACK is supposed to be empty i.e. each of its storage location contains a blank.
10
10. Five conditions of PDA conversion?
Answer:- (Page 119)
A PDA is in conversion form if it fulfills the following conditions:
There is only one ACCEPT state.
There are no REJECT states.
Every READ or HERE is followed immediately by a POP i.e. every edge leading out of any READ or HERE
state goes directly into a POP state.
No two POPs exist in a row on the same path without a READ or HERE between them whether or not there are
any intervening PUSH states (i.e. the POP states must be separated by READs or HEREs).
All branching, deterministic or nondeterministic occurs at READ or HERE states, none at POP states and every
edge has only one label.
FINALTERM EXAMINATION
Fall 2011
CS402- Theory of Automata
11
FINALTERM EXAMINATION
Fall 2011
CS402- Theory of Automata
12
6. Construct corresponding CFG for the given language
(1) All words of even length but not multiple of 3.
Answer(page 90)
Example
∑ = {a,b}
productions:
S → SS
S → XS
S→Λ
S → YSY
X → aa
X → bb
Y → ab
Y → ba
This grammar generates EVEN'EVEN language.
S → aSa | bSb | a | b
The CFG for even length of Palindrom is given as:
S → aSa | bSb | aa | bb | ^
13
9. What are formal languages?
Answer:- (Page 3)
Formal Languages are Syntactic languages.
FINALTERM EXAMINATION
Fall 2011
CS402- Theory of Automata
What is Transition?
Answer:- (Page 11)
Transition showing how to move from one state to another.
Alternative form of this production
Σ = {a,b}
productions:
S→aS| bS |a|b| Λ
Answer:- (Page 88)
This grammar also defines the language expressed by (a+b)*.
What is input Tap?
Answer:- (Page 105)
The part of an FA, where the input string is placed before it is run, is called the input TAPE.
The input TAPE is supposed to accommodate all possible strings. The input TAPE is partitioned with cells, so
that each letter of the input string can be placed in each cell.
What is live production?
Answer:- Rep
14
Define two rules ………………(Row Language.).
Answer:- (Page 125)
Following are the three rules of defining all possible productions of CFG of the row language
The trip starting from START state and ending in ACCEPT state with the NET style
Net(START, ACCEPT, $) gives the production of the form S → Net(START, ACCEPT, $)
(L1UL2C) intersection (L1CU L2) the language or accept any thing or not…
Answer:- (Page 80)
(L1 ∩ L2c ) ∪ ( L1c ∩ L2 ) is regular language that accepts the words which are in L1 but not in L2 or else in
L2 but not in L1 .
FINALTERM EXAMINATION
Spring 2011
CS402- Theory of Automata
ambiguous grammer,
Answer:- (Page 95)
The CFG is said to be ambiguous if there exists atleast one word of it’s language that can be generated by the
different production trees.
1. If there are more than one edges between two states then we can replace them by one edge in a TG.
Explain it with examples?
Answer:- (Page 27)
If a state has two (more than one) incoming transition edges labeled by the corresponding REs, from the same
state (including the possibility of loops at a state), then replace all these transition edges with a single transition
edge labeled by the sum of corresponding REs.
2.
15
3. How can you say that two FAs are equivalent?
Answer:- (Page 15)
It is to be noted that two FAs are said to be equivalent, if they accept the same language
5.
6. What is a production?
Answer: - (Page 87)
Productions: The grammatical rules are often called productions.
FINALTERM EXAMINATION
Spring 2011
CS402- Theory of Automata
If L1,L2 and L3 be any three finite languages over Sigma = {a,b}, then how will be
(L1 ∩ L2) ∪ ( L2 ∩ L3 ) ≠ Ø
Answer: -
(L1 ∩ L2) ∪ ( L2 ∩ L3 ) ≠ Ø is not always true. It depends on all the languages. If L1 has some common
words with L2 or L2 has some common words with L3, then this will not be equal to empty. However if L1
does not have common words with L2 or L2 does not have common words with L3 then this statement will be
wrong.
FINALTERM EXAMINATION
Spring 2011
CS402- Theory of Automata
Method 2: Since in an NFA, there may be more than one transition for a certain letter and there may not be any
transition for certain letter, so starting from the initial state corresponding to the initial state of given NFA, the
transition diagram of the corresponding FA, can be built introducing an empty state for a letter having no
transition at certain state and a state corresponding to the combination of states, for a letter having more than
one transitions
16
Explain the decidability and examples. 5marks
Answer: - (Page 80)
Decidability
Effectively solvable problem
A problem is said to be effectively solvable if there exists an algorithm that provides the solution in finite
number of steps e.g. finding solution for quadratic equation is effectively solvable problem, because the
quadratic formula provides an algorithm that determines the solution in a finite number of arithmetic
operations, (four multiplications, two subtractions, one square root and one division).
FINALTERM EXAMINATION
Fall 2010
CS402- Theory of Automata
17
Question No: 30 ( Marks: 2 )
Identify the null productions and nullable productions from the following CFG:
S -> ABAB
A -> a | /\
B-> b | /\
Answer: - (Page 102)
Here S → ABAB is nullable production and A → Λ, B → Λ are null productions.
18
AL-JUNAID INSTITUTE GROUP
MUHAMMAD JUNAID
0304-1659294
Bc190202640@vu.edu.pk
AL-JUNAID INSTITUTE GROUP
CS402 GRAND QUIZ
Sr.N MCQS ANSWE
o R
1. Which of the following steps replaces multiple Step 3
incoming transition edges with a single one
proving Kleene’s theorem part II?
2. Let FA1 accepts many strings and FA2 accepts FA1
no strings, then FA1+FA2 will be equal to:
3. Let L be the language of all strings, defined over (010,101)
∑ =(0,1), ending in 10. Which of the following
strings are indistinguishable w.r.t L with z being
0?
4. If r1=(aa+bb)and r2=(a+b) then the language (r)(r2)
(aa+bb)(a+b) will bhe generated by_______
5. Introducing a new start state in the case of 1
multiple states is step no.______ of proving
Kleen’s theorem part II.
6. The language having even numbers of a’s and EVEN-EVEN
even number of b’s defined over S={a,b} is
called ______
7. In NFA having no transition at a certain state, FA Empty state
can be built by introducing :
8. For every three regular expression R, S, and T. Same
the language denoted by R(S U T) and
(RS)U(RT) are the _______
9. Which of the following string belongs to the aabaab
language of the regular expression (aa*b)?
10. If L1’ and L2’ are regular languages, then L1, L2 Regular
will be
11. Suppose the language L1 has 2 L2 has 2 states. If 4
we have a machine M that accepts L1∩L2. Then
the total number of states in M is equal
to_______
AL-JUNAID INSTITUTE GROUP
12. If L is a regular language, then (L’)’ U L will be: L
13. In Mealy machine, the output depends on______ Present state
and Present
output
14. Strings x,y,z belongs to ∑* such that xz ∈ L but Distinguishabl
yz ∉ L where L ⊆ ∑* are: e
15. Melay machine to increase the output string in Incrementing
magnitude by 1 is called: machine
16. Suppose we have FA3 (which is to FA1+FA2) It corresponds
then the final state of FA3 will be declared final to any of the
if: final states of
FA1 or FA2
17. If we have the finite language and the number of n+1
states in the FA is n then the maximum number
of letter in each word of the language that will be
accepted by the given FA will be :
18. Which of the following state is introduced while An initial
developing NFA for the closure of FA? state which
should be
final as well
19. Length of EVEN-EVEN language is_______ Even
20. If FA1 corresponds to (a+b)* then FA1 must Every
accept_______ strings/strings.
21. In FA, initial stage is represented by : Drawing an
arrowhead
before the
state
22. Which one of the following machine is Mealy
represented as a pictorial representation with machine
states and directed edges labeled by an input
letter along with an output character?
23. Length of machine “AbBAbcd“ defined over Five
∑=(Ab,B,c,d) is_______.
24. An FA is a collection of: Finite states ,
finite
transition and
finite input
AL-JUNAID INSTITUTE GROUP
letter
25. Given the language L={ab, aa, baa}, which of the 1,2 & 4
following strings are in L*?
i) abaabaaabaa
ii) aaaabaaaa
iii)baaaaabaaaab
iv)baaaaabaa
26. In the context to make NFA for the concentration Final states in
of FA1 and FA2 (FA1 accepting null string) both FAs
which of the following option is correct?
27. Every ___ is a ___ as well, but the converse may FA, TG
not be true.
28. NFA with null string has ____ initial state(s). One
29. While finding RE corresponding to a TG, we Null
connect the new start state with the old start state
by____ transition.
30. If S=(x). then S* will be_____. {^,x,xx,xxx,x
xxx….}
31. The minimum length of string (except null string) 2
of a language that starts and ends in the same
letter will be:
32. If S={ab, bb} , then S* will not contain______. bbba
33. Which of the following machine has only one Moore
initial state? machine
34. Which of the following diagram is very rigid in FA
order to express any language?
35. Let L be the language of all strings, defined over 111,101
∑ =(0,1), ending in 111. Which of the following
strings are indistinguishable w.r.t L with z being
11?
36. Mealy machine can have ______ final states. Zero
37. In Moore machine , output is produced over the States
change of:
38. Lets we have two regular expressions R1 (xx+yy)+
={xx+yy}and R2={x+y} . Which one of the (x+y)
following is the correct regular expression for the
union of R1 and R2?
AL-JUNAID INSTITUTE GROUP
39. FA corresponding to an NFA can be built by No transition
introducing a state corresponding to the at certain state
combination of states, for a letter having
40. The situation there is no way to leave after entry Davey john
is called locker
41. Which one of the following word is not accepted Abbaab
by the given regular expression?
42. According to the theory of automata, there are Two
________ types of languages.
43. Which of the following word is not accepted by Baabaabba
the given regular expression?
44. Regular languages are closed under the following Union,
operations. Concentration
, Closure
45. There can be more than ____ FA for a certain One, one
language but for ____FA there is only one
language associated with it.
46. There is no compulsion that each state must have Transition
an on outdoing edge for every input variable in: graph
47. FA is also called_____. DFA
48. If r1 and r2 are regular expressions then (r1*r2) RE (Regular
is______ expression)
144. Tokenizing
Decomposing a string into its valid units is
referred as:
145. FA1 or FA2
Let FA3 be an FA corresponding to FA1+FA2,
then the initial state of FA3 Must corresponds to
the initial state of
https://www.youtube.com/channel/UCINsFwDiB62SValCcPDZbRQ/playlists