Quiz-1

Q 1. Which of the following best describes multiple inheritance/multipath inheritance? / निम्नलिखित में से कौन मल्टीप्ल इनहेरिटेंस / मल्टीपाथ इनहेरिटेंस का बेस्ट वर्णन है?

  1. Two classes being parent of any other classes
  2. Three classes being parent of any classes
  3. More than one class being parent of single child
  4. None of these

Q 2. Which of the following best definer single level inheritance? / निम्नलिखित में से कौन एकल स्तरीय वंशानुक्रम को सर्वोत्तम रूप से परिभाषित करता है?

  1. A class inheritance a derived class
  2. A class inheritance a base class
  3. A class which gets inheritance by two classes
  4. None of these

Q 3. What is the correct syntax of Inheritance? / वंशानुक्रम का सही वाक्य-विन्यास क्या है?

  1. derived class : base class { }?

  2. base class : derived class { }?
  3. derived class : derived class { }?
  4. None of these

Q 4. How may basic type of inheritance in C++? / सी ++ में मूल प्रकार की विरासत कैसे हो सकती है?

  1. 3
  2. 2
  3. 5
  4. 4

Q 5. why we use inheritance in C++? / हम सी ++ में विरासत का उपयोग क्यों करते हैं?

  1. For the code use ability
  2. For the code ability
  3. For the code reuseability
  4. None of these

Q 6. Inheritance allows in C++ Program? / C++ प्रोग्राम में इनहेरिटेंस की अनुमति देता है?

  1. Class Re-usability
  2. Creating a hierarchy of classes
  3. Extendibility
  4. All of the above

Q 7. Which inheritance do not support Java but support C++? / कौन सा वंशानुक्रम जावा का समर्थन नहीं करता है लेकिन C++ का समर्थन करता है?

  1. Multilevel inheritance    
  2. Multiple inheritance   
     
  3. Single level inheritance
  4. All of these

Q 8. Reusability of the code can be achieved in CPP through ______ . / सीपीपी में कोड की पुन: प्रयोज्यता प्राप्त की जा सकती है

  1. Polymorphism
  2. Encapsulation
  3. Inheritance
  4. Both A and C

Q 9. C++ Inheritance relationship is / C++ वंशानुक्रम संबंध है

  1. Association
  2. Is-A
  3. Has-A
  4. None

Q 10. Class member of a class in C++ program are by default ? (IA 2018) / C++ प्रोग्राम में क्लास के क्लास मेंबर डिफॉल्ट रूप से होते हैं?

  1. public
  2. static
  3. protected
  4. private