Code No: 07A51201

R07

Set No. 2

III B.Tech I Semester Examinations,December 2011 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) 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 (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) 2. (a) Explain recursive descent parsing in detail. (b) Remove ambiguity from following grammar: R→ ’|’R/RR/R*/(R)/a/b.

[8+8]

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

[8+8]

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

[16]

5. (a) Consider following expression grammar: S→E E → E + E/E ∗ E/(E)/I I → Idigit/digit Digit → 0/1/2/..../9 Write semantic rules to evaluate expression on decimal numbers that it derives. Use ‘val’ attribute for storing the values & constant parse tree for 2*(21+1)+10. Find S.val. (b) What is the significance of syntax- directed definition. 6. (a) Consider following code: begin boolean b=true proc p; print (b) end 1

[8+8]

Code No: 07A51201

R07

Set No. 2

boolean b=false b end What is the output if static & dynamic scoping rules are applied. (b) Discuss the merits and demerits of static allocation strategy.

[8+8]

7. (a) Discuss various object code forms. (b) Write a short note on code generating algorithms.

[8+8]

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) What is meant by structural equivalence? Assume the following definitions: type link = ↑ cell; var next:link; last:link; p: ↑ cell; q,r: ↑ cell; Which among the following expression are structurally equivalent? Which are name equivalent? i. ii. iii. iv.

link. pointer(cell). pointer(link). pointer(record(info∗integer)∗(next∗pointer(cell))). ?????

2

[8+8]

Code No: 07A51201

R07

Set No. 4

III B.Tech I Semester Examinations,December 2011 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) Discuss various object code forms. (b) Write a short note on code generating algorithms.

[8+8]

2. (a) Explain recursive descent parsing in detail. (b) Remove ambiguity from following grammar: R→ ’|’R/RR/R*/(R)/a/b.

[8+8]

3. (a) Consider following code: begin boolean b=true proc p; print (b) end boolean b=false b end What is the output if static & dynamic scoping rules are applied. (b) Discuss the merits and demerits of static allocation strategy.

[8+8]

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

[16]

5. (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) What is meant by structural equivalence? Assume the following definitions: type link = ↑ cell; var next:link; last:link; p: ↑ cell; q,r: ↑ cell; Which among the following expression are structurally equivalent? Which are name equivalent? 3

Code No: 07A51201 i. ii. iii. iv.

R07

Set No. 4

link. pointer(cell). pointer(link). pointer(record(info∗integer)∗(next∗pointer(cell))).

[8+8]

6. (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 (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) 7. (a) Consider following expression grammar: S→E E → E + E/E ∗ E/(E)/I I → Idigit/digit Digit → 0/1/2/..../9 Write semantic rules to evaluate expression on decimal numbers that it derives. Use ‘val’ attribute for storing the values & constant parse tree for 2*(21+1)+10. Find S.val. (b) What is the significance of syntax- directed definition.

[8+8]

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

4

[8+8]

Code No: 07A51201

R07

Set No. 1

III B.Tech I Semester Examinations,December 2011 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) Remove ambiguity from following grammar: R→ ’|’R/RR/R*/(R)/a/b.

[8+8]

2. (a) Discuss various object code forms. (b) Write a short note on code generating algorithms.

[8+8]

3. (a) Consider following code: begin boolean b=true proc p; print (b) end boolean b=false b end What is the output if static & dynamic scoping rules are applied. (b) Discuss the merits and demerits of static allocation strategy.

[8+8]

4. (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 (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) 5. (a) Consider following expression grammar: S→E E → E + E/E ∗ E/(E)/I I → Idigit/digit Digit → 0/1/2/..../9 Write semantic rules to evaluate expression on decimal numbers that it derives. Use ‘val’ attribute for storing the values & constant parse tree for 2*(21+1)+10. Find S.val. (b) What is the significance of syntax- directed definition.

[8+8]

6. (a) What is type expression? Write type expressions for the following types: 5

Code No: 07A51201

R07

Set No. 1

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) What is meant by structural equivalence? Assume the following definitions: type link = ↑ cell; var next:link; last:link; p: ↑ cell; q,r: ↑ cell; Which among the following expression are structurally equivalent? Which are name equivalent? i. ii. iii. iv.

