JNTU

JNTU B.Tech III COMPILER DESIGN Previous Question Paper (November/December - 2018 - R13)

B.Tech | III | I | R13 | November/December - 2018

Answer PaperPaper Code: 115APMaximum Marks: 75Time: 3 hours

Note: This question paper contains two parts A and B. Part A is compulsory which carries 25 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit. Each question carries 10 marks and may have a, b, c as sub questions.

PART - A

125 marks
a

Define Boot strapping?

2 marks

Answer

Bootstrapping is the process of using a compiler (or assembler) to compile itself. It involves writing the initial version of a compiler in a lower-level language and then using it to compile a more advanced version of the same compiler written in the language it is intended to support.

b

What are the draw backs of predictive parsing?

3 marks

Answer

The primary drawbacks of predictive parsing (specifically LL(1) parsers) include:

  • It cannot handle left-recursive grammars, requiring grammar transformation.
  • It requires the grammar to be left-factored to resolve ambiguities.
  • It is limited in power compared to bottom-up parsers, as it cannot handle all context-free grammars.
c

What are the actions performed by Shift reduce parser?

2 marks

Answer

Sign in to view the complete answer paper.

d

Differentiate between SLR, LALR and CLR parsers.

3 marks

Answer

Sign in to view the complete answer paper.

e

What are the applications of DAG?

2 marks

Answer

Sign in to view the complete answer paper.

f

What are the advantages of stack storage allocation strategy?

3 marks

Answer

Sign in to view the complete answer paper.

g

Define Basic block. What are the rules for defining a basic block?

2 marks

Answer

Sign in to view the complete answer paper.

h

What is common sub expression elimination?

3 marks

Answer

Sign in to view the complete answer paper.

i

Define Dead code elimination?

2 marks

Answer

Sign in to view the complete answer paper.

j

What is register allocation? Give a brief description.

3 marks

Answer

Sign in to view the complete answer paper.

PART - B

210 marks
a

Define Regular Expression. Explain about the Properties of Regular Expressions.

5 marks

Answer

Sign in to view the complete answer paper.

b

Differentiate between Top down and bottom up parsing techniques.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Define Compiler? Explain in brief about the types of lexical errors with example.

4 marks

Answer

Sign in to view the complete answer paper.

b

Construct a Predictive parsing table for the Grammar E→E+T/T, T→T*F/F, F→ (E)/id?

6 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Construct LALR Parsing table for the grammar S→L=R/R, L→*R/id, R→L

6 marks

Answer

Sign in to view the complete answer paper.

b

Define Ambiguous Grammar? Check whether the grammar S→aAB, A→bC/cd, C→cd, B→c/d Is Ambiguous or not?

4 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Construct SLR Parsing table for the grammar S→ (L)|a, L→L,s|s

6 marks

Answer

Sign in to view the complete answer paper.

b

Discuss in brief about model of LR parser.

4 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Construct a Quadruple, Triple and Indirect Triple for the statement a+a*(b-c) +(b-c)*d?

5 marks

Answer

Sign in to view the complete answer paper.

b

Differentiate between Static and Dynamic Storage allocation Strategies.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Construct an annotated parse tree for real id1, id2, id3.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain in brief about equivalence of type expressions.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Explain in brief about different Principal sources of optimization techniques with suitable examples.

5 marks

Answer

Sign in to view the complete answer paper.

b

Define Flow Graph? Explain how a given program can be converted into flow graph?

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Explain in brief about function preserving transformations on basic blocks.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain in brief about optimization of basic blocks.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Explain in detail about global common sub expression elimination technique.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain in brief about Induction variable elimination.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Explain in brief about the issues in the design of code generator.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain in detail about peep hole optimization.

5 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of COMPILER DESIGN from JNTU for B.Tech CSE III I, November/December - 2018, R13.

For the question paper without answers, switch to the Question Paper tab.

Other papers in COMPILER DESIGN

Loading Question Papers

Fetching data from database...