www.QuestionPaperDownload.com

Code No: 07A51201

R07

Set No. 2

III B.Tech I Semester Examinations,November 2010 AUTOMATA AND COMPILER DESIGN Common to Information Technology, Computer Science And Systems Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ????? 1. Write a short note on following terms: (a) NFA (b) Regular expressions (c) Transition diagram (d) Token.

[4+4+4+4]

2. (a) What is operator precedence grammar? What precedence relations are defined between terminals? (b) Distinguish between SLR & CLR parsers.

[8+8]

3. (a) Write the code sequences for indexed and pointer assignments. (b) Discuss DAG representation of basic block.

[8+8]

4. (a) Consider following pseudo program and find the result if the arguments are passed by call-by- value, call by reference & call by value result. begin int a proc p(b); int b begin b=b+1; print(b,a) end a=1 p(a) print(a) end (b) Discuss the merits and demerits of static allocation strategy.

[8+8]

5. (a) How do you handle a nonreducible flow graph. Explain with a suitable example. (b) Discuss loop optimization techniques.

[8+8]

6. (a) What is Chomsky normal form? Explain with an example. (b) Prove that L= {0 ↑ k ↑ 2 / k is any integer} is not a CFL. (0 ↑ k ↑ 2 is 0 to the power k to the power 2). [8+8] 7. Verify whether string id+(id+id) is accepted by following grammar or not by using predictive parsing: E → T E0 www.QuestionPaperDownload.com

www.QuestionPaperDownload.com

Code No: 07A51201

R07

Set No. 2

E 0 → +T E 0 / ∈ T → FT0 T 0 → ∗F T 0 / ∈ F → (E)/id

[16]

8. (a) The following grammar defines list of literals. Write semantic rules to find type of expressions & lists. P → D; E D → D; D/id : T T → list if T/char/integer E → (L)/literal/num/id L → E, L/E (b) Write a short note bottom up evaluation of inherited attributes. ?????

www.QuestionPaperDownload.com

[8+8]

www.QuestionPaperDownload.com

Code No: 07A51201

R07

Set No. 4

III B.Tech I Semester Examinations,November 2010 AUTOMATA AND COMPILER DESIGN Common to Information Technology, Computer Science And Systems Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ????? 1. (a) Explain recursive descent parsing in detail. (b) State the rules to compute FIRST(X) & FOLLOW(X).

[8+8]

2. (a) State & prove CFL pumming lemma. (b) What is Chomsky normal form? Explain with an example.

[8+8]

3. Write short notes on following: (a) Activation record. (b) Dynamic scope. (c) Call by copy restore. (d) Access links.

[16]

4. (a) Explain LALR parser in detail. (b) Give YACC specification for desk calculator.

[8+8]

5. (a) Explain inherited attribute. Give examples. (b) Give translation scheme for case statement.

[8+8]

6. (a) Generate code for following c program: main() { int i; int a[10]; while(i < = 10) a[i]=0; } (b) Explain the register allocation by graph coloring.

[8+8]

7. (a) Show the effect of break-statement on gen and kill sets with an example. (b) Discuss loop optimization techniques.

[8+8]

8. (a) Describe in English the sets denoted by the following regular expressions: i. [00 + 11 + (01 + 10)(00 + 11)∗ (01 + 10)∗ ] ii. 10+(0+11)0*1 www.QuestionPaperDownload.com

www.QuestionPaperDownload.com

Code No: 07A51201

R07

Set No. 4

(b) Prove following identities for regular expressions r, s & t. Here r=s means L(r)=L(s) i. (r*s*)*=(r+s)* ii. (r+s)+t=r+(s+t) ?????

www.QuestionPaperDownload.com

www.QuestionPaperDownload.com

Code No: 07A51201

R07

Set No. 1

III B.Tech I Semester Examinations,November 2010 AUTOMATA AND COMPILER DESIGN Common to Information Technology, Computer Science And Systems Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ????? 1. (a) Define regular expression. Give examples. (b) State & explain the properties of regular sets.

[4+12]

2. Write short notes on following terms: (a) dominators. (b) natural loops. (c) inner loops. (d) preheaders.

[16]

3. (a) Explain handle pruning process. Give examples. (b) How are the shift-reduce conflicts resolved in bottom-up parsing.

[8+8]

4. (a) Write the algorithm for predictive parsing. (b) Check for LL(1) ness for following grammar: prog → begin d semi X end X → d semi X/sY Y → semi s Y/∈

[8+8]

