TOC 4B

TOC 4B

University

25 Qs

quiz-placeholder

Similar activities

Ordinario Servicios de Internet

Ordinario Servicios de Internet

University

20 Qs

My hero academia quiz

My hero academia quiz

KG - University

21 Qs

Kuiz Informasi Sukan UiTM Kelantan

Kuiz Informasi Sukan UiTM Kelantan

University

25 Qs

Pengantar SEM

Pengantar SEM

University

20 Qs

TOC 4A

TOC 4A

University

25 Qs

Quiz on Context-Free Grammars

Quiz on Context-Free Grammars

University

25 Qs

Strategic Digital Transformation in UiTM

Strategic Digital Transformation in UiTM

University

20 Qs

Grammar and PDA Quiz

Grammar and PDA Quiz

University

25 Qs

TOC 4B

TOC 4B

Assessment

Quiz

Other

University

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?