Retrieving academic index assets...
Makaut
HomePYQsTests
Pricing
Sign Up
Makaut

The premier academic archive for MAKAUT students, providing curated previous year questions, solutions, and official syllabus resources.

Get the Mobile App
GET IT ONGoogle Play
Download on theApp Store
Download from Indus App Store
Platform
  • Home
  • PYQs
  • Question Papers
  • Viva Questions
  • Important Questions
  • Syllabus
  • Academic Tools
  • Pricing
  • Blog
Guidelines
  • Disclaimer
  • Community Guidelines
Company
  • About
  • Contact
  • FAQ
Legal
  • Privacy Policy
  • Terms of Service
  • Refund Policy
  • Cookie Policy
  • Subscription Policy
© 2026 MAKAUT Study Dev Hub. All rights reserved.
Platform version: v1.0.0
Home/PYQs/Sem 5/Compiler Design/2026
PCC-CS501Sem 5 • 2026 Exam
Full Marks: 70 • Time: 3 Hours

MAKAUT Compiler Design 2026 Question Paper

Official theoretical question paper for Compiler Design (PCC-CS501) conducted by Maulana Abul Kalam Azad University of Technology. All questions from Groups A, B, and C are reproduced below with marks weightings.

Download MAKAUT Compiler Design 2026 Question Paper PDFView All PCC-CS501 Papers

AGroup A — Objective / Multiple Choice Questions

10 × 1 = 10 Marks
1(i)[1 Mark]

Three address code is a linearized representation of DAG. (True/False)

1(ii)[1 Mark]

What is Source-To-Source Translator?

1(iii)[1 Mark]

General register allocation problem is NP-Complete. (True/False)

1(iv)[1 Mark]

JVM is an Interpreter. (True/False)

1(v)[1 Mark]

What is the number of tokens in the C statement printf("%d,%d",a,b); ?

1(vi)[1 Mark]

What types of grammar are used in parsing?

1(vii)[1 Mark]

LEX tool is used for parsing. (True/False)

1(viii)[1 Mark]

In C language type conversion can be done statically. (True/False)

1(ix)[1 Mark]

Stack is used for storing local data objects. (True/False)

1(x)[1 Mark]

Which type of derivation is used in bottom up parsing?

1(xi)[1 Mark]

In peephole optimization the code in peephole must be contiguous. (True/False)

1(xii)[1 Mark]

Number of states in SLR(1) > Number of states in CLR(1). (True/False)

BGroup B — Short Answer Conceptual Questions

3 × 5 = 15 Marks
2[5 Marks]

Write the differentiate between Compiler and Interpreter.

3[5 Marks]

Write the structure of Lex program.

4[5 Marks]

Why the grammar must be augmented during bottom up parsing?

5[5 Marks]

What is S-attributed and L-attributed SDD?

6[5 Marks]

Consider the grammar: T → F T'; T' → union F T' | ε; F → not T | id; Define FIRST and FOLLOW sets for the above grammar. (Assume union and not are operators)

CGroup C — Long Answer Analytical & Numerical Questions

3 × 15 = 45 Marks
7(a)[12 Marks]

Describe all phases of 2-pass Compiler.

7(b)[3 Marks]

What is the purpose of Symbol Table in compiler?

8(a)[3 Marks]

Write short notes on:

8(b)[12 Marks]

Local Common sub-expression

8(c)[12 Marks]

Dead Code and Unreachable code

8(d)[12 Marks]

Reordering of three address instructions

8(e)[12 Marks]

Redundant load and store

8(f)[12 Marks]

Machine Idioms

9(a)[3 Marks]

Why Intermediate Code Generation is important in compiler design?

9(b)[12 Marks]

Explain different types of Intermediate Code Generation techniques with their advantages and disadvantages.

10(a)[7 Marks]

Lemma: Every Simple-LR (1) (SLR1) is unambiguous, but there many unambiguous grammars that are not SLR (1). Consider the grammar with productions A → B = C | C; B → *C | id; C → B Find the Kernel and Non-kernel LR (0) items of each state of handle recognizing DFA of SLR (1) parsing.

10(b)[5 Marks]

Build the SLR (1) parsing table and then check whether the above grammar is SLR(1) or not.

11(a)[3 Marks]

Check whether the above grammar is ambiguous or not.

11(b)[12 Marks]

Consider a L-attributed SDD given below: | Productions | Semantic Rules | |---|---| | 1 E → T E' | E.node = E'.syn | | | E'.inh = T.node | | 2 E' → + T E' | E'.inh = new Node( +, E'.inh, T.node ) | | | E'.syn = E'.syn | | 3 E' → - T E' | E'.inh = new Node( -, E'.inh, T.node ) | | | E'.syn = E'.syn | | 4 E' → ε | E'.syn = E'.inh | | 5 T → (E) | T.node = E.node | | 6 T → id | T.node = new Leaf(id, id.entry) | | 7 T → num | T.node = new Leaf(num, num.val) | Where, syn and node are synthesized attributes and inh is an inherited attributes. Here E, E1 both are same, and for differentiate between left E and right E, we use E1 in right. Draw the parse tree for the input a - 4 + c.

11(c)[12 Marks]

Build the dependency DAG for evaluation order of attributes of input a - 4 + c and then draw the Syntax tree for the expression over this DAG.

← 2025 Question Paper