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.
Course:B.Tech
Semester:Semester 5
Session:2021-22
University:AKTU / UPTU
Rate this paper
Questions Asked in 2021-22
Compiler Design (KCS-502) — extracted question text
Section AAttempt all questions in brief. 2 x 10 = 20
- 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
Section BAttempt any three of the following: 10 x 3 = 30
- 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
Section CAttempt any one part of the following: 10 x 1 = 10
- 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. Check the original PDF for equations, diagrams and complete wording. Extracted: 2026-08-23.
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
Advance Welding2021-22Ic Engine Fuel And Lubrication2021-22Application Of Soft Computing2021-22Optical Communication2021-22Web Technology2021-22Vlsi Technology2021-22Heat And Mass Transfer2021-22Digital Signal Processing2021-22
View all B.Tech Semester 5 2021-22 papers →Syllabus & More PYQs
Paper solve karne se pehle unit-wise syllabus dekh lo