Formal Languages and Automata Theory - Unit-4
AEliminating ε-productions
BEliminating useless symbols
CChomsky normalization
DGreibach conversion
Correct Answer
Eliminating useless symbols
AUseless production
BUnit production
Cε-production
DTerminal production
Correct Answer
ε-production
AA → BC or A → a
BA → B or A → ε
CA → aB
DA → α (where |α| ≤ 2)
Correct Answer
A → BC or A → a
AA->BC
BA->a
CS->e
DAll of the mentioned
Correct Answer
All of the mentioned
AS->AB|BC|CD, A->0, B->1, C->2, D->3
BS->AB, S->BCA|0|1|2|3
CS->ABa, A->aab, B->Ac
DAll of the mentioned
Correct Answer
S->AB|BC|CD, A->0, B->1, C->2, D->3
AA → aB₁B₂...Bₙ
BA → BC
CA → ε
DA → a
Correct Answer
A → aB₁B₂...Bₙ
Atop-down parser
Bbottom-up parser
Cmultitape turing machine
Dnone of the mentioned
Correct Answer
top-down parser
AEliminate ε-productions
BEliminate unit productions
CEnsure all productions are binary or terminal
DIntroduce left recursion
Correct Answer
Introduce left recursion
AAll strings in L can be divided into uvwxy
B|vwx| ≤ p and |vx| ≥ 1
Cuvⁿwxⁿy ∈ L for all n ≥ 0
DAll of the above
Correct Answer
All of the above
AProve a language is context-free
BProve a language is not context-free
CConvert CFGs to PDAs
DEliminate useless symbols
Correct Answer
Prove a language is not context-free
AL is regular
BL is context-free
CL is not context-free
DL is decidable
Correct Answer
L is not context-free
AThe string is non-empty
BAt least one symbol is pumped
CThe string is infinite
DThe grammar is in CNF
Correct Answer
At least one symbol is pumped
ARegular
BContext-free
CNot context-free
DRecursively enumerable
Correct Answer
Not context-free
AUnion
BConcatenation
CKleene star
DAll of the above
Correct Answer
All of the above
AIntersection
BComplement
CBoth A and B
DHomomorphism
Correct Answer
Both A and B
ARegular
BContext-free
CContext-sensitive
DUndecidable
Correct Answer
Context-free
AIntersection with another CFL
BComplementation
CSubstitution
DNone of the above
Correct Answer
Substitution
AUndecidable
BDecidable
CNP-complete
DOnly decidable for DCFLs
Correct Answer
Decidable
AAn infinite tape
BA stack
CFinite states
Dε-transitions
Correct Answer
An infinite tape
AA finite set of states
BAn input alphabet
CA stack alphabet
DA transition function
Correct Answer
A stack alphabet
ACurrent state, tape symbols, and head position
BOnly the tape contents
CThe transition function
DThe set of final states
Correct Answer
Current state, tape symbols, and head position
ARegular
BContext-free
CRecursively enumerable
DAll of the above
Correct Answer
Recursively enumerable
AMulti-tape turing machine
BPoly-tape turing maching
CUniversal turing machine
DAll of the mentioned
Correct Answer
Multi-tape turing machine