link. pointer(cell). pointer(link). pointer(record(info∗integer)∗(next∗pointer(cell))).

[8+8]

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

[16]

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

6

[8+8]

Code No: 07A51201

R07

Set No. 3

III B.Tech I Semester Examinations,December 2011 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 error recovery inYACC. (b) What are the disadvantages of recursive descent parsing?

[8+8]

2. (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 (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) 3. (a) Consider following expression grammar: S→E E → E + E/E ∗ E/(E)/I I → Idigit/digit Digit → 0/1/2/..../9 Write semantic rules to evaluate expression on decimal numbers that it derives. Use ‘val’ attribute for storing the values & constant parse tree for 2*(21+1)+10. Find S.val. (b) What is the significance of syntax- directed definition.

[8+8]

4. (a) Discuss various object code forms. (b) Write a short note on code generating algorithms.

[8+8]

5. (a) Explain recursive descent parsing in detail. (b) Remove ambiguity from following grammar: R→ ’|’R/RR/R*/(R)/a/b.

[8+8]

6. (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.

7

Code No: 07A51201

R07

Set No. 3

(b) What is meant by structural equivalence? Assume the following definitions: type link = ↑ cell; var next:link; last:link; p: ↑ cell; q,r: ↑ cell; Which among the following expression are structurally equivalent? Which are name equivalent? i. ii. iii. iv.

link. pointer(cell). pointer(link). pointer(record(info∗integer)∗(next∗pointer(cell))).

[8+8]

7. (a) Consider following code: begin boolean b=true proc p; print (b) end boolean b=false b end What is the output if static & dynamic scoping rules are applied. (b) Discuss the merits and demerits of static allocation strategy.

[8+8]

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

[16] ?????

8

R07 III B.Tech I Semester Examinations,December 2011 AUTOMATA ...

There was a problem previewing this document. Retrying... Download. Connect more apps... R07 III B.Tec ... gineering.pdf. R07 III B.Tech ... ngineering.pdf.

50KB Sizes 1 Downloads 146 Views

Recommend Documents

R07 IV B.Tech I Semester Examinations,MAY 2011 AUTOMATA ...
R07 IV B.Tech I Semester Examinations,MAY 2011 AU ... R DESIGN Electronics And Computer Engineering.pdf. R07 IV B.Tech I Semester Examinations,MAY ...

R05 III B.Tech I Semester Examinations,December 2011 AUTOMATA ...
R05 III B.Tech I Semester Examinations,December 20 ... logy, Computer Science And Systems Engineering.pdf. R05 III B.Tech I Semester Examinations ...

R05 III B.Tech I Semester Examinations,November 2010 AUTOMATA ...
R05 III B.Tech I Semester Examinations,November 20 ... logy, Computer Science And Systems Engineering.pdf. R05 III B.Tech I Semester Examinations ...

R07 IV B.Tech I Semester Examinations,December 2011 ...
R DESIGN Electronics And Computer Engineering.pdf. R07 IV B.Tech I Semester Examinations,December 201 ... ER DESIGN Electronics And Computer ...

III B.Tech I Semester Examinations,December 2011 TRANSDUCERS ...
III B.Tech I Semester Examinations,December 2011 · TRANSDUCERS AND APPLICATIONS · Electronics And Instrumentation Engineering · Time: 3 hours · Max Marks: 75 · Answer any FIVE Questions · All Questions carry equal marks · ***** · 1. Explain the princ

B. Tech III Year I Semester Examinations, December-2011 NETWORK ...
NETWORK THEORY · (ELECTRICAL AND ELECTRONICS ... Y parameters and h-parameters. b) Obtain hybrid parameters for the network shown in Fig – 2.

NR311103 III B.Tech I Semester Supplementary Examinations ...
(a) Explain the pre-anesthetic care and preparation undertaken in a hospital. Why it is important? Explain. [8] · (b) How the patients are monitored during surgery ...

NR310204 III B.Tech I Semester Supplementary Examinations ...
III B.Tech I Semester Supplementary Examinations, November 2005. POWER ELECTRONICS · (Electrical & Electronic Engineering) · Time: 3 hours · Max Marks: 80 · Answer any FIVE Questions · All Questions carry equal marks · ***** · 1. (a) Explain the oper

NR311301 III B.Tech I Semester Supplementary Examinations ...
(c) Explain inverted paging method of memory management. [4+4+8] · 4. (a) Explain banker's algorithm for deadlock detection. (b) What are the criteria for a ...

NR311901 III B.Tech I Semester Supplementary Examinations ...
(a) Discuss the path sensitization in a combinational circuit. shown in figure1 · (b) Find the test set to detect A1- SA0 and A1- SA1 faults using Boolean difference.

NR311105 III B.Tech I Semester Supplementary Examinations ...
Code No: NR311105. NR. III B.Tech I Semester Supplementary Examinations, November 2005. BIO-MEDICAL EQUIPMENT · (Bio-Medical Engineering).

NR311904 III B.Tech I Semester Supplementary Examinations ...
Code No: NR311904. NR. III B.Tech I Semester Supplementary Examinations, November 2006 · COMPUTER GRAPHICS · (Electronics & Computer Engineering).

NR310405 III B.Tech I Semester Supplementary Examinations ...
8. The convolutional encoder is given below Figure1: · Figure 1: ... (b) Construct a code tree for the convolutional encoder for 3-bit input data. [10] · ⋆⋆⋆⋆⋆.

NR310305 III B.Tech I Semester Supplementary Examinations ...
i. plain carbon steel with 4% carbon and 0.8% manganese, ... (a) It is required to design a square key for fixing a gear on a shaft of 30 mm · diameter; to transmit ...

NR311803 III B.Tech I Semester Supplementary Examinations ...
III B.Tech I Semester Supplementary Examinations, November 2005. HEAT TREATMENT TECHNOLOGY · (Metallurgy & Material Technology) · Time: 3 hours.

NR310105 III B.Tech I Semester Supplementary Examinations ...
(b) The ground water level in a deposit of fine sand is 1.5 m below ground level. Above the water table ... is 21 kN/m3. Calculate the total stress, the neutral stress.

NR311403 III B.Tech I Semester Supplementary Examinations ...
Code No: NR311403. NR. III B.Tech I Semester Supplementary Examinations, November 2005. FINITE ELEMENT ANALYSIS · (Mechatronics) · Time: 3 hours.

NR311802 III B.Tech I Semester Supplementary Examinations ...
(b) Explain the following particle size measurement techniques. i. Sedimentation ... compaction. [6]. (b) Define Sintering and how is it different from hot pressing.

NR312105 III B.Tech I Semester Supplementary Examinations ...
III B.Tech I Semester Supplementary Examinations, November 2005. AERO SPACE ... (b) Maximum energy theory. [16] ... plain with live examples. (b) Write a ...

NR311001 III B.Tech I Semester Supplementary Examinations ...
4. What are the objectives of wage and salary administration function? [4+6+6] · 5. Write short notes on: · [4x4=16] · (a) Speculative purchasing · (b) Rate contract ...

NR310202 III B.Tech I Semester Supplementary Examinations ...
(a) What are the different problems associated with measurement of low resis- · tances. Explain. (b) How these problems are eliminated by using Kelvins double ...

NR311902 III B.Tech I Semester Supplementary Examinations ...
(b) What is score boarding and its use in RISC? [10] · 5. (a) Explain the salient features of Pentium architecture. [6] · (b) Draw the schematic blocks of Floating ...

NR310503 III B.Tech I Semester Supplementary Examinations ...
Which one you are saving by using statistical time-division multiplexing and prove · it. [16M] · 8. Give two full duplex protocols and explain their operation? [16M].

NR311002 III B.Tech I Semester Supplementary Examinations ...
(a) Pattern plating process. (b) Tenting process. [8+8] · 7. (a) Draw the schematic diagram of magnetic amplifier with a center tapped trans- · former and D.C. ...