CD Unit-I, II Question Bank
CD Unit-I, II Question Bank
UNIT -1
PART-A: SHORT ANSWER QUESTIONS
S. No. QUESTION BTL CO
1 What is Compiler? Describe the Analysis and Synthesis parts of a L1 CO1
Compiler.
2 List and explain the properties of compiler. L2 CO1
3 What is a translator? Write down the steps to execute a program. L2 CO1
3 Write the production rules to eliminate the left recursion and left L3 CO2
factoring problems.
Consider the following Grammar: A-> ABd|Aa|a
B-> Be|b
Remove left recursion.
4 Do left factoring in the following grammar: L3 CO2
A-> aAB|aA|a
B-> bB|b
5 Write the rules to construct the LR(1) items L1 CO2
6 Write the rules to construct the SLR parsing table. L1 CO2
PART-B: LONG ANSWER QUESTIONS
S. No. QUESTION BTL CO