
TOC 4B

Quiz
•
Other
•
University
•
Hard
SAJU RAJ T
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Grammar and PDA Quiz

Quiz
•
University
20 questions
Pengantar SEM

Quiz
•
University
20 questions
VPP Chatper 3.5-3.7

Quiz
•
University
20 questions
ASD LAST WEEK \o/

Quiz
•
University
25 questions
TOC 4A

Quiz
•
University
25 questions
Quiz on Context-Free Grammars

Quiz
•
University
20 questions
Logística U5

Quiz
•
University
20 questions
Strategic Digital Transformation in UiTM

Quiz
•
University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade