TOC 3B

TOC 3B

University

25 Qs

quiz-placeholder

Similar activities

UNIT - 2 C Bottom-Up Parsing Quiz

UNIT - 2 C Bottom-Up Parsing Quiz

University

25 Qs

Introduction to Linguistics

Introduction to Linguistics

University

20 Qs

TOC 4A

TOC 4A

University

25 Qs

PIL Unit review Quiz (2022)

PIL Unit review Quiz (2022)

University

20 Qs

TOC 3A

TOC 3A

University

25 Qs

TOC UNIT 2B

TOC UNIT 2B

University

25 Qs

Quiz on Context-Free Grammars

Quiz on Context-Free Grammars

University

25 Qs

TOC UNIT 2B

TOC UNIT 2B

University

25 Qs

TOC 3B

TOC 3B

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 grammar generates {aⁿbⁿcⁿ | n ≥ 1}?

CFG

Type 3

Type 1

Regular expression

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true for deterministic PDA?

It accepts all CFLs

Every N-PDA can be converted to D-PDA

D-PDA languages ⊂ CFLs

D-PDA = N-PDA

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which production causes left recursion?

A → aA

A → Aa

A → a

A → ε

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The language {aⁿbⁿcᵐ | n, m ≥ 0} is:

Regular

Context-free

Context-sensitive

Recursive

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A PDA accepts by final state if:

Stack is empty

Final state is reached

Both input and stack are empty

All of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In CFG, which form ensures no left recursion?

Greibach Normal Form

Chomsky Normal Form

Leftmost derivation

Rightmost derivation

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which string is not generated by S → aSb | ab?

ab

aabb

aaabbb

abab

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?