Search Header Logo

DMS - AMBIGUOUS GRAMMAR

Authored by VANITHA K

others

DMS - AMBIGUOUS GRAMMAR
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. A CFG is ambiguous if

It has more than one rightmost derivations
It has more than one leftmost derivations
No parse tree can be generated for the CFG
None of the mentioned

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. Which of the following are always unambiguous?

Deterministic Context free grammars
Non-Deterministic Regular grammars
Context sensitive grammar
None of the mentioned

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3. A CFG is not closed under

Dot operation
Union Operation
Concatenation
Iteration

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4. Which of the following is an real-world programming language ambiguity?

dangling else problem
halting problem
maze problem
none of the mentioned

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5. Which of the following is a parser for an ambiguous grammar?

GLR parser
Chart parser
All of the mentioned
None of the mentioned

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6. A language that admits only ambiguous grammar:

Inherent Ambiguous language
Inherent Unambiguous language
Context free language
Context Sensitive language

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. Which of the following is an example of inherent ambiguous language?

{an|n>1}
{anbncmdm| n,m > 0}
{0n1n|n>0}
None of the mentioned

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?