Menu

Question Discussion & Solution

MCQ
Q.
Let G = (V, T, S, P) be a context-free grammar such that every one of its productions is of the form A ? ?, with |?| = k > 1. The derivation tree for any string W ? L (G) has a height such that

forum Community Discussion

speaker_notes_off

No discussions yet. Be the first to start!

You must be logged in to participate in the discussion.

login Login to Discuss

auto_awesome Similar Questions

MCQ
1.
Consider the following grammars G1 and G2 respectively. Grammar - G1:

A1 ? A2A3
A2 ? A3A1 | b
A3 ? A1A1 | a
Grammar - G2:

S ? AA | 0
A ? SS | 1
Consider the following statements regarding above grammars: (I): This grammar is not left recursive and equivalent to grammar - G1:

A1 ? A2A3
A2 ?  A3A1 | b
A3 ? a | bA3A1 | aK | bA3A1K 
k ? A1A3A1 | A1A3A1K
(II): This grammar is not left recursive and equivalent to grammar - G2:

S ? A A | 0
A ? 0S | 1 | 0SK | 1K
K ? AS | ASK
forum Discussion
MCQ
2.
Consider the following context-free grammar over the alphabet ? = {a, b} with S as the start symbol:
S ? AT 
A ? aAa | bAb | #T 
T ? aT | bT | ? 
Which of the following represents the language generated by the above grammar?
forum Discussion
MCQ
3.
====Which of the following operation can be applied on regular expressions?
forum Discussion
MCQ
4.
Which of the following pairs have DIFFERENT expressive power?
forum Discussion
MCQ
5.
Grammar that produce more than one Parse tree for same sentence is ___________
forum Discussion

category More Theory of Automata Topics

article

Reqular Expressions

format_list_bulleted 114 MCQs
article

Finite Automata

format_list_bulleted 44 MCQs
article

Context Free Grammars

format_list_bulleted 76 MCQs
article

Push Down Automata

format_list_bulleted 37 MCQs
article

Regular and context free languages

format_list_bulleted 65 MCQs
article

Pumping Lemma

format_list_bulleted 14 MCQs
article

Turning Machine

format_list_bulleted 14 MCQs