TOC 4A

TOC 4A

University

25 Qs

quiz-placeholder

Similar activities

Kuiz UiTM Dihatiku

Kuiz UiTM Dihatiku

University

20 Qs

PIK BATU 14 TELUK MEDAN

PIK BATU 14 TELUK MEDAN

5th Grade - Professional Development

20 Qs

LKPD_pelaksanaan_pelaporan

LKPD_pelaksanaan_pelaporan

University

20 Qs

Soal & Kunci Jawaban PKPBA

Soal & Kunci Jawaban PKPBA

University

20 Qs

GPJJ 2024 Quiz 2

GPJJ 2024 Quiz 2

University

25 Qs

MK8 TTs Trivia

MK8 TTs Trivia

University

22 Qs

CTU101

CTU101

University

30 Qs

BC-202-Internal-09July

BC-202-Internal-09July

University

20 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?