GTU · BE Computer · Semester 7

GTU 2170701 Compiler Design (CD) Old Question Papers & Solutions PDF

Official Gujarat Technological University (GTU) old question papers PDF (Regular & Remedial) and step-by-step solved questions for Compiler Design (CD) across 2024 – 2026 examinations.

4 papers, 2024 – 202670 marks23 to pass2.5 hours
28 questions GTU asked more than onceAsked in all 4 papers: Explain phases of compiler with a neat diagram and suitable example.See list

Exam papers

Most repeated questions

28 questions GTU set in two or more of 4 papers, most repeated first. Tap a year to open that paper at the question.

  1. Explain phases of compiler with a neat diagram and suitable example.

    7 marksAsked in 4 of 4 papers

    Summer 2026 Q1c Winter 2025 Q1c Summer 2025 Q1c Summer 2024 Q1c

  2. Write and explain the generic issues in the design of code generators.

    7 marksAsked in 4 of 4 papers

    Summer 2026 Q5c Winter 2025 Q5c OR Summer 2025 Q4c OR Summer 2024 Q5c OR

  3. Write a brief note on buffering techniques.

    4 marksAsked in 4 of 4 papers

    Summer 2026 Q5b OR Winter 2025 Q2c OR Summer 2025 Q2a Summer 2024 Q2c

  4. Explain various data structures used in symbol table management.

    7 marksAsked in 3 of 4 papers

    Summer 2026 Q4c Winter 2025 Q4b OR Summer 2025 Q5c OR

  5. Explain operator precedence parsing method with example.

    7 marksAsked in 3 of 4 papers

    Summer 2026 Q4c OR Summer 2025 Q3c Summer 2024 Q3c OR

  6. Differentiate between synthesized and inherited attributes with example.

    4 marksAsked in 3 of 4 papers

    Summer 2026 Q3b Summer 2025 Q4b OR Summer 2024 Q4b

  7. Explain various parameter passing methods.

    4 marksAsked in 3 of 4 papers

    Summer 2026 Q4b Summer 2025 Q4b Summer 2024 Q4c OR

  8. Explain peephole optimization.

    4 marksAsked in 3 of 4 papers

    Summer 2026 Q4b OR Winter 2025 Q5c Summer 2025 Q5c

  9. Write a short note on activation records.

    4 marksAsked in 3 of 4 papers

    Winter 2025 Q4b Summer 2025 Q5b Summer 2024 Q5a

  10. Explain error recovery strategies in brief.

    3 marksAsked in 3 of 4 papers

    Summer 2026 Q3a Winter 2025 Q1b Summer 2025 Q4a

Show 18 more repeated questionsHide the 18 more
  1. Explain various code optimization methods with example.

    7 marksAsked in 2 of 4 papers

    Summer 2026 Q5c OR Summer 2024 Q5b

  2. Explain subset construction method to construct DFA with example.

    7 marksAsked in 2 of 4 papers

    Winter 2025 Q2c Summer 2025 Q2c OR

  3. Construct NFA for the following RE using Thomson's construction method and then convert it to DFA: (a|b)*abb

    7 marksSame type asked in 2 of 4 papers

    Summer 2026 Q2c OR Summer 2024 Q2c OR

  4. Describe Quadruples, Triples and Indirect Triples form of three address code with a suitable example.

    7 marksAsked in 2 of 4 papers

    Winter 2025 Q4c Summer 2025 Q4c

  5. Construct a SLR parsing table for following grammar. S -> aAb | bB A -> Aa | ϵ B -> Bb |ϵ

    7 marksSame type asked in 2 of 4 papers

    Winter 2025 Q3c Summer 2025 Q2c

  6. Construct LL(1) parsing table for E→E + T|T, T→T * F|F, F→(E)|a

    7 marksSame type asked in 2 of 4 papers

    Summer 2026 Q3c Winter 2025 Q3c OR

  7. Differentiate top down parsing and bottom up parsing.

    4 marksAsked in 2 of 4 papers

    Summer 2026 Q2b Winter 2025 Q3a OR

  8. Explain the difference between NFA and DFA with example.

    4 marksAsked in 2 of 4 papers

    Summer 2026 Q3b OR Winter 2025 Q2b

  9. Explain Control Stack.

    4 marksAsked in 2 of 4 papers

    Summer 2026 Q5b Summer 2025 Q5a OR

  10. Explain Dynamic storage allocation technique.

    4 marksAsked in 2 of 4 papers

    Summer 2025 Q5b OR Summer 2024 Q4a OR

  11. Write a difference(s) between CLR, SLR and LALR methods.

    4 marksAsked in 2 of 4 papers

    Summer 2025 Q3b OR Summer 2024 Q3b OR

  12. Draw Transition diagram of following:

    4 marksAsked in 2 of 4 papers

    Summer 2025 Q1b Summer 2024 Q2b

  13. Check the following grammar is operator or not. Justify your answer. E -> EOE E -> id O -> * | + | -

    4 marksAsked in 2 of 4 papers

    Winter 2025 Q3b OR Summer 2025 Q4a OR

  14. Define compiler, interpreter and assembler.

    3 marksAsked in 2 of 4 papers

    Summer 2026 Q1a Winter 2025 Q1a

  15. Explain S-Attributed Definitions and L-Attributed Definitions.

    3 marksAsked in 2 of 4 papers

    Summer 2026 Q3a OR Winter 2025 Q3a

  16. What is Ambiguous Grammar? Describe with example.

    3 marksAsked in 2 of 4 papers

    Summer 2026 Q4a Summer 2025 Q3a

  17. What is flow graph? Give suitable example.

    3 marksAsked in 2 of 4 papers

    Summer 2026 Q5a OR Winter 2025 Q5a

  18. Differentiate: Static v/s Dynamic Memory Allocation

    3 marksAsked in 2 of 4 papers

    Summer 2025 Q5a Summer 2024 Q5b OR

Which branches take this subject

GTU's syllabus lists 2170701 for 2 branches. One set of papers serves all of them.

Semester 7: 2 branches

Computer Engineering, Computer Science & Engineering

Other Semester 7 subjects

Common questions

Are these GTU 2170701 Compiler Design papers valid for both Regular and Remedial exams?

Yes. Gujarat Technological University (GTU) follows the same 70-mark syllabus, exam blueprint, and 23-mark passing cutoff for both Regular and Remedial (ATKT/backlog) examinations. All 4 past exam sessions (2024 – 2026) serve as comprehensive preparation for either attempt.

How can I download GTU 2170701 Compiler Design old question papers PDF?

You can download official GTU 2170701 original question paper PDFs directly from the table above with 1 click and zero deceptive ads or wait timers. Every paper also includes interactive online questions with AI study prompts.

What is the passing mark for GTU Compiler Design (2170701)?

The external theory exam carries 70 marks. The minimum passing cutoff is 23 marks (33%). Exam duration is 2.5 hours.

What is the GTU exam pattern for 2170701?

The examination contains 5 main questions of 14 marks each, totaling 70 marks. Questions 2 through 5 provide internal OR choices, typically split into 3-mark, 4-mark, and 7-mark questions.