How To Exam?

a knowledge trading engine...


Bharathidasan University 2008 M.C.A COMPILER DESIGN - Question Paper

Friday, 18 January 2013 01:25Web

M.C.A Computer Applications COMPILER DESIGN ques. paper

2008 Barathidasan University

COMPILER DESIGN
Time:Three Hours Maximum:75 marks

PART A-(10*2=20)
ans All ques..

1.Define the role of input buffer in lexical analysis

2.Write regular expression to generate identifiers provide examples.

3.Define the elements of production.Give examples.

4.Construct of a parse tree to the string-(id+id) using left most derivation.

5.Write the function of syntax directed translation.

6.Write 3 address code to the statement A=-B*(C+D).

7.Explain the advantage of indirection in symbol table.

8.Write postfix expression to-B+C*P|E

9.List the criteria to the selection of optimizing transformations.

10.Define induction variable.Give examples.

PART B-(5*5=25)
ans All The ques..

11.(a) Draw transition diagrams to floating point numbers.
Or

(b)Write procedure for the construction of NFA from a regular expression

12.(a) discuss top-down parsing.Give example.

(b) explain the action of operator-precedence parser to the input id+id.

13.(a)Write semantic actions to the set of procedure.
S->E$
E ->E+E
E->E+E
E->(E)
E->I
I->I digit
I->digit.
Or
(b)Distinguish ranging from parse tree and syntax

14.(a) discuss the reusability concept of symbol table space.
Or
(b)Explain the formate of activation record.

15.(a)Discuss brief lexical phase fault.
Or
(b)What do you mean by code motion?Explain.

PART C-(3*10=30)
ans Any 3 ques..

16.Discuss neatly the language for specifying lexical analyzers.

17.Explain the principle of predictive parser.Give an example.

18.Discuss code optimization in detail.

19.Write notes on implementing block structured language.

20What is basis block?Explain the role of flow graph in basis blocks



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Bharathidasan University 2008 M.C.A COMPILER DESIGN - Question Paper