5. (a) Write a short note on L-attributed grammars. (b) What is syntax tree? For the following grammar, write semantic rules to construct syntax tree: E → E + T /E − T E→T T → (E) T → id/num Write the sequence of function calls to construct syntax tree for following expression : a+a∗(b-c)+(b-c)∗d [8+8] 6. (a) Explain the register allocation by graph coloring. (b) Generate code for the following C statements. Assume all the variables are automatic and three registers are available: i. x=a+b*c ii. x=(a*-b)+(c-(d+e)) www.QuestionPaperDownload.com

www.QuestionPaperDownload.com

Code No: 07A51201

R07

Set No. 1

iii. x=(a/b-c)/d.

[8+8]

7. (a) Give some solutions to resolve an overloaded symbol. (b) Give an algorithm to test the equivalence of C types.

[8+8]

8. (a) Discuss lexical scoping with nested procedures and without nested procedures. (b) Describe the method to obtain faster access to nonlocals. ?????

www.QuestionPaperDownload.com

[8+8]

www.QuestionPaperDownload.com

Code No: 07A51201

R07

Set No. 3

III B.Tech I Semester Examinations,November 2010 AUTOMATA AND COMPILER DESIGN Common to Information Technology, Computer Science And Systems Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ????? 1. (a) Write the algorithm for predictive parsing. (b) Explain error recovery in predictive parsing.

[8+8]

2. (a) Explain error recovery inYACC. (b) What are the disadvantages of recursive descent parsing?

[8+8]

3. (a) What is dependency graph? What is its significance? (b) Translate the expression (a+b)∗(c+d)+(a+b+c) into. i. ii. iii. iv.

Quadruples. Triples. Indirect triples. Syntax tree.

[8+8]

4. (a) Discuss loop optimization techniques. (b) What are reducible flow graphs? Explain with examples.

[8+8]

5. (a) Generate code for the following C statements: i. x=f(a)+f(a)+f(a) ii. x=f(a)/g(b,c) iii. x=f(f(a)) (b) Explain the register assignment for outer loops.

[8+8]

6. (a) Describe the facilities provided by languages for dynamic allocation of storage of data. (b) Write short notes on following: i. ii. iii. iv.

Activation record. Dynamic scope. Call by copy restore. Access links.

[8+8]

7. Construct FA equivalent to following regular expression: (a) (1 + 01 + 001)∗ (ε + 0 + 00) (b) ((0 + 1) (0 + 1))∗ + ((0 + 1) (0 + 1) (0 + 1))∗ . www.QuestionPaperDownload.com

[8+8]

www.QuestionPaperDownload.com

Code No: 07A51201

R07

Set No. 3

8. (a) What is type expression? Write type expressions for the following types: i. An array of pointers to reals, where the array index ranges from 1 to 100. ii. A two dimensional array of integers whose rows are indexed from 0 to 9 and whose columns are indexed from -10 to 10. iii. Functions whose domains are functions from integers to pointers to integers and whose ranges are records consisting of an integer and a character. (b) Prove that L={0 ↑ k ↑ 2 / k is any integer} is not a CFL. (0 ↑ k ↑ 2 is 0 to the power k to the power 2). [8+8] ?????

www.QuestionPaperDownload.com

B Tech 3-1 R07 Acd-IT Question paper.pdf

10+(0+11)0*1. www.QuestionPaperDownload.com www.QuestionPaperDownload.com. Page 3 of 8. B Tech 3-1 R07 Acd-IT Question paper.pdf. B Tech 3-1 R07 ...

393KB Sizes 1 Downloads 130 Views

Recommend Documents

B Tech 2-1 R07 EEE Question Paper.pdf
QuestionPaperDownload.com www.QuestionPaperDownload.com. Page 3 of 8. B Tech 2-1 R07 EEE Question Paper.pdf. B Tech 2-1 R07 EEE Question Paper.

B Tech 2-1 R07 PDC Question Paper.pdf
www.QuestionPaperDownload.com www.QuestionPaperDownload.com. Page 3 of 12. B Tech 2-1 R07 PDC Question Paper.pdf. B Tech 2-1 R07 PDC Question ...

B Tech 1st Year R07 MI Question paper.pdf
Computer Science & Engineering, Chemical Engineering, Electronics &. Instrumentation Engineering, Bio-Medical Engineering, Information. Technology ...

B Tech 2-1 R07 UNIX2 Question Paper.pdf
Page 1 of 8. Code No: 07A3EC17 R07 Set No. 2. II B.Tech I Semester Examinations,November 2010. UNIX AND SHELL PROGRAMMING. Common to ...

B Tech 2-1 R07 ECA Question Paper.pdf
Vinom = 40V,Vimin = 35V, Vimax = 45V Vz = 20V, rz = 5 ohms ILmin= 0mA,ILmax. = 100mA Izmin = 10mA, Izmax = 400mA. Find Pzmax and load resistance. [8+8]. 3. (a) The basic Switching regulator is designed to maintain a 12V dc output when. the unregulate

