Compiler Design (KCS502) - AKTU Question Paper 2022-23
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 2022-23. 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 2022-23
Compiler Design (KCS502) — complete question paper
- aHow will you group the phases of compiler?
- bMention the role of semantic analysis
- cWhat are the various parts in LEX program?
- dDifferentiate Parse tree and Syntax tree with an example
- eGive the properties of intermediate representation
- fDifferentiate between LR and LL parsers
- gWhat is phrase level error recovery?
- hDiscuss the capabilities of CFG. (i) Define loop jamming. (j) What is induction variable?
- aWrite SDD to produce three-addre ss code for Boolean expressions and obtain the three-address code for the statement given below: while a < b do if c < d then else ) Discuss the stack allocation and heap allocation strategies of the runtime environment with an example
- cWhat do you mean by attributed grammars? Discuss the translatio n scheme for converting an infix expression to its equivalent postfix form
- dConstruct the NFA and DFA for the following regular expression
- eExplain the lexical analysis and syntax analysis phases of the compiler with a suitable example. Explain the reporting errors in these two phases as well
- aConstruct the CLR parse table for the following Grammar
- bConstruct the SLR parsing table for the following Grammar
- aWhat is back patching. Generate three address code for the foll owing Boolean expression using back patching
- a< b or c > d and e < f
- bWhat is top down parsing? What are the problems in top down par sing? Explain each with suitable example
- aWhat is an activation record? Draw diagram of general activatio n record and explain the purpose of different fields of an activa tion record
- bHow do we represent the scope information? Explain scope by num ber and scope by location
- aDefine Symbol table? Explain about the data structures used fo r symbol table
- bExplain the following: (i) Copy Propagation (ii) Dead-Code Elimination (iii) Code Motion (iv) Reduction in Strength
- aExplain in the DAG representati on of the basic block with example
- bWrite quadruple, triples and indi rect triples for following expression
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 — KCS502
Questions that appeared in more than one session, found by comparing 3 years of Compiler Design papers (2021-22, 2022-23, 2023-24)
Differentiate Parse tree and Syntax tree with an example
Appeared in: 2022-23 · 2023-24
Construct the CLR parse table for the following Grammar
Appeared in: 2021-22 · 2022-23
Construct the SLR parsing table for the following Grammar
Appeared in: 2021-22 · 2022-23
Define Symbol table? Explain about the data structures used fo r symbol table
Appeared in: 2022-23 · 2023-24
Write quadruple, triples and indi rect triples for following expression
Appeared in: 2021-22 · 2022-23
Compiler Design — Other Year Papers
AKTU Compiler Design PYQs from other sessions
More B.Tech Semester 5 (2022-23) Papers
Other subjects from same semester and session
Syllabus & More PYQs
Paper solve karne se pehle unit-wise syllabus dekh lo