Code No: R05411904

R05

Set No. 2

IV B.Tech I Semester Examinations,November 2010 AUTOMATA AND COMPILER DESIGN Electronics And Computer Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ????? 1. Consider the following Context Free Grammar(CFG): E → I |E + E| |E∗ E| (E) I → a |b| Ia | Ib | I0 | I1 Find the leftmost derivation, rightmost derivation, and parse tree for the string: a∗ (a+b00). [5+5+6] 2. Explain Linear bounded automaton with an Example?

[16]

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

4. Generate code for the following C program Main( ) { int i; int a[10]; while ( i <= 10 ) a[i] = 0; }

1

[16]

Code No: R05411904

R05

Set No. 2

5. (a) Design a DFA for accepting the set of all strings of 0’s and 1’s that does NOT ends with the sub-string 00. (b) Let L = {∈} and L ⊆ {0, 1}*. Explain, how many states are presented in the minimal Finite Automata for L. (c) Construct an NFA equivalent to the Regular Expression: (0 + 1)* 1(0 + 1). [8+4+4] 6. Construct the SLR(1) parse table for the following grammar: S → 0S0 |1S1| 10.

[16]

7. What is the limit flow graph? Is the flow graph shown in figure 2 reducible? Explain. [16]

Figure 2 8. Consider the following grammar: D → TL; T → int |float L → L, id |id (a) Write the Syntax Directed Definitions to add the type of each identifier to its entry in the symbol table during semantic analysis. (b) Draw an annotated parse tree for the declaration: float id1, id2, id3; ?????

2

[8+8]

Code No: R05411904

R05

Set No. 4

IV B.Tech I Semester Examinations,November 2010 AUTOMATA AND COMPILER DESIGN Electronics And Computer Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ????? 1. Consider the following grammar: D → TL; T → int |float L → L, id |id (a) Write the Syntax Directed Definitions to add the type of each identifier to its entry in the symbol table during semantic analysis. (b) Draw an annotated parse tree for the declaration: float id1, id2, id3; 2. Construct the SLR(1) parse table for the following grammar: S → 0S0 |1S1| 10. 3. Generate code for the following C program Main( ) { int i; int a[10]; while ( i <= 10 ) a[i] = 0; }

[8+8] [16] [16]

4. What is the limit flow graph? Is the flow graph shown in figure 2 reducible? Explain. [16]

3

Code No: R05411904

R05

Set No. 4

Figure 2 5. Explain Linear bounded automaton with an Example?

[16]

6. Consider the following Context Free Grammar(CFG): E → I |E + E| |E∗ E| (E) I → a |b| Ia | Ib | I0 | I1 Find the leftmost derivation, rightmost derivation, and parse tree for the string: a∗ (a+b00). [5+5+6] 7. (a) Design a DFA for accepting the set of all strings of 0’s and 1’s that does NOT ends with the sub-string 00. (b) Let L = {∈} and L ⊆ {0, 1}*. Explain, how many states are presented in the minimal Finite Automata for L. (c) Construct an NFA equivalent to the Regular Expression: (0 + 1)* 1(0 + 1). [8+4+4] 8. 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 } 4

Code No: R05411904

R05

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

Set No. 4

[16] ?????

5

Code No: R05411904

R05

Set No. 1

IV B.Tech I Semester Examinations,November 2010 AUTOMATA AND COMPILER DESIGN Electronics And Computer Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ????? 1. Explain Linear bounded automaton with an Example?

