Contents

Which type of inheritance leads to diamond problem?
a) multiple inheritance    
b) multi-level inheritance
c) simple inheritance
d) all of these

a

How many basic types of inheritance are provided as OOP feature?
a) 4                        
b) 3                        
c) 2                        
d) 1

a

Explanation: simple inheritance, multiple, multilevel, single level inheritance


The class that is used to create a new class is called….
a) base class                        
b) super class
c) parent class                     
d) all of these

d

The new class that inherits the properties and function of existing class is called….
a) child class                        
b) derive class
c) sub class                           
d) all of these

d

A class is derived from more than one parent classes is called…….
a) multiple inheritance                    
b) multi-level inheritance
c) simple inheritance
d) all of these

a

Which type of inheritance leads to diamond problem?
a) multiple inheritance                    
b) multi-level inheritance
c) simple inheritance
d) all of these

a