GTU 2170701 Compiler Design (CD) Summer 2024 Paper Solution & PDF
Question 2
Which technique is used for speeding up the lexical analyzer?
Construct nondeterministic finite automata for following regular expression using Thomson‟s Construction. Show the sequence of moves made by each in Processing the input string ababbab. (a|b)*
Question 3
Consider the grammarS->aSbS|bSaS|εDefine: Left Recursive Grammar. Check Following grammar is leftrecursive or not, if yes, Remove left recursive from it.S→aBDhB→Bb|cD→EFE→g| εF→f| εS→CCC→cC|dQuestion 4
For the input expression (4*7+1)*2, construct on annotated Parse treeaccording to the syntax directed definition of figure given below.Production Semantic RulesL->En Print(E.val)E->E1+T E.val:=E.val+T.valE->T E.val:=T.valT->T1 *F T.val:= T1.val * F.valT->(E) T.val:=E.valF->digit F.val:=digit.lexvalT->F T.val:=F.valQuestion 5
Explain activation record. How is task divided between calling & called program for stack updating?
What is Intermediate form of the code? What are the advantages of it? What are generally used intermediate forms? Write three address code for following expression. (a+b)*(c+d)
Studying for Compiler Design?
Circulate this solved paper with KaTeX formulas and 1-click AI step solvers to your batchmates on WhatsApp or Telegram.
About this Examination Paper & Attribution
Official Gujarat Technological University (GTU) examination paper and step-by-step solutions for Compiler Design (CD) (Summer 2024, B.E. · Computer Engineering, Sem 7). Features complete 70-mark regular & remedial examination pattern, official marking distribution across all 5 questions, and direct 1-click official PDF download.
Transcribed for student exam preparation from Gujarat Technological University official examination archives. Questions, syllabus guidelines, and curriculum marking schemes remain the intellectual property of Gujarat Technological University.