B Tech 2-1 R07 MFCS Question Paper.pdf
Show that R is an equivalence relation. (b) Let A = {1, 2, 3, 4} and P = {{1, 2,3}, {4}} be a partition of A. Find the. equivalence relation determined by P. [10+6]. 3.

B Tech 2-1 R07 BIOCHEM Question Paper.pdf
There was a problem loading this page. B Tech 2-1 R07 BIOCHEM Question Paper.pdf. B Tech 2-1 R07 BIOCHEM Question Paper.pdf. Open. Extract. Open with.

B Tech 2-1 R07 STLD Question Paper.pdf
(a) Give a detailed comparison between combinational logic circuits and sequential. logic circuits. (b) Design a basic flip flop and explain its operation. [8+8] ?

B Tech 2-1 R07 THEMSCI Question Paper.pdf
QuestionPaperDownload.com. Page 3 of 8. B Tech 2-1 R07 THEMSCI Question Paper.pdf. B Tech 2-1 R07 THEMSCI Question Paper.pdf. Open. Extract.

B Tech 2-1 R07 MMS Question Paper.pdf
QuestionPaperDownload.com. Page 3 of 8. B Tech 2-1 R07 MMS Question Paper.pdf. B Tech 2-1 R07 MMS Question Paper.pdf. Open. Extract. Open with.

B Tech 2-1 R07 FMHM Question Paper.pdf
QuestionPaperDownload.com. Page 3 of 8. B Tech 2-1 R07 FMHM Question Paper.pdf. B Tech 2-1 R07 FMHM Question Paper.pdf. Open. Extract. Open with.

B Tech 2-1 R07 ELEENG Question Paper.pdf
(b) Discuss the Ward Leonard method of Speed control of DC motors. [8+8]. 6. Discuss different classifications of analog instruments and explain each of them.

B Tech 2-1 R07 ACBC Question Paper.pdf
(a) Write a short note on Synthetic rubber. (b) Compare natural rubber and vulcanized rubber? (c) Write a note on the engineering uses of Vulcanised rubber?

B Tech 1st Year R07 R7100101-ENG Question Paper.pdf ...
Page 1 of 1. Code :R7100101 R7. B.Tech I Year (R07) Supplementary Examinations, December 2010. ENGLISH. (Common to Civil Engineering, Mechanical ...

B Tech 2-1 R07 BIOEE Question Paper.pdf
Describe various studies conducted on nerve conduction including Galvani and. Volta's experimentation, Goldman's theory and Hodgekin and huxely's observa- ...

B Tech 2-1 R07 EMF Question Paper.pdf
QuestionPaperDownload.com www.QuestionPaperDownload.com. Whoops! There was a problem loading this page. B Tech 2-1 R07 EMF Question Paper.pdf.

B Tech 4-1 R07 DIMP Question Paper.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. B Tech 4-1 R07 ...

B Tech 2-1 R07 FLUIDMECH Question Paper.pdf
What will be the discharge when a cast iron. pipe of roughness k = 0.3 mm is used ? what will be the percentage increase in. the discharge if the cast iron pipe is ...

B Tech 2-1 R07 MOF Question Paper.pdf
QuestionPaperDownload.com www.QuestionPaperDownload.com. Whoops! There was a problem loading this page. B Tech 2-1 R07 MOF Question Paper.pdf.

B Tech 2-1 R07 STLD Question Paper.pdf
(c) Give the truth table for the Boolean expression (X0+Y)0. [4+8+4]. 6. Using Q-M method to determine the prime implicants and obtain the possible. minimal ...

B Tech 2-1 R07 PTECH Question Paper.pdf
QuestionPaperDownload.com. Page 3 of 4. B Tech 2-1 R07 PTECH Question Paper.pdf. B Tech 2-1 R07 PTECH Question Paper.pdf. Open. Extract. Open with.

B Tech 2-1 R07 MT Question Paper.pdf
(b) What are the advantages and disadvantages of Ellingham diagrams? [8+8]. 6. (a) Explain what do you mean by thermodynamic equillibrium. (b) Discuss the ...

B Tech 4-1 R07 HVDCTRANSM-EEE Question paper.pdf ...
QuestionPaperDownload.com. Page 3 of 5. B Tech 4-1 R07 HVDCTRANSM-EEE Question paper.pdf. B Tech 4-1 R07 HVDCTRANSM-EEE Question paper.pdf.

B Tech 2-1 R07 DLD Question Paper.pdf
Page 1. Whoops! There was a problem loading more pages. Retrying... B Tech 2-1 R07 DLD Question Paper.pdf. B Tech 2-1 R07 DLD Question Paper.pdf.