JNTU

JNTU B.Tech III Year AUTOMATA AND COMPILER DESIGN Previous Question Paper (January/February - 2023 - R15)

B.Tech | III Year | III-I | R15 | January/February - 2023

Answer PaperPaper Code: 125DRMaximum Marks: 75Time: 3 hours

Note: i) Question paper consists of Part A, Part B. ii) Part A is compulsory, which carries 25 marks. In Part A, Answer all questions. iii) In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b as sub questions.

PART - A

(25 Marks)

115 marks
a

Define Token ,Pattern and Lexeme.

2 marks

Answer

A Token is a pair of the form (token-name, attribute-value). A Pattern is a rule that describes the set of strings that make up the token. A Lexeme is a sequence of characters in the source program that is matched by a pattern.

b

What is Context free grammar?

3 marks

Answer

A Context-Free Grammar (CFG) is a formal grammar where each production rule is of the form A → γ, where A is a single non-terminal symbol and γ is a string of terminals and/or non-terminals. CFGs are used to describe the syntax of programming languages and are fundamental to parsing.

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 a 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

(50 Marks)

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={a^2n/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,C→c/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

Write about inherited and synthesized attributes.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Explain in brief about 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 are 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 question paper of AUTOMATA AND COMPILER DESIGN from JNTU for B.Tech IT III Year III-I, January/February - 2023, R15.

For the solved question paper with answers, switch to the Answer Paper tab.

Other papers in AUTOMATA AND COMPILER DESIGN

Loading Question Papers

Fetching data from database...