TOC 4A

TOC 4A

University

25 Qs

quiz-placeholder

Similar activities

Turing Machines Quiz

Turing Machines Quiz

University

25 Qs

TOC 1 B

TOC 1 B

University

25 Qs

Grammar and PDA Quiz

Grammar and PDA Quiz

University

25 Qs

Strategic Digital Transformation in UiTM

Strategic Digital Transformation in UiTM

University

20 Qs

UTS DASAR MEKANIKA TEKNIK

UTS DASAR MEKANIKA TEKNIK

University

20 Qs

Kuiz UiTM Dihatiku

Kuiz UiTM Dihatiku

University

20 Qs

Summer3 FY22

Summer3 FY22

KG - Professional Development

20 Qs

FLAT UNIT 5

FLAT UNIT 5

University

25 Qs

TOC 4A

TOC 4A

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

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

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?