TOC 4B

TOC 4B

University

25 Qs

quiz-placeholder

Similar activities

KUIZ KERJAYA T6

KUIZ KERJAYA T6

University

20 Qs

TFM 22425

TFM 22425

University

20 Qs

สอบปลายภาค วิชาเทคโนโลยีสารสนเทศสำหรับโซ่อุปทาน 1/2564

สอบปลายภาค วิชาเทคโนโลยีสารสนเทศสำหรับโซ่อุปทาน 1/2564

University

25 Qs

Ordinario Servicios de Internet

Ordinario Servicios de Internet

University

20 Qs

Pengantar SEM

Pengantar SEM

University

20 Qs

Dò chương 6,7 KTDC cho ny  =)

Dò chương 6,7 KTDC cho ny =)

University

24 Qs

FLAT UNIT 5

FLAT UNIT 5

University

25 Qs

Kuiz UiTM Dihatiku

Kuiz UiTM Dihatiku

University

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