FAFLMCQ
FAFLMCQ
a) 4
b) 5
c) 6
d) unlimited
View Answer
Answer:b
Explanation: states,input symbols,initial state,accepting state and transition function.
5. δ*(q,ya) is equivalent to .
a) δ((q,y),a)
b) δ(δ*(q,y),a)
c) δ(q,ya)
d) independent from δ notation
View Answer
6. String X is accepted by finite automata if .
a) δ*(q,x) E A
b) δ(q,x) E A
c) δ*(Q0,x) E A
d) δ(Q0,x) E A
View Answer
Answer:c
Explanation: If automata starts with starting state and after finite moves if reaches to final step then
it called accepted.
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.
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 = 2^n * n^(2*n).
14. Number of states require to simulate a computer with memory capable of storing ‘3’ words each
of length ‘8’.
a) 3 * 2^8
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 .
CS402- MCQ,s
For a given input, it provides the compliment of Boolean AND output.
It delays the transmission of signal along the wire by one step (clock pulse).
For the given input, AND box provides the Boolean AND output.
True False
The current in the wire is indicated by 1 and 0 indicates the absence of the current.
True False
L1 + L2
L1L2
L1*
All of above
Let L be a language defined over an alphabet Σ, then the language of strings, defined over Σ, not
belonging to L, is called Complement of the language L, denoted by Lc or L’.
True False
To describe the complement of a language, it is very important to describe the ----------- of that
language over which the language is defined.
Alphabet
Regular Expression
String
Word
For a certain language L, the complement of Lc is the given language L i.e. (Lc)c = Lc
True False
Converting each of the final states of F to non-final states and old non-final states of F to final
states, FA thus obtained will reject every string belonging to L and will accept every string, defined
over Σ, not belonging to L. is called
Transition Graph of L
Regular expression of L
Complement of L
Finite Automata of L
CORRECT
If L1 and L2 are regular languages, then these can be expressed by the corresponding FAs.
True False
(a+b)*aa(a+b)*
(b+ab*a)*
a+bb*aab*a
(a+b)*ab(a+b)*
The regular expression defining the language L1 U L2 can be obtained, converting and reducing the
previous ------------- into a ------------ as after eliminating states.
GTG, TG
FA, GTG
FA, TG
TG, RE
The language that can be expressed by any regular expression is called a Non regular language.
True False
Let L be any infinite regular language, defined over an alphabet Σ then there exist three strings x, y
and z belonging to Σ* such that all the strings of the form for n=1,2,3, … are the words in L. called.
Complement of L
Pumping Lemma
Kleene’s theorem
None in given
(21) Languages are proved to be regular or non regular using pumping lemma.
True False
(23) If, two strings x and y, defined over Σ, are run over an FA accepting the language L, then x
and y are said to belong to the same class if they end in the same state, no matter that state is final or
not.
True False
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 Q=P/R P=R/Q
If two languages R and Q are given, then the prefixes of Q in R denoted by Pref(Q in R).
True False
(27) Let Q = {aa, abaaabb, bbaaaaa, bbbbbbbbbb} and R = {b, bbbb, bbbaaa, bbbaaaaa}
Pref (Q in R) is equal to,
{b,bbba,bbbaaa}
{b,bba,bbaaa}
{ab,bba,bbbaa}
{b,bba,bbba}
If R is regular language and Q is any language (regular/ non regular), then Pref (Q in R) is ---------.
Non-regular
Equal
Regular
Infinite
(30) The part of an FA, where the input string is placed before it is run, is called _______
State
Transition
Input Tape
Output Tape
In new format of an FA (discussed in lecture 37), This state is like dead-end non final state
ACCEPT
REJECT
STATR
READ
For language L defined over {a, b}, then L partitions {a, b}* into …… classes
Infinite
Finite
Distinct
Non-distinct
n=1, 2, 3, 4……….
n=0, 1, 2, 3, 4……….
n=…….-3,-2,-1, 0, 1, 2, 3, 4……
n=…….-3,-2,-1, 1, 2, 3, 4……
(36) The PDA is called non-deterministic PDA when there are more than one out going edges
from……… state
START or READ
POP or REJECT
READ or POP
PUSH or POP
A PDA is non-deterministic, if there are more than one READ states in PDA
A PDA is never non-deterministic
Like TG, A PDA can also be non-deterministic
A PDA is non-deterministic, if there are more than one REJECT states in PDA
There is a problem in deciding whether a state of FA should be marked or not when the language Q
is infinite.
True False
If an effectively solvable problem has answered in yes or no, then this solution is called ---------
Decision procedure
Decision method
Decision problem
Decision making
To examine whether a certain FA accepts any words, it is required to seek the paths from -------
state.
Final to initial
Final to final
Initial to final
Initial to initial
The high level language is converted into assembly language codes by a program called compiler.
TRUE FALSE
Grammatical rules which involve the meaning of words are called ---------------
Semantics
Syntactic
Both a and b
None of given
Grammatical rules which do not involve the meaning of words are called ---------------
Semantics
Syntactic
Both a and b
None of given
The symbols that must be replaced by other things are called __________
Productions
Terminals
Non-terminals
None of given
Productions
Terminals
Non-terminals
None of given
The terminals are designated by ________ letters, while the non-terminals are designated by
________ letters.
Capital, bold
Small, capital
Capital, small
Small, bold
FA TG CFG TGT
(a+b)*aa(a+b)*
(a+b)*a(a+b)*a
(a+b)*aa(a+b)*aa
(a+b)*aba+b)*
(50) S → aXb|b XaX → aX|bX|Λ The given CFG generates the language in English __________
TRUE FALSE
TRUE FALSE
TRUE FALSE
(55) The productions of the form nonterminal → one nonterminal, is called _________
Null production
Unit production
Null able production
None of given
Question # 2
While finding RE corresponding to TG, we connect the new start state to the old start state by the
transition labeled by
Select correct option:
a
b
null string
None of the given options
This statement is
*► True
► False
► Depends on language
► None of these