B.TechSemester 52023-24Compiler DesignKIT052

Compiler Design (KIT052) - AKTU Question Paper 2023-24

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 2023-24. 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:2023-24
University:AKTU / UPTU

Rate this paper

Questions Asked in 2023-24

Compiler Design (KIT052) — complete question paper · 100 marks · 3 Hours

Section AAttempt all q u e s t i o n s i n b r i e f .
  • a
    Explain cross compiler wit h suitable example. 2 1
  • b
    Construct regular expression to accept valid identifier contai ning letters, digits, and underscore
  • c
    Consider the following grammar. S -> aSB | d Compute the number of reduction steps taken by a bottom-up pars er while accepting the string “aaaadbbbb”
  • d
    Construct the followi ng grammar after removing left recursion: | SAd | ε
  • e
    Define the syntax directed definition (SDD) with suitable and simple example
  • f
    Construct the syntax tree fo r the following expression
  • g
    Compare between static and dynamic scope rule. 2 4
  • h
    Write the short note of Activat ion Record with their fields. 2 4 i. Elaborate the design issues of code generation. 2 5 j. Compute the number of nodes in D irected Acyclic Graph (DAG) for the following C code segment executed in the sequence
  • a
    = b + c; e = a + 1; d = b + c; f = d + 1; g = e + f
Section BAttempt any three o f t h e f o l l o w i n g :
  • a
    Demonstrate the process of com pilation with the help of foll owing input: c = a*b+10
  • b
    Illustrate the problems asso ciated with top-down parsing. Co nsider some examples to explain how these problems can be resolved
  • c
    Illustrate the role of syntax directed translation in compiler design. Also explain how semantic actions are attached to the production wit h example
  • d
    Explore the various data struct ures used for the symbol tabl e construction
  • e
    Construct target code fo r the following expression
Section CAttempt any one p a r t o f t h e f o l l o w i n g :
  • a
    Construct minimized DFA
  • b
    Explore the phases of compiler with a suitable example. 10 1
  • a
    Construct parsing table for t he following grammar using LALR parser
  • b
    Verify that the follow ing grammar is LL (1) S -> AaAb | BbBa A -> ԑ B -> ԑ
  • a
    Consider the following grammar and give the syntax directed definition to construct parse tree for the input expression 4*7+3*9. E -> E+T | T T -> T*F | F F -> num. Also construct an annotated parse tree according to your syntax directed definition
  • b
    Determine the quadruples, triples, and indirect triples for the following expression: (x+y) * (y+z) + (x+y+z)
  • a
    Explain the run-time storage a llocation strategies with their merits and limitations
  • b
    Explain the various types of c ompile-time errors in phases of compiler. 10 4
  • a
    Explain what constitutes a l oop in a flow graph and how will do you do loop optimizations in code optimization of a compiler
  • b
    Explain the need of data flow analysis in code optimization. Design the
    following C code segments in flow graph:
    for(i=1; i<=5; i++)
    { sum=sum+a[i]; }

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 — KIT052

Questions that appeared in more than one session, found by comparing 2 years of Compiler Design papers (2022-23, 2023-24)

2x

Explore the various data struct ures used for the symbol tabl e construction

Appeared in: 2022-23 · 2023-24

2x

Construct parsing table for t he following grammar using LALR parser

Appeared in: 2022-23 · 2023-24