Gujarat Technological UniversitySummer 2024 examination

GTU 3170701 Compiler Design (CD) Summer 2024 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 2:30 PM – 5: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.

12 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
State the applications of language processors.
(b)
4 marksAsked in 4 of 7 papers
Explain input buffering techniques in brief.

Also asked in Summer 2026 Q2a, Winter 2024 Q1b, Summer 2023 Q2b

(c)
7 marksAsked in 2 of 7 papers
Explain cousins of compiler in detail.

Also asked in Summer 2026 Q1a

Q.2

14 Marks
(a)
3 marks
Enlist types of compiler. Explain any two in brief.
(b)
4 marksAsked in 6 of 7 papers
Explain error recovery strategies in brief.

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

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

Explain construction of DFA from regular expression without making NFA with suitable example.

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

(c)
7 marks
Explain role of lexical analyzer with example in compiler design process.

Q.3

14 Marks
(a)
3 marks
Explain basic block with example.
(b)
4 marksAsked in 3 of 7 papers
Explain Syntax-Directed Definition with example.

Also asked in Winter 2025 Q3b OR, Winter 2024 Q4b OR

(c)
7 marks
Explain LL (1) parsing technique with suitable example.
(a)
3 marks
Explain quadruple with example.
(b)
4 marksAsked in 4 of 7 papers
Explain left recursion removal algorithm with example.

Also asked in Summer 2026 Q1b, Winter 2024 Q2b, Winter 2023 Q2b

(c)
7 marks
Explain LR (1) parsing technique with suitable example.

Q.4

14 Marks
(a)
3 marks
Give the difference between stack allocation and heap allocation of space.
(b)
4 marks

Explain various techniques for intermediate code representation with example.

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

Also asked in Winter 2025 Q2c, Winter 2023 Q2c OR

(a)
3 marksAsked in 5 of 7 papers
Compare various parameter passing techniques for run time environment.

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

(b)
4 marks

Explain various techniques used to represent the three-address code with example.

(c)
7 marksAsked in 4 of 7 papers
Explain shift-reduce parsing technique with suitable example.

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

Q.5

14 Marks
(a)
3 marksAsked in 6 of 7 papers
Write a short note on activation record.

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

(b)
4 marks
Explain basic-block scheduling in brief.
(c)
7 marksAsked in 4 of 7 papers
Describe various code optimization techniques with example.

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

(a)
3 marks
Write a short note on activation tree.
(b)
4 marksAsked in 3 of 7 papers
Explain code scheduling constraints in brief.

Also asked in Winter 2025 Q5b OR, Winter 2023 Q5a OR

(c)
7 marksAsked in 5 of 7 papers
Describe various design issues of a code generator.

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

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) (Summer 2024, 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