Exams wasn't easy, you have to prepare max especially the concepts definitions ans differences Some of question I remember are Q1…
- L1Write the LALR(1) Algorithm
- L2Control Flow Graph (CFG) is given. Find: Total Vertices (V), Total Edges (E), Basic Blocks, Live Variables. In that graph there is also start and exit point present in a rectangular box and exit is joined by B4 and start is joined by B 1 and B2 is joined by B4 by two arrows one in opposite directions. You have to tell the live variables at exit point and the final statement was X=t1+t2. You also have to tell the leader points of B4
- S14 steps of LALR 1 DFA
- S2Write Three Ways to Evaluate Attribute Grammar
- S3LR Parse Tree / Grammar
- S4Syntax Directed Translation (SDT) – If-Then-Else
- S5Complete the SDT for: S → if E then M1 S1 N else M2 S2 using M.quad, E.truelist, E.falselist, S.nextlist, N.nextlist, makelist(), merge(), backpatch()
- T1Exams wasn't easy, you have to prepare max especially the concepts definitions ans differences