Chapter Study

Bsc CSIT Semester 4 Theory of Computation Unit IV: Context Free Grammar (9 Hrs.)

Comprehensive questions and detailed answers for Unit IV: Context Free Grammar (9 Hrs.). Perfect for exam preparation and concept clarity.

12
Questions
75
Marks
Back to All Chapters

Define Chomsky Normal Form and Greibach Normal Form in reference to CFG. Give a suitable example of each.

MediumTHEORY5 marks2076(TU Final)

Explain about the Chomsky’s Hierarchy about the language and programs.

MediumTHEORY5 marks2078(TU Final)

Construct the following grammer into Chomsky Normal Form.

S → abSb | a | aAb

A → bS | aAAb | ε

MediumTHEORY5 marks2078(TU Final)

Given the following expression grammar for simple arithematic expression with operator + and *. E→ E+T | T T → T+F | F F → (E) | a Remove the left recursion from this grammar then simplify and convert to CNF

HardTHEORY10 marks2079(TU Final)

Define the term: Parse Tree, left-most and right-most derivation, sentential form and ambiguity with example.

MediumTHEORY5 marks2079(TU Final)

Define regular grammar. Also explain the method of converting right linear grammar into equivalent finite automata.

MediumTHEORY5 marks2079(TU Final)

Define context free grammar with an example. Explain with example, how context free grammar is converted to Chomsky Normal Form.

HardTHEORY10 marks2080(TU Final)

What is the meaning of the term “Context Free” in context free grammar? Justify with a suitable example. What is the need of a parse tree?

MediumTHEORY5 marks2080(TU Final)

Define CFG. Construct a CFG that generates the language of all palindromes over {a,b} that do not contain the substring aa. Show the leftmost derevation and construct the equivalent parse tree for string babbbab.

HardTHEORY10 marks2080(TU Final)

Prove that the language L={anbncnn0}L=\{\,a^n b^n c^n \mid n \ge 0\,\} is not a context free grammar.

MediumTHEORY5 marks2080(TU Final)

Define the language of a grammar. For the grammar S → 0S0 | 1 | ε, show the leftmost derivation for the string 00100 with its parse tree.

MediumTHEORY5 marks2081(TU Final)

Convert the following grammar to CNF. S → AAB, A → aA | ε, B → ab | a

MediumTHEORY5 marks2081(TU Final)
Showing 12 questions

Sample Questions

Define Chomsky Normal Form and Greibach Normal Form in reference to CFG. Give a suitable example of each.

Marks: 5Chapter: Unit IV: Context Free Grammar (9 Hrs.)

Explain about the Chomsky’s Hierarchy about the language and programs.

Marks: 5Chapter: Unit IV: Context Free Grammar (9 Hrs.)

Construct the following grammer into Chomsky Normal Form. S → abSb | a | aAb A → bS | aAAb | ε

Marks: 5Chapter: Unit IV: Context Free Grammar (9 Hrs.)

Given the following expression grammar for simple arithematic expression with operator + and . E→ E+T | T T → T+F | F F → (E) | a Remove the left recursion from this grammar then simplify and convert

Marks: 10Chapter: Unit IV: Context Free Grammar (9 Hrs.)

Define the term: Parse Tree, left-most and right-most derivation, sentential form and ambiguity with example.

Marks: 5Chapter: Unit IV: Context Free Grammar (9 Hrs.)

And more questions available on this page.

Unit IV: Context Free Grammar (9 Hrs.) chapter questions with answers for Theory of Computation (Bsc CSIT Semester 4). Prepare for TU exams with our comprehensive question bank and model answers.