Compiler Design (KCS-502) - AKTU Question Paper 2021-22
B.Tech · Semester 5 · Free PDF Download
This is the official AKTU Compiler Design Previous Year Question Paper for B.Tech Semester 5, academic session 2021-22. Published by Dr. A.P.J. Abdul Kalam Technical University (AKTU/UPTU), Lucknow. Free PDF download — no login required.
Rate this paper
Questions Asked in 2021-22
Compiler Design (KCS-502) — complete question paper
- aWhat is the difference between parse tree and abstract syntax tree?
- bExplain the problems associated with top-down Parser
- cWhat are the various errors that may appear in compilation process?
- dWhat are the two types of attributes that are associated with a grammar symbol?
- eDefine the terms Language Translator and compiler
- fWhat is hashing? Explain
- gWhat is do you mean by left factoring the grammars? Explain
- hDefine left recursion. Is the following grammar left recursive? i. What is an ambiguous grammar? Give example. j. List down the conflicts during shift-reduce parsing
- aConstruct the LALR parsing table for the given grammar
- bWhat is an activation record? Explain how it is related with runtime storage organization?
- cWrite the quadruple, triple, indirect triple for the following expression
- dDiscuss the following terms: i. Basic block ii. Next use information iii. Flow graph
- eConstruct predictive parse table for the following grammar
- aConstruct the SLR parse table for the following Grammar
- bDifferentiate between stack allocation and heap allocation
- aWrite syntax directed definition for a given assignment statement
- bWhat are the advantages of DAG? Explain the peephole optimization
- aWhat do you understand by lexical phase error and syntactic er ror? Also suggest methods for recovery of errors
- bDiscuss how induction variables can be detected and elimina ted from the given intermediate code if t2<10 goto B2
- aTest whether the grammar is LL(1) or not, and construct parsing table for it
- bDistinguish between static scope and dynamic scope. Briefly explain access to non local names in static scope
- aWhat are the various issues in design of code generator & code loop optimization?
- bGenerate the three address code for the following code fragment.
while(a>b) { x=y+z; else x=y-z; }
Question text is extracted from the official AKTU question paper PDF above. Hindi translations are omitted — every question is printed in English in the original paper. Last verified: 2026-08-23.
Repeated Questions — KCS-502
Questions that appeared in more than one session, found by comparing 3 years of Compiler Design papers (2021-22, 2022-23, 2023-24)
What are the two types of attributes that are associated with a grammar symbol?
Appeared in: 2021-22 · 2023-24
Construct the LALR parsing table for the given grammar
Appeared in: 2021-22 · 2022-23
Write the quadruple, triple, indirect triple for the following expression
Appeared in: 2021-22 · 2022-23
Construct predictive parse table for the following grammar
Appeared in: 2021-22 · 2022-23
Construct the SLR parse table for the following Grammar
Appeared in: 2021-22 · 2022-23
Write syntax directed definition for a given assignment statement
Appeared in: 2021-22 · 2023-24
Compiler Design — Other Year Papers
AKTU Compiler Design PYQs from other sessions
More B.Tech Semester 5 (2021-22) Papers
Other subjects from same semester and session
Syllabus & More PYQs
Paper solve karne se pehle unit-wise syllabus dekh lo