JNTU

JNTU B.Tech III AUTOMATA AND COMPILER DESIGN Previous Question Paper (May - 2018 - R15)

B.Tech | III | I | R15 | May - 2018

Answer PaperPaper Code: 125DRMaximum 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 Token, Pattern and Lexeme.

2 marks

Answer

A Token is a category of lexical units (e.g., identifier, keyword). A Pattern is the set of rules describing the form that the lexemes of a token may take. A Lexeme is the actual sequence of characters in the source program that matches the pattern for a token.

b

What is Context free grammar?

3 marks

Answer

A Context-Free Grammar (CFG) is a formal grammar defined by a 4-tuple (V, T, P, S), where V is a finite set of variables, T is a finite set of terminals, P is a finite set of production rules of the form A -> α (where A is a variable and α is a string of variables and terminals), and S is the start symbol.

c

What are the actions performed by Shift reduce parser?

2 marks

Answer

Sign in to view the complete answer paper.

d

List out the rules for FIRST and Follow.

3 marks

Answer

Sign in to view the complete answer paper.

e

What is type checking?

2 marks

Answer

Sign in to view the complete answer paper.

f

Draw the model of Chomsky hierarchy of grammars.

3 marks

Answer

Sign in to view the complete answer paper.

g

Define Flow Graph.

2 marks

Answer

Sign in to view the complete answer paper.

h

What is dynamic storage allocation?

3 marks

Answer

Sign in to view the complete answer paper.

i

Define Code generation.

2 marks

Answer

Sign in to view the complete answer paper.

j

List out the issues in the design of a code generation.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

Construct Finite Automata for the regular Expression 1(01+10)*00.

5 marks

Answer

Sign in to view the complete answer paper.

b

Show that L={a2n|n>0} is Regular.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Define Derivation tree. Explain about LMD and RMD.

5 marks

Answer

Sign in to view the complete answer paper.

b

Construct a derivation tree for the string abcd from the grammar: S→aAB, A→bC, B→d, C→cd.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Construct a LALR Parser for the Grammar: S→CC, C→cC | d.

5 marks

Answer

Sign in to view the complete answer paper.

b

Construct a annotated parse tree for the expression 3*5+4/n.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Construct SLR Parsing table for the grammar S→L=R | R, L→*R | id, R→L.

5 marks

Answer

Sign in to view the complete answer paper.

b

Construct an annotated parse tree for 9-5+2.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Explain in brief about Type checking and Type Conversion.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain about the procedure for checking polymorphic functions.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Explain in detail about Polymorphism.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain in brief about Chomsky hierarchy of grammars.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Differentiate between Static and Dynamic Storage allocation Strategies.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain in brief about Heap Storage allocation strategy.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

List out and explain about the criteria required for Code improving Transformations.

5 marks

Answer

Sign in to view the complete answer paper.

b

Define Basic block? 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 the procedure that eliminates global common sub expression.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is an Induction variable? Explain it with an example.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Explain reducible and non reducible flow graphs with examples.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain in detail about the garbage collection via Reference Counting.

5 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of AUTOMATA AND COMPILER DESIGN from JNTU for B.Tech IT III I, May - 2018, R15.

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

Other papers in AUTOMATA AND COMPILER DESIGN

Loading Question Papers

Fetching data from database...