JNTUH FLAT Questions
JNTUH FLAT Questions
me/jntuh
13. Construct a DFA, the language recognized by the Automaton being L Apply
{anb/n 0}. Draw the transition table.
14. Construct the Minimized DFA Apply
15. Construct the DFA that accepts/recognizes the language L(M) = | Apply
w {a, b, c}* and w contains the pattern abac }. Draw the transition
table.
16. Construct NFA for given NFA with Є-moves Apply
S a S/A A a
18. Write the derivation of the string 110 from CFG – Apply
SA0/B A0/12/B B A/11
19. Write the Regular Expression to generate atleast one b over Apply
Σ ={a,b}
20. Write the Context free grammar for equal number of a’s and b’s. Apply
Long Answer Questions
1. Convert Regular Expression 01* + 1 to Finite Automata. Understand
2. Convert given Finite Automata to Regular Expression using Understand
Arden’s theorem with an example.
UNIT – III
Short Answer Questions
1. Define Greibach normal form. Remember
2. Define nullable Variable. Remember
3. Write the minimized CFG for the following grammar Remember
SABCa | bD
ABC |b
Bb | ε
CĐ| ε
Dd
4. Convert the grammar to CNF - S bA/aB AaS/a BbS/b. Understand
5. Explain the elimination of UNIT production. Understand
6. Explain the elimination of useless symbols in productions. Understand
7. Define CNF. Remember
8. Write the minimization of CFG – A a B aa Understand
S a S/A
9. Define the ambiguity in CFG. Remember
10. What is the use of CNF and GNF.
11. Write the minimization of CFG - S aS1b S1aS1b/ɛ. Understand
12. Write the minimization of CFG - S A A aA/ ɛ. Understand
13. Write the minimization of CFG - A a. Understand
S AB / a
14. Write the minimization of CFG - SaS/A/C A a B aa Understand
CaCb.
15. Write the minimization of CFG - SAbA AAa/ ɛ. Understand
16. Write the minimization of CFG - SaSa S bSb Sa/b/ ɛ. Understand
17. Write the minimization of CFG - SA0/B A0/12/B Understand
B A/11.
18. Convert the grammar to CNF - SaSa/aa SbSb/bb S a/b. Understand
19. Convert the grammar to CNF - SaAbB AaA/a BbB/a. Understand
20. Define PDA. Remember
21. Define NPDA. Remember
22. Differentiate between deterministic and nondeterministic PDA. Understand
23. Define the language of DPDA. Remember
24. List the steps to convert CFG to PDA. Remember
25. Explain – acceptance of PDF by final state. Understand
26. Explain – acceptance of PDF by empty stack. Understand
27. Convert the following PDA to CFG δ(q0,b,z0)={q0,zz0) Apply
28. Apply
Convert the following PDA to CFG (q0, b, z)=(q0,zz)
29. Apply
Convert the following PDA to CFG δ(q0, ϵ ,z0)=(q0,ϵ)
30. Apply
Convert the following PDA to CFG δ(q0,a,z) = (q1,z)
31. Convert the following PDA to CFG δ(q1,b,z)=(q1,ϵ) Apply
32. Convert the following PDA to CFG δ(q1,a,z0)=(q0,z0) Apply
33. Convert the following PDA to CFG δ(q0,0,z0)={q0,xz0) Apply
34. Convert the following PDA to CFG δ(q0,0,x)=(q0,xx) Apply
UNIT –III
Multiple Choice Questions
1. Regular grammars also known as _ _ _ _ _ _ _ _ _ _ _ _ grammar
a.Type 0 b.Type 1 c.Type 2 d.Type3
2. _ _ _ _ _ grammar is also known as Type 3 grammar.
a.un restricted b.context free c.context sensitive d.regular grammar
3. Which of the following is related to regular grammar ?
a.right linear b.left linear c.Right linear & left linear d.CFG
4. Regular grammar is a subset of _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ grammar.
a.Type 0 . b.Type 1 c.Type 2 d.Type 0,1 &2
5. Let L1 =(a+b) * a L2 =b*(a+b), L1 intersection L2 = _ _ _ _ _ _ _ _ _ _
a.(a+b) * ab b.ab ( a+b) * c.a ( a+b) * b d.b( a+b)*a
Fill in the Blanks
1. Let A = {0,1 } L= A * Let R = { 0 n1n , n >0 } then LUR regular
2. Pumping lemma is generally used for proving a given grammar is not regular
3. The logic of pumping lemma is a good example of the pigeon hole principle
4. In CFG each production is of the form Where A is a variable and is string of Symbols from
*(VUT) ( V, T are variables and terminals )
5. CFG is not closed under complementation
UNIT –IV
Multiple Choice Questions
1. Turing machine can be used to
a.Accept languages b.Compute functions c.a & b d.none
2. Any turing machine is more powerful than FSM because____
a.Tape movement is confined to one direction
b.It has no finite state control
UNIT –V
Multiple Choice Questions
1.PCP having no solution is called
a. undecidability of PCP b.decidability of PCP c.Semi-decidability of PCP d None
2. Which of the following is type- 2 grammar?
a.A→ α where A is terminal b.A→ α where A is Variable c.Both d.None
3. A recursive language is also called
a) Decidable b) Undecidable c) Both (a) and (b) d) None of these
4. The complement of recursive language is
a) Also recursive b) Regular c) Both (a) and (b) d) None of these
5. Recursively enumerable language are closed under
a) Concatenation b) Intersection c) Union d) All of these
Fill in the Blanks
1. Recursive languages are Accepted by turing machine
2. Halting problem & Boolean Satisfiability problem are unsolvable?
3. The value of n if turing machine is defined using n-tuples: 7
4. If d is not defined on the current state and the current tape symbol, then the machine halts
5. A language L is said to be decidable if there is a turing machine M such that L(M)=L and M
halts at every point.