Gujarat Technological UniversityWinter 2025 examination

GTU 3170701 Compiler Design (CD) Winter 2025 Question Paper & PDF

B.E. · Computer Engineering · Semester 7 · Subject code 3170701
Download official PDFView PDF here
Share with your class
Total
70 marks
To pass
23 marks (33%)
Duration
2.5 Hours 10:30 AM – 1:00 PM
Questions
5 with internal choice
No solutions on this paper yetNeed them for your exam? Ask once. Papers that students ask for are solved first, and we aim to add them within 24 hours.

16 of 25 questions on this paper were also asked in other years. 1 more is a type of question GTU sets again with new data. Each is marked below with the years it appeared.See all 39 repeated 3170701 questions, most asked first

Q.1

14 Marks
(a)
3 marks
Define
1)Compiler
2)Assembler
3)Linker
(b)
4 marks
Discuss about one pass and two pass compilers
(c)
7 marksAsked in 5 of 7 papers

Explain different phases of compiler. For an expression given below, write output of all phases of a complier. Assume a, b and c of type float. a = b + c * 60

Also asked in Summer 2025 Q1c, Winter 2024 Q1c, Winter 2023 Q1c, Summer 2023 Q1c

Q.2

14 Marks
(a)
3 marksAsked in 2 of 7 papers
Give difference between compiler and interpreter

Also asked in Summer 2025 Q1a

(b)
4 marksAsked in 3 of 7 papers
Explain left factoring with suitable example

Also asked in Summer 2025 Q1b, Winter 2024 Q3b

(c)
7 marksAsked in 3 of 7 papers
Explain recursive decent parser with suitable example.

Also asked in Summer 2024 Q4c, Winter 2023 Q2c OR

(c)
7 marksSame type asked in 5 of 7 papers

Draw DFA for the following regular expression without construction of NFA. (1 | 0) * 1 (1 | 0) #

Also asked in Winter 2024 Q2c OR, Summer 2024 Q2c, Winter 2023 Q2c, Summer 2023 Q2c

Q.3

14 Marks
(a)
3 marks
Explain context free grammar with suitable examples
(b)
4 marksAsked in 4 of 7 papers
Explain ambiguity and derivation with suitable examples

Also asked in Summer 2026 Q3a, Winter 2024 Q3b OR, Summer 2023 Q2a

(c)
7 marksAsked in 2 of 7 papers
Explain operator precedence parser with suitable example

Also asked in Winter 2024 Q3a OR

(a)
3 marks
Explain backtracking with example
(b)
4 marksAsked in 3 of 7 papers
Explain Syntax-Directed Definitions (SDD) with suitable example

Also asked in Winter 2024 Q4b OR, Summer 2024 Q3b

(c)
7 marksAsked in 2 of 7 papers
Check that following grammar is LL (1) or not
E→E+T | T
T→T*F | F
F→(E) | id

Also asked in Winter 2024 Q3c

Q.4

14 Marks
(a)
3 marksAsked in 4 of 7 papers
Discuss symbol table management

Also asked in Summer 2025 Q5b OR, Winter 2024 Q4a OR, Summer 2023 Q4b

(b)
4 marks
Explain syntax tree and postfix notation with example
(c)
7 marksAsked in 6 of 7 papers
Explain various error recovery strategies in detail

Also asked in Summer 2026 Q4b, Summer 2025 Q4b, Winter 2024 Q4c, Summer 2024 Q2b, Summer 2023 Q4b OR

(a)
3 marksAsked in 4 of 7 papers
Explain peephole optimization with example

Also asked in Summer 2026 Q4b OR, Summer 2025 Q5c OR, Winter 2024 Q5c

(b)
4 marksAsked in 6 of 7 papers
Discuss activation records

Also asked in Summer 2026 Q4a OR, Winter 2024 Q5b OR, Summer 2024 Q5a, Winter 2023 Q4a, Summer 2023 Q4a

(c)
7 marks
Explain three address code with suitable example

Q.5

14 Marks
(a)
3 marks
Explain dead code elimination with example
(b)
4 marks
Explain synthesized attribute and inherited attribute
(c)
7 marksAsked in 5 of 7 papers
Analyze various design issues of a code generator

Also asked in Summer 2026 Q5c, Summer 2024 Q5c OR, Winter 2023 Q5c OR, Summer 2023 Q5c OR

(a)
3 marksAsked in 3 of 7 papers
Discuss blocks and flow graphs

Also asked in Winter 2024 Q4a, Winter 2023 Q4a OR

(b)
4 marksAsked in 3 of 7 papers
Explain code-scheduling constraints

Also asked in Summer 2024 Q5b OR, Winter 2023 Q5a OR

(c)
7 marksAsked in 2 of 7 papers
Explain various storage allocation strategies in detail

Also asked in Summer 2023 Q4c

More Compiler Design papers

Questions repeat across sessions. Working through two or three papers shows you which topics GTU asks most.

Preparing with friends?

Send this paper to your class group. Every question has its own link.

About this paper

Official Gujarat Technological University (GTU) examination paper for Compiler Design (CD) (Winter 2025, B.E. · Computer Engineering, Sem 7). Features complete 70-mark regular & remedial examination pattern, official marking distribution across all 5 questions, and direct 1-click official PDF download.

Transcribed for student exam preparation from Gujarat Technological University official examination archives. Questions, syllabus guidelines, and curriculum marking schemes remain the intellectual property of Gujarat Technological University.

ViewDownload PDF