Object Oriented Programming Using C++ question paper 2017
uttarakhand polytechnic old paper
Subject : Object Oriented Programming Using C++
Year/Sem. – II Year/ IVSem.
Note : Attempt ten questions from section A and attempt five questions from section B and also attempt five questions from Section C.
नोट : भाग क से 10 प्रश्न करने हैं तथा भाग ख से पांच प्रश्न एवं भाग ग से पांच प्रश्न करने हैं ।
Section A / भाग – क
Attempt any ten questions. / किन्ही 10 प्रश्नों के उत्तर दीजिए ।
state true or false (any five)/ सत्य और असत्य बताओ – (कोई पाँच )
- 1. constructor can not be overloaded. / कंस्ट्रक्टर को ओवरलोड नहीं किया जा सकता ।
- Class members are public by default.
क्लास के मेंबर by default पब्लिक होते हैं ।
- An inline member function is like macro.
एक इनलाइन मेंबर function माइक्रो की तरह होता है ।
- Constructor are invoked automatically when objects are created.
जब ऑब्जेक्ट्स बनाए जाते हैं तो constructor. अपने आप invoked होते हैं ।
- Data members in A Class must be declared private.
एक क्लास में डाटा मेंबर्स को प्राइवेट घोषित करना चाहिए ।
- The private members of a base class are not inherited.
बेस क्लास के प्राइवेट मेंबर इन्हेरीट नहीं होते हैं ।
Fill in the blanks- ( any five )/ रिक्त स्थान भरो – (कोई पाँच )
- Command line arguments used to pass the name of
कमांड लाइन arguments का प्रयोग………………. नाम पास करने के लिए होता है ।
- 8. Use delete only to delete the memory allocated by ……………..
Delete का प्रयोग………………….. द्वारा आवंटित मेमोरी को हटाने के लिए किया जाता है ।
- A constructor has the same name as that of a………………..
एक कंस्ट्रक्टर और………… का नाम समान होता है ।
- …………………… is a special member function that initializes the data members of a class.
………………… एक खास मेंबर फंक्शन होता है जो क्लास के डाटा मेंबर को initialize करता है ।
- Functions and operator overloading are examples of………………………… polymorphism.
Functions. और ऑपरेटर ओवरलोडिंग…………. polymorphism के उदाहरण है ।
- The process of deriving one class from more than one base class is called ……………
एक क्लास को जब एक से अधिक क्लासेज से प्राप्त करते हैं तो उसे………….. कहते हैं।
SECTION – B भाग – ख
Attempt any five questions / किन्हीं पांच प्रश्नों के उत्तर दीजिए ।
- What are basic stream classes?
बेसिक Stream Classes क्या होती है ?
- Explain various basic stream classes.
विभिन्न प्रकार की Basic Stream Classes समझाइए ।
- Describe the concept of copy constructor.
Copy Constructor की व्याख्या कीजिए ।
- Explain pointers in brief.
Pointer की संक्षेप में व्याख्या करो ।
- Explain Constructor and destructor in brief.
Constructor और destructor की संक्षेप में व्याख्या करो ।
- Explain inline function in brief
Inline function की संक्षेप में व्याख्या करो ।
- Explain control structures in brief.
Control structure संक्षिप्त में व्याख्या करो ।
Section C भाग – ग
Attempt any five questions / किन्हीं पांच प्रश्नों के उत्तर दीजिए।
- What are different from of inheritance ?
Inheritance के विभिन्न प्रकार क्या है ?
- What is encapsulation? How does a class accomplish Data hiding ? Explain with an example.
Encapsulation क्या है ? क्लास में डाटा फीडिंग किस प्रकार होती है ?उदाहरण सहित स्पष्ट कीजिए ।
- What do you understand by object oriented programming? How it is different from the procedure oriented programming?
ऑब्जेक्ट ओरिएंटेड प्रोग्रामिंग से आप क्या समझते हैं ? यह प्रोसीजर ओरिएंटेड प्रोग्रामिंग से किस प्रकार भिन्न है ?
- 23. write a program to show single inheritance.
Single inheritance को प्रदर्शित करने के लिए प्रोग्राम लिखिए ।
- Explain function overloading with an example.
उदाहरण सहित फंक्शन ओवरलोडिंग की व्याख्या कीजिए ।
- 25. Write a C++ program that will ask for a temperature in Fahrenheit and display it in Celsius. [C/5 = (f-32/9)
सी++ में एक प्रोग्राम लिखिए जो फारेनहाइट में दिए गए तापमान को सेल्सियस में परिवर्तन करता है ।
- Write a program to show the use of copy constructor.
कापी constructor के प्रयोग को प्रदर्शित करने हेतु एक प्रोग्राम लिखिए ।