Search Header Logo

TOC 4A

Authored by SAJU RAJ T

Other

University

TOC 4A
AI

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

What is Chomsky Normal Form (CNF)?

Every production is of form A → aB

A → BC or A → a

A → a or ε

A → aB or ε

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not allowed in CNF?

A → a

A → BC

A → ε (except S → ε)

A → B

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Greibach Normal Form (GNF), productions are of the form:

A → a

A → aB

A → aα (a terminal followed by variables)

A → αa

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which normal form removes left recursion?

CNF

GNF

None

Both

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these can simplify a CFG?

Removing useless symbols

Removing ε-productions

Removing unit productions

All of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The pumping lemma for CFLs is used to:

Prove regularity

Prove a language is context-free

Prove a language is not context-free

Generate languages

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Pumping lemma applies to:

Regular languages only

All context-free languages

Recursive languages

All grammars

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?