Search Header Logo

TOC UNIT II - CFC

Authored by wjasmine jeya

Computers

KG

Used 6+ times

TOC UNIT II - CFC
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Let G=(V, T, P, S)

where a production can be written as:

S->aAS|a

A->SbA|ba|SS

Which of the following string is produced by the grammar?

aabbaa

aabbaab

baabab

None of the mentioned

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Simplify the given grammar:

A-> a| aaA| abBc

B-> abba| b

A-> a| aaA| ababbAc| abbc, B-> abba|b

A-> a| aaA| abbc, B->abba

None of the mentioned

A-> a| aaA| ababbAc| abbc

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For the given Regular expression, the minimum number of variables including starting variable required to derive its grammar is:

(011+1)*(01)*

4

6

3

5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The minimum number of productions required to produce a language consisting of palindrome strings over ∑={a,b} is

3

6

7

5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The entity which generate Language is termed as:

Grammar

Automata

Data

Tokens

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which among the following cannot be accepted by a regular grammar?

L is a set of string with odd number of 0

L is a set of binary complement

L is a set of 0n1n

L is a set of numbers divisible by 2

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For the given Regular expression, the minimum number of terminals required to derive its grammar is:

(011+1)*(01)*

4

6

3

5

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?