Code No: R05311201

R05

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. Construct an LL(1) parse table for the following grammar: E → TE0 E0 → +E |∈ T → FT0 T0 → T |∈ F → PF0 F0 → ∗F0 |∈ P → (E) |a| b.

[16]

2. Construct Quadruples, Triples and Indirect Triples of the following expression: I = - J * (K + W). [16] 3. (a) Explain Briefly about the Global Optimization? (b) Distinguish machine dependent and machine independent optimization.[8+8] 4. Write differences between single pass and two pass translation?

[16]

5. Consider the following grammar: A0 → A A → (A) |a (a) Construct the LR(0) parser. (b) Find the SLR(1) parse table. (c) Find the moves made by the LR(0) parser on the input string: ( ( a ) ). [5+5+6] 6. Explain the following: (a) Static and Dynamic Checking of types (b) Over loading of Operators & Functions. 7. Consider the following pascal code and draw the Activation Record. Program param(input , output); Procedure b(function h(n: integer): integer ); Var m : integer Begin m := 3; writein(h(2)) End {b}; 1

[8+8]

Code No: R05311201

R05

Set No. 2

Procedure c: Var m : integer; Function f(n: integer) : integer ; Begin f := m + n End { f } Procedure r; Var m : integer; Begin m := 7; B(f) End { r } Begin m := 0; r end { c }; Begin C End.

[16]

8. (a) Let L be the set of all binary strings whose last two symbols are same. Design the NFA and find equivalent DFA. (b) Obtain the Regular Expression represented by the following Regular Set: {0, 1, 00, 01, 000, 001, 0000, 0001, ...}. [12+4] ?????

2

Code No: R05311201

R05

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. Construct an LL(1) parse table for the following grammar: E → TE0 E0 → +E |∈ T → FT0 T0 → T |∈ F → PF0 F0 → ∗F0 |∈ P → (E) |a| b.

[16]

2. (a) Let L be the set of all binary strings whose last two symbols are same. Design the NFA and find equivalent DFA. (b) Obtain the Regular Expression represented by the following Regular Set: {0, 1, 00, 01, 000, 001, 0000, 0001, ...}. [12+4] 3. Write differences between single pass and two pass translation?

[16]

4. Construct Quadruples, Triples and Indirect Triples of the following expression: I = - J * (K + W). [16] 5. Explain the following: (a) Static and Dynamic Checking of types (b) Over loading of Operators & Functions. 6. Consider the following pascal code and draw the Activation Record. Program param(input , output); Procedure b(function h(n: integer): integer ); Var m : integer Begin m := 3; writein(h(2)) End {b}; Procedure c: Var m : integer; Function f(n: integer) : integer ; Begin f := m + n End { f } Procedure r; Var m : integer; 3

[8+8]

Code No: R05311201

R05

Begin m := 7; B(f) End { r } Begin m := 0; r end { c }; Begin C End.

Set No. 4

[16]

7. Consider the following grammar: A0 → A A → (A) |a (a) Construct the LR(0) parser. (b) Find the SLR(1) parse table. (c) Find the moves made by the LR(0) parser on the input string: ( ( a ) ). [5+5+6] 8. (a) Explain Briefly about the Global Optimization? (b) Distinguish machine dependent and machine independent optimization.[8+8] ?????

4

Code No: R05311201

R05

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) Let L be the set of all binary strings whose last two symbols are same. Design the NFA and find equivalent DFA. (b) Obtain the Regular Expression represented by the following Regular Set: {0, 1, 00, 01, 000, 001, 0000, 0001, ...}. [12+4] 2. Write differences between single pass and two pass translation?

[16]

3. Consider the following grammar: A0 → A A → (A) |a (a) Construct the LR(0) parser. (b) Find the SLR(1) parse table. (c) Find the moves made by the LR(0) parser on the input string: ( ( a ) ). [5+5+6] 4. Construct an LL(1) parse table for the following grammar: E → TE0 E0 → +E |∈ T → FT0 T0 → T |∈ F → PF0 F0 → ∗F0 |∈ P → (E) |a| b.

[16]

5. Explain the following: (a) Static and Dynamic Checking of types (b) Over loading of Operators & Functions.

[8+8]

6. (a) Explain Briefly about the Global Optimization? (b) Distinguish machine dependent and machine independent optimization.[8+8] 7. Consider the following pascal code and draw the Activation Record. Program param(input , output); Procedure b(function h(n: integer): integer ); Var m : integer 5

Code No: R05311201

R05

Set No. 1

Begin m := 3; writein(h(2)) End {b}; Procedure c: Var m : integer; Function f(n: integer) : integer ; Begin f := m + n End { f } Procedure r; Var m : integer; Begin m := 7; B(f) End { r } Begin m := 0; r end { c }; Begin C End.

[16]

8. Construct Quadruples, Triples and Indirect Triples of the following expression: I = - J * (K + W). [16] ?????

6

Code No: R05311201

R05

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. Construct an LL(1) parse table for the following grammar: E → TE0 E0 → +E |∈ T → FT0 T0 → T |∈ F → PF0 F0 → ∗F0 |∈ P → (E) |a| b.

[16]

2. Consider the following pascal code and draw the Activation Record. Program param(input , output); Procedure b(function h(n: integer): integer ); Var m : integer Begin m := 3; writein(h(2)) End {b}; Procedure c: Var m : integer; Function f(n: integer) : integer ; Begin f := m + n End { f } Procedure r; Var m : integer; Begin m := 7; B(f) End { r } Begin m := 0; r end { c }; Begin C End.

[16]

3. (a) Explain Briefly about the Global Optimization? (b) Distinguish machine dependent and machine independent optimization.[8+8] 4. Construct Quadruples, Triples and Indirect Triples of the following expression: I = - J * (K + W). [16]

7

Code No: R05311201

R05

Set No. 3

5. (a) Let L be the set of all binary strings whose last two symbols are same. Design the NFA and find equivalent DFA. (b) Obtain the Regular Expression represented by the following Regular Set: {0, 1, 00, 01, 000, 001, 0000, 0001, ...}. [12+4] 6. Consider the following grammar: A0 → A A → (A) |a (a) Construct the LR(0) parser. (b) Find the SLR(1) parse table. (c) Find the moves made by the LR(0) parser on the input string: ( ( a ) ). [5+5+6] 7. Explain the following: (a) Static and Dynamic Checking of types (b) Over loading of Operators & Functions. 8. Write differences between single pass and two pass translation? ?????

8

[8+8] [16]

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

49KB Sizes 3 Downloads 155 Views

Recommend Documents

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

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

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

NR310802 III B.Tech I Semester Supplementary Examinations ...
A reversible engine operating between a reservoir at 600 K and the ambient at- · mosphere at ... Determine the ratio of energy rejected by both the devices to the.