Chapter Study

BSC CSIT Semester 4 Theory of Computation () Questions & Answers | Past TU Exam Papers

Practice from Theory of Computation with detailed solutions and model answers from past Tribhuvan University exams.

10
Questions
65
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)
Showing 10 questions

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.