CS402 Grand Quiz by Junaid
CS402 Grand Quiz by Junaid
CS402 Grand Quiz by Junaid
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