
TOC 4B
Authored by SAJU RAJ T
Other
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which transformation step is needed to convert a CFG to CNF?
Remove left recursion
Remove ε-productions
Remove unit productions
All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a step in converting CFG to GNF?
Left recursion removal
ε-production removal
Rewriting RHS to start with terminal
Push symbols to stack
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
CNF guarantees that every production has:
One terminal
Two variables or one terminal
Unit production
At least one ε
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In GNF, the RHS always begins with:
Terminal
Variable
ε
Combination
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which language violates the CFL pumping lemma?
{aⁿbⁿcⁿ | n ≥ 1}
{aⁿbⁿ | n ≥ 1}
Palindromes
{aⁿbᵐ | n ≠ m}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Pumping lemma for CFLs states the string can be broken as:
uvxy
uvxyz
uvx
uvxyz where |vxy| ≤ p and |vy| ≥ 1
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
CFLs are not closed under which operation:
Complement
Union
Substitution
Reversal
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?