[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. What is the limit flow graph? Is the flow graph shown in figure 2 reducible? Explain. [16]

6

Code No: R05411904

R05

Set No. 1

Figure 2 4. Construct the SLR(1) parse table for the following grammar: S → 0S0 |1S1| 10.

[16]

5. Consider the following grammar: D → TL; T → int |float L → L, id |id (a) Write the Syntax Directed Definitions to add the type of each identifier to its entry in the symbol table during semantic analysis. (b) Draw an annotated parse tree for the declaration: float id1, id2, id3; [8+8] 6. Generate code for the following C program Main( ) { int i; int a[10]; while ( i <= 10 ) a[i] = 0; }

[16]

7. Consider the following Context Free Grammar(CFG): E → I |E + E| |E∗ E| (E) I → a |b| Ia | Ib | I0 | I1 Find the leftmost derivation, rightmost derivation, and parse tree for the string: a∗ (a+b00). [5+5+6] 8. (a) Design a DFA for accepting the set of all strings of 0’s and 1’s that does NOT ends with the sub-string 00. 7

Code No: R05411904

R05

Set No. 1

(b) Let L = {∈} and L ⊆ {0, 1}*. Explain, how many states are presented in the minimal Finite Automata for L. (c) Construct an NFA equivalent to the Regular Expression: (0 + 1)* 1(0 + 1). [8+4+4] ?????

8

Code No: R05411904

R05

Set No. 3

IV B.Tech I Semester Examinations,November 2010 AUTOMATA AND COMPILER DESIGN Electronics And Computer Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ????? 1. Consider the following Context Free Grammar(CFG): E → I |E + E| |E∗ E| (E) I → a |b| Ia | Ib | I0 | I1 Find the leftmost derivation, rightmost derivation, and parse tree for the string: a∗ (a+b00). [5+5+6] 2. What is the limit flow graph? Is the flow graph shown in figure 2 reducible? Explain. [16]

Figure 2 3. (a) Design a DFA for accepting the set of all strings of 0’s and 1’s that does NOT ends with the sub-string 00. (b) Let L = {∈} and L ⊆ {0, 1}*. Explain, how many states are presented in the minimal Finite Automata for L. (c) Construct an NFA equivalent to the Regular Expression: (0 + 1)* 1(0 + 1). [8+4+4] 4. Explain Linear bounded automaton with an Example?

9

[16]

Code No: R05411904

R05

Set No. 3

5. Consider the following grammar: D → TL; T → int |float L → L, id |id (a) Write the Syntax Directed Definitions to add the type of each identifier to its entry in the symbol table during semantic analysis. (b) Draw an annotated parse tree for the declaration: float id1, id2, id3;

[8+8]

6. Construct the SLR(1) parse table for the following grammar: S → 0S0 |1S1| 10.

[16]

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}; 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. Generate code for the following C program Main( ) { int i; int a[10]; while ( i <= 10 ) a[i] = 0; } ?????

10

[16]

R05 IV B.Tech I Semester Examinations,November 2010 ...

T → int|float. L → L, id |id. (a) Write the Syntax Directed Definitions to add the type of each identifier to its. entry in the symbol table during semantic analysis.

66KB Sizes 0 Downloads 165 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 ...

NR410404 IV B.Tech I Semester Supplementary Examinations ...
NR. IV B.Tech I Semester Supplementary Examinations, November 2005 ... NR size is smaller than the fiber core, and the small gap between the source and.

NR411304 IV B.Tech I Semester Supplementary Examinations ...
RELIABILITY & SAFETY ENGINEERING · (Electronics & Control Engineering) ... (a) Explain the following terms in connection with reliability evaluation. [2+3].

Code No.410309 IV /IV B.Tech. I-Semester Examination November ...
3.a) Discuss the aspects of Electro-chemical homing process. b) · Explain the fundamentals of chemical machining process with advantages and · applications.

NR410105 IV B.Tech I Semester Supplementary Examinations ...
NR. IV B.Tech I Semester Supplementary Examinations, November 2005 ... 3. Analyse the following frame using stiffness method. EI constant. (figure 3) [16].

NR412104 IV B.Tech I Semester Supplementary Examinations ...
What do you understand by Non-destructive testing techniques? List various tech- · nique of NDT and explain any three of them · [16]. 8. Write short notes on the ...

NR410204 IV B.Tech I Semester Supplementary Examinations ...
Using dynamic programming method, how do you find the most economical ... the additional reactive power requirement at the receiving end to meet a load of ...

