Learn and practice Aptitude questions and answers with explanation for interview, competitive exam (Pariksha Corner )

Theory Of Computation



Friday, January 24, 2020

Two finite state machines are said to be equivalent only if

Two finite state machines are said to be equivalent only if they
Ahave the same number of states
Bhave the same number of edges
Chave the same number of states and also the same number of edges
Drecognise the same set of tokens.
View Answer

most closely describes the regular expression 01 * 0

Which statement most closely describes the regular expression 01 * 0 ?
AIt represents a finite set of finite strings
BIt represents an infinite set of finite strings
CIt represents a finite set of infinite strings
DIt represents an infinite set of infinite strings.
View Answer

Thursday, January 23, 2020

Which of the following statements is wrong

Which of the following statements is wrong ?
AAny regular language has an equivalent CFG
BSome non-regular languages cannot be generated by any CFG
CIntersection of a context free language and a regular language is always context free
DAll languages can be generated by CFGs.
View Answer

The regular expression [ a\b ) { a\b ) denotes the set

The regular expression [ a\b ) { a\b ) denotes the set
A{ a, b }
B{ a, b, ba, bb}
C{ a, b, ab, aa}
D{ aa, ab, ba, bb }
View Answer

P, Q, R are three languages. PQ = R and P and R are regular.

P, Q, R are three languages. PQ = R and P and R are regular. This implies
AQ has to be regular
BQ cannot be regular
CQ need not be regular
DQ cannot be a CFL
View Answer

Categories