(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.
संकलन के विश्लेषण एवं संश्लेषण मॉडल की व्याख्या कीजिए। कम्पाइलर के फ्रंट एंड तथा बैक एंड में अंतर स्पष्ट कीजिए।
(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
(a)
Explain Recursive Descent Parsing and Predictive Parsing with suitable examples.
रिकर्सिव डिसेंट पार्सिंग तथा प्रिडिक्टिव पार्सिंग को उपयुक्त उदाहरण सहित समझाइए।
(b)
Differentiate between S-attributed and L-attributed definitions with examples.
S-अट्रिब्यूटेड तथा L-अट्रिब्यूटेड परिभाषाओं में उदाहरण सहित अंतर स्पष्ट कीजिए।
(a)
Explain Symbol Table organization and its role in compiler design.
सिंबल टेबल के संगठन तथा कम्पाइलर डिज़ाइन में उसकी भूमिका की व्याख्या कीजिए।
(b)
Describe Storage Allocation Strategies and Dynamic Storage Allocation methods in detail.
स्टोरेज एलोकेशन रणनीतियों तथा डायनेमिक स्टोरेज एलोकेशन विधियों का विस्तार से वर्णन कीजिए।
(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.
एक्टिवेशन रिकॉर्ड तथा पैरामीटर पासिंग तंत्र को उपयुक्त उदाहरण सहित समझाइए।
(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.
बेसिक ब्लॉक तथा फ्लो ग्राफ को परिभाषित कीजिए। उपयुक्त उदाहरण सहित इनके निर्माण की व्याख्या कीजिए।
(a)
Explain Common Sub-expression Elimination, Constant Folding and Dead Code Elimination.
कॉमन सब-एक्सप्रेशन एलिमिनेशन, कॉन्स्टेंट फोल्डिंग तथा डेड कोड एलिमिनेशन की व्याख्या कीजिए।
(b)
Discuss the sources of code optimization and explain Loop Optimization techniques.
कोड ऑप्टिमाइजेशन के स्रोतों पर चर्चा कीजिए तथा लूप ऑप्टिमाइजेशन तकनीकों की व्याख्या कीजिए।
***** End of Model Question Paper – Set A *****
Practice time management while solving these papers
Focus on frequently asked questions and important topics
Solve all three sets to cover maximum question patterns
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.