Code No. 410558 IV/IV B.Tech. I-Semester Examination November ...
(Computer Science and Engineering,-OR/OOR) · Time: 3 hours ... Define a software and explain the software characteristics. 2. Compare the ... modeling the data processing involved when a customer withdraws cash from an · ATM machine.

Code No.411303 IV/IV B.Tech. I-Semester Examination November ...
b) Give the merits and demerits of a class-A commutation of SCR relative to other · methods? 3.a) Draw the circuit and explain the working of speed control of a ...

NR410505 IV B.Tech I Semester Supplementary Examinations ...
(b) Explain the architecture of Honeywell 60/66 multiprocessor system. [8+8] · 6. (a) Define the term nonpreemptive scheduling. With an example illustrate the.

NR410310 IV B.Tech I Semester Supplementary Examinations ...
(b) Write an ALP to implement unpacked BCD addition and subtraction. [8] · 3. (a) How procedures are used in assembly language programming of 8086.

NR411401 IV B.Tech I Semester Supplementary Examinations ...
5. (a) Compare and contrast adaptive and fuzzy control techniques used in motion- ... Discuss various application of microprocessor control programmable logic ...

NR410205 IV B.Tech I Semester Supplementary Examinations ...
(b) Back to back DC link along with AC feeder. 2. Clearly explain the different converter configurations commonly employed for HVDC · converter and bring out ...

NR410805 IV B.Tech I Semester Supplementary Examinations ...
... No: NR410805. NR. IV B.Tech I Semester Supplementary Examinations, November 2005 ... ideal, Raoult's and Dalton's laws are applicable. [16] · *****. 2 of 2.

NR412106 IV B.Tech I Semester Supplementary Examinations ...
(c) Discuss the panel method for compressible subsonic and supersonic flows [6] · 6. (a) Derive a descretized form of generic integral form of continuity and ...

NR410307 IV B.Tech I Semester Supplementary Examinations ...
7. Distinguish between the power transmission by chains, ropes and wire ropes in · hoisting equipment. [16] · 8. Sketch and explain a hydraulic jack. [16] · *****.

NR410112 IV B.Tech I Semester Supplementary Examinations ...
(b) Clearly explain the use of category analysis in Trip generation models. [6] · 5. Explain the concept of Trip distribution. Disucss about the various growth factor.

NR411302 IV B.Tech I Semester Supplementary Examinations ...
DISTRIBUTED COMPUTER CONTROL SYSTEMS · (Electronics & Control ... (b) Explain the design techniques in real time systems. [8+8] · 5. Explain in detail ...

NR410306 IV B.Tech I Semester Supplementary Examinations ...
[8+8] · 2. Explain the mathematical interpretation of finite element method for ... (a) Show that the value of the shape function N1 of node i and node k of a simplex.

NR411901 IV B.Tech I Semester Supplementary Examinations ...
IV B.Tech I Semester Supplementary Examinations, November 2005. INTERNET & JAVA PROGRAMMING · (Electronics & Computer Engineering) · Time: 3 hours · Max Marks: 80 · Answer any FIVE Questions · All Questions carry equal marks · ***** · 1. (a) Defferet

Code No. 410258 IV/IV B.Tech. I-Semester Examination November ...
2.a) Derive an expression for the hourly loss in economy due to error in the · representation of input data. ... from the power plant bus bars. - x - · AjntuWorld.in.

Code No.410302 IV /IV B.Tech. I-Semester Examination November ...
b) Explain with the help of a neat sketch, how an image is generated on a computer · terminal. 2. What is meant by a concatenation matrix? ... surface model on a CAD/CAM system. b) Why the sweep representation is useful in creating solid models of 2

Code No.410454 IV/IV B.Tech. I-Semester Examination November ...
involved in selective repeat sliding window protocol. 4. Explain how 802.3 protocol works? ... 6.a) Explain the services provided by the Transport Layer.

Code No.411055 IV/IV B.Tech. I-Semester Examination November ...
b) What is thermal conductivity? Explain its types. 3.a) What is meant by H25 analyser system? Explain its principle and use. b) Write a note on sampling.