Save as PDF
Opens your browser print dialog — select "Save as PDF" to download.
IT-304
B.Tech./B.Tech. (Working Professional) III Semester
Examination, December 2024
Grading System (GS) / Working Professional
Object Oriented Programming and Methodology
Note: i) Attempt any five questions.
किन्ही पाँच प्रश्नों को हल कीजिए।
ii) All questions carry equal marks.
सभी प्रश्नों के समान अंक हैं।
iii) In case of any doubt or dispute the English version question should be treated as final.
किसी भी प्रकार के संदेह अथवा विवाद की स्थिति में अंग्रेजी भाषा के प्रश्न को अंतिम माना जायेगा।
-
1. a)What are the unique advantages of an object-oriented programming paradigm? 7
ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग प्रतिमान के अनूठे फायदे क्या हैं?
b)Explain about call by reference and return by reference with program. 7संदर्भ द्वारा कॉल के बारे में और प्रोग्राम के साथ संदर्भ द्वारा वापसी के बारे मे�� बताएं।
-
2. a)Write a program to explain the concept of array of objects. 7
ऐरे ऑफ ऑब्जेक्ट्स की अवधारणा को समझाने के लिए एक प्रोग्राम लिखें।
-
3. a)How does a C++ structure differ from a C++ Class? 7
C++ स्ट्रक्चर, C++ क्लास से किस प्रकार भिन्न है?
b)What is Constructor? Write a program to explain copy constructor and its use. 7कंस्ट्रक्टर क्या है? कॉपी कंस्ट्रक्टर और उसके उपयोग को समझाने के लिए एक प्रोग्राम लिखें।
-
4.Describe the mechanism of accessing data members and member functions in the following cases: 14
निम्नलिख���त मामलों में डाटा मेंबर्स और मेंबर फंक्शन्स तक पहुँचने के मैकेनिज़्म का वर्णन करें:
- Inside the main program
इनसाइड द मेन प्रोग्राम
- Inside a member function of the same class
इनसाइड ए मेंबर फंक्शन ऑफ द सेम क्लास
- Inside a member function of another class
इनसाइड ए मेंबर फंक्शन ऑफ अनादर क्लास
-
5. a)Explain Access Specifiers with respect to inheritance. 7
इनहेरिटेंस के संबंध में एक्सेस स्पेसिफायर को समझाइए।
b)Write a C++ program for calculating the area of rectangle and circle using run time polymorphism. 7रन टाइम पॉलीमॉर्फिज्म का उपयोग करके आयत और वृत्त के क्षेत्रफल की गणना के लिए एक C++ प्रोग्राम लिखें।
-
6. a)In what order are the class constructors called when a derived class object is created? 7
व्युत्पन्न क्लास ऑब्जेक्ट बनाते समय क्लास कंस्ट्रक्टर को किस क्रम में बुलाया जाता है?
b)Explain function overloading with example. 7फंक्शन ओवरलोडिंग को उदाहरण सहित समझाइए।
-
7. a)How is Polymorphism achieved at? 7
पॉलीमॉर्फिज्म कैसे प्राप्त किया जाता है
- Compile time
कंपाइल टाइम
- Run time
रन टाइम
b)Explain, with an example, how you would create space for an array of objects using pointers. 7उ��ाहरण के साथ समझाइए कि आप पॉइंटर्स का उपयोग करके ऑब्जेक्ट की एक ऐरे के लिए जगह कैसे बनाएंगे।
-
8. a)What are Exceptions? What are the differences between synchronous and asynchronous exceptions? 7
एक्सेप्शन्स क्या हैं? सिंक्रोनस और एसिंक्रोनस एक्सेप्शन्स के बीच अंतर क्या है?
b)Explain overloaded function templates with suitable example program. 7उपयुक्त उदाहरण प्रोग्राम के साथ ओवर���ोडेड फंक्शन टेम्पलेट की व्याख्या करें।