Compiler Design RGPV Notes in Hindi - CS603 (C)

Computer Science Engineering Tutorials in Hindi 6th Semester Notes in Hindi Year: 2026

Set A

Engineering Student Sample Exam Paper 2026 (RGPV)

New Scheme Based On AICTE Flexible Curricula

Computer Science and Engineering, VI Semester

Departmental Elective – CS603(C) Compiler Design

Model Question Paper – Set A

Time : Three Hours Maximum Marks : 70

Instructions / निर्देश

  • Attempt any five questions. / किन्हीं पाँच प्रश्नों को हल कीजिए।
  • All questions carry equal marks. / सभी प्रश्नों के समान अंक हैं।
  • All parts of a question should be attempted at one place. / प्रत्येक प्रश्न के सभी भाग एक ही स्थान पर हल कीजिए।
  • In case of any doubt or dispute, English version shall be treated as final. / किसी भी विवाद की स्थिति में अंग्रेजी भाषा मान्य होगी।

Q.1

(a) Explain the phases of a compiler with a neat diagram. Illustrate the compilation process using a suitable example.
एक सुव्यवस्थित चित्र की सहायता से कम्पाइलर के विभिन्न चरणों की व्याख्या कीजिए। उपयुक्त उदाहरण द्वारा संकलन प्रक्रिया को समझाइए।


(b) Discuss Analysis and Synthesis model of compilation. Differentiate between Front End and Back End of Compiler.
संकलन के विश्लेषण एवं संश्लेषण मॉडल की व्याख्या कीजिए। कम्पाइलर के फ्रंट एंड तथा बैक एंड में अंतर स्पष्ट कीजिए।

Q.2

(a) Find FIRST and FOLLOW sets for the following grammar: S → AB A → aA | ε B → bB | ε
निम्नलिखित व्याकरण के लिए FIRST तथा FOLLOW सेट ज्ञात कीजिए: S → AB A → aA | ε B → bB | ε


(b) Construct the SLR Parsing Table for the grammar: E → E + T | T T → T * F | F F → (E) | id
निम्नलिखित व्याकरण के लिए SLR पार्सिंग टेबल का निर्माण कीजिए: E → E + T | T T → T * F | F F → (E) | id

Q.3

(a) Explain Recursive Descent Parsing and Predictive Parsing with suitable examples.
रिकर्सिव डिसेंट पार्सिंग तथा प्रिडिक्टिव पार्सिंग को उपयुक्त उदाहरण सहित समझाइए।


(b) Differentiate between S-attributed and L-attributed definitions with examples.
S-अट्रिब्यूटेड तथा L-अट्रिब्यूटेड परिभाषाओं में उदाहरण सहित अंतर स्पष्ट कीजिए।

Q.4

(a) Explain Symbol Table organization and its role in compiler design.
सिंबल टेबल के संगठन तथा कम्पाइलर डिज़ाइन में उसकी भूमिका की व्याख्या कीजिए।


(b) Describe Storage Allocation Strategies and Dynamic Storage Allocation methods in detail.
स्टोरेज एलोकेशन रणनीतियों तथा डायनेमिक स्टोरेज एलोकेशन विधियों का विस्तार से वर्णन कीजिए।

Q.5

(a) Generate Three Address Code for the expression: A = (B + C) * (D - E)
निम्नलिखित अभिव्यक्ति के लिए Three Address Code उत्पन्न कीजिए: A = (B + C) * (D - E)


(b) Explain Activation Record and Parameter Passing Mechanisms with suitable examples.
एक्टिवेशन रिकॉर्ड तथा पैरामीटर पासिंग तंत्र को उपयुक्त उदाहरण सहित समझाइए।

Q.6

(a) Construct a DAG for the following basic block: T1 = A + B T2 = A + B T3 = T1 * C T4 = T2 * C
निम्नलिखित बेसिक ब्लॉक के लिए DAG का निर्माण कीजिए: T1 = A + B T2 = A + B T3 = T1 * C T4 = T2 * C


(b) Define Basic Block and Flow Graph. Explain their construction with suitable examples.
बेसिक ब्लॉक तथा फ्लो ग्राफ को परिभाषित कीजिए। उपयुक्त उदाहरण सहित इनके निर्माण की व्याख्या कीजिए।

Q.7

(a) Explain Common Sub-expression Elimination, Constant Folding and Dead Code Elimination.
कॉमन सब-एक्सप्रेशन एलिमिनेशन, कॉन्स्टेंट फोल्डिंग तथा डेड कोड एलिमिनेशन की व्याख्या कीजिए।


(b) Discuss the sources of code optimization and explain Loop Optimization techniques.
कोड ऑप्टिमाइजेशन के स्रोतों पर चर्चा कीजिए तथा लूप ऑप्टिमाइजेशन तकनीकों की व्याख्या कीजिए।

Q.8 Write Short Notes on Any Two
किसी भी दो पर संक्षिप्त टिप्पणी लिखिए

  • LEX Tool / लेक्स टूल
  • Input Buffering / इनपुट बफरिंग
  • Backpatching / बैकपैचिंग
  • Peephole Optimization / पीपहोल ऑप्टिमाइजेशन

***** End of Model Question Paper – Set A *****

💡
Exam Tip

Practice time management while solving these papers

Study Smart

Focus on frequently asked questions and important topics

📚
Practice All Sets

Solve all three sets to cover maximum question patterns

Compiler Design RGPV Notes in Hindi - CS603 (C) Question Papers - Computer Science Engineering Tutorials in Hindi

Download Compiler Design RGPV Notes in Hindi - CS603 (C) previous year question papers for Computer Science Engineering Tutorials in Hindi 6th Semester Notes in Hindi. These RGPV question papers help you understand the exam pattern, important topics, and question distribution.

How to Use These Question Papers Effectively

  • Solve papers in exam-like conditions with time limits
  • Identify your weak areas and focus on them
  • Compare your answers with standard solutions
  • Practice all three sets (Set A, Set B, Set C) to cover different question patterns
  • Revise important concepts before attempting papers