// Dr. A.P.J. Abdul Kalam Technical University, Uttar Pradesh / 2022
AKTU B.Tech — Compiler Design (KCS502), Semester 6, 2022
Compiler Design · KCS502 · B.Tech Computer Science and Engineering · Semester 6
Questions
25
Work through the questions
25 questions
No verified answers are available for this paper.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
What is the difference between parse tree and abstract syntax tree?
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
Explain the problems associated with top-down Parser.
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
What are the various errors that may appear in compilation process?
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
What are the two types of attributes that are associated with a grammar symbol?
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
Define the terms Language Translator and compiler.
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
What is hashing? Explain.
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
What is do you mean by left factoring the grammars? Explain.
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
Define left recursion. Is the following grammar left recursive? E → E+E | E*E| a| b
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
What is an ambiguous grammar? Give example.
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
List down the conflicts during shift-reduce parsing.
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
Construct the LALR parsing table for the given grammar S →BB B→ aB / b
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
Write the quadruple, triple, indirect triple for the following expression (x + y)*(y + z) + (x + y + z)
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022), AKTU B.Tech IT — Compiler Design (KIT052), Semester 5, 2022 (2022).
Discuss the following terms:
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
Basic block ii. Next use information iii. Flow graph
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
Construct predictive parse table for the following grammar. E → E + T/T T →T *F/F F →F /a/b
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
Construct the SLR parse table for the following Grammar E→E+E E→E*E E→id
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
Differentiate between stack allocation and heap allocation. 0 0
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
Write syntax directed definition for a given assignment statement: S → id=E E → E+E E →E*E E→-E E → (E) E→id
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
What are the advantages of DAG? Explain the peephole optimization.
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
What do you understand by lexical phase error and syntactic error? Also suggest methods for recovery of errors.
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
Discuss how induction variables can be detected and eliminated from the given intermediate code B2: i:= i+1 t1:=4*j t2:=a[t1] if t2<10 goto B2
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
Test whether the grammar is LL(1) or not, and construct parsing table for it. S1AB / ε A1AC/0C B0S C1
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
Distinguish between static scope and dynamic scope. Briefly explain access to non local names in static scope.
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
What are the various issues in design of code generator & code loop optimization?
No verified answer or solution is available for this question.
- 2022
Also asked in AKTU B.Tech — Compiler Design (KCS502), Semester 5, 2022 (2022).
Generate the three address code for the following code fragment. while(a>b) { if(c<d) x=y+z; else x=y-z; }
No verified answer or solution is available for this question.