0% found this document useful (0 votes)
62 views8 pages

Cs402 Mid Term Solved Paper

1) The document appears to be a practice midterm exam for a course on automata theory, containing multiple choice questions testing knowledge of concepts like finite automata, regular languages, and Kleene's theorem. 2) It includes questions about properties of regular languages and finite automata, such as characteristics of their initial and final states. 3) There are also conceptual questions testing understanding of equivalences between different models of computation and their expressive powers.

Uploaded by

Muhammad Ali
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views8 pages

Cs402 Mid Term Solved Paper

1) The document appears to be a practice midterm exam for a course on automata theory, containing multiple choice questions testing knowledge of concepts like finite automata, regular languages, and Kleene's theorem. 2) It includes questions about properties of regular languages and finite automata, such as characteristics of their initial and final states. 3) There are also conceptual questions testing understanding of equivalences between different models of computation and their expressive powers.

Uploaded by

Muhammad Ali
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 8

MIDTERM EXAMINATION Spring 2009 CS402- Theory of Autom t !

Se""ion - #$ Question No: 1 ( Marks: 1 ) - Please choose one

A%ph &et S ' ( )&*)**+ h " ,,,,,,, num&er of %etter"-

One T.o Three /our

Question No: 2

( Marks: 1 ) - Please choose one

In .hi*h of the fo%%o.ing % ngu ge Re0!"$'"

E12A3 INTE4ER 5A3INDROME /ACTORIA3

Question No: 3

( Marks: 1 ) - Please choose one

If S ' ( &) &&+) then S6 .i%% not *ont in

&&& & &&& &&&& & & &&&

Question No: 4

( Marks: 1 ) - Please choose one

)&

# 7 28

)& A&o0e gi0en /A gener te" the % ngu ge h 0ing "tring" of ,,,,,,,,,

ODD %ength E9EN %ength E:u % num&er of ;" n< &;" None of the"e

Question No: 5 8&

( Marks: 1 ) - Please choose one

8& 8&&

8 A&o0e gi0en 4T4 **ept" the % ngu ge in .hi*h "tring"

Cont in" <ou&%e or <ou&%e & Cont in" &oth n< <ou&%e &

Depen<" on the %ph &et None of the"e

Question No: 6

( Marks: 1 ) - Please choose one


8&&

8&& &8&

=- 2 #

&8&

48
If &o0e gi0en T4 i" <r .n %i>e

8&&

= #
X

4 8
Then .h t .i%% &e .ritten in p% *e of X-

! &8& $! 8&&$!& 8 &$ ! &8& $! 8&&$! &8& $ ! &8& $! 8&&$6! &8& $ ! &8& $! 8&&$! &8& $6

Question No: 7

(Marks: 1) - Please choose one

/A= e?pre""e" r#r2- Then initi % "t te of /A= .i%% *on"i"t of

Initi % "t te of /A2 Initi % "t te of /A# Initi % "t te" of &oth /A# @ /A2

Depen<" on /A;"

Question No: 8

( Marks: 1 ) - Please choose one

/A= e?pre""e" r#r2- Then there .i%% &e t %e "t one fin % "t te of /A= th t *on"i"t of fin % "t te of /A# n< initi % "t te of /A2-

True / %"e Depen<" on % ngu ge None of the"e

Question No:

( Marks: 1 ) - Please choose one

T.o m *hine" re " i< to &e e:ui0 %ent if they print the " me output "tring .hen the <ifferent input "tring i" run on them

True / %"e Depen<" on % ngu ge M y &e or m y not &e

Question No: 1!

( Marks: 1 ) - Please choose one

Running the "tring && &&& on thi" Moore m *hine- The output" .i%% &e,,,,,,,,

&

:#A0 :2 A#
&

:0A#
&
:=A# #

& &

:= A0

#0####0#0 0####0#0 0#0####0 0#0#0#0#

Question No: 11

( Marks: 1 ) - Please choose one

4 2

)& )&

#7

B8
)& )&

& o & )&&& & C = 8

A&o0e gi0en T4;" re ,,,,,,,,,,,,,,-

None of the"e

E:ui0 %ent Non-e:ui0 %ent T4;" re not 0 %i<

Question No: 12

( Marks: 1 ) - Please choose one

T4 * n h 0e more th n one initi % "t te-

True / %"e Depen<" on %ph &et" None of the"e

Question No: 13

( Marks: 1 ) - Please choose one

8 77

& &

&

A&o0e gi0en /A **ept" nu%% "tringTrue / %"e /A i" not 0 %i< None of the"e

Question No: 14

( Marks: 1 ) - Please choose one

If in n N/A) i" %%o.e< to &e % &e% of n e<ge then th t N/A i" * %%e< ,,,,,,,,,-

Di%% not rem in N/A N/A .ith N/A .ith nu%% "tring Either EN/A .ith nu%% "tringE OR EN/A .ith E

Question No: 15

( Marks: 1 ) - Please choose one

One /A h " n "t te" n< m %etter" in the %ph &et- Then /A .i%% h 0e ,,,,, num&er of tr n"ition" in the <i gr m!n$8!m$ !m$!n$ OR !n$!m$ None of the gi0en option" !m$-!n$

Question No: 16

( Marks: 1 ) - Please choose one

! 8&$6 ! 8&$6&! 8&$6 i" the RE of % ngu ge <efine< o0er S'( )&+ h 0ing t %e "t one n< one &
True / %"e Su*h % ngu ge <oe" not e?i"t None of the gi0en option"

Question No: 17

( Marks: 1 )

I" the fo%%o.ing "t tement trueF A regu% r % ngu ge * n not &e infinite"ns : #$ %e&ular lan&ua&e is in$inite then %' is also in$inite it (e)en(s on lan&ua&e Question No: 18 ( Marks: 1 )

C n you " y th t for *ert in "tring there m y &e more th n one p th" in T4F An" G T4 there i" on%y one *ert in p th "t te &ut in 4T4 there i" %ot of "t te" n< p th" Question No: 1 ( Marks: 2 )

If % ngu ge * n &e **epte< &y n /A then it * n &e **epte< &y T4 " .e%%Dh t re the other t.o "t tement" of >%eene";" theoremF "ns : T* an( +" are sa,e -ut T* is also consi(ere( as +" an( +" is also .onsi(ere( as a T* as /ell Question No: 2! (Marks: 3 )

De"*ri&e the metho< of N/A *orre"pon<ing to Con* ten tion of /A""ns : N+" -uil( /ith +" there is T01 +" concatenate /ith each other an( so,e useless state can -e eli,inate then N+" Question No: 21 ( Marks: 5 )

Dr . /A *orre"pon<ing to fo%%o.ing N/AF


2 &

#- 48

& =

Question No: 22

( Marks: 1! )

3et 3 &e ny % ngu ge- 3et u" <efine the tr n"po"e of 3 to &e the % ngu ge of e? *t%y tho"e .or<" th t re the .or<" in 3 "pe%%e< & *>. r<- If . 3 then re0er"e !.$ 3- for e? mp%e) if 3 ' ( ) &&) && &) &&& +Then Tr n"po"e !3$ ' ( ) && ) & &&) &&&) 5ro0e th t if there i" n /A th t **ept" 3) then there i" T4 th t **ept" the tr n"po"e of 3-

You might also like