Yathirajsolutions.com
HOME      EDUCATION      NEWS      SHOPING 

2nd PUC computer science
Chapter-10: Inheritance MCQs-2024

Q1.if a class derived from more than one base class, then it is
    a.single inheritance
    b.multi level
    c.multiple
    d. hierarchical
    view Answer
    ans: c.multiple

Q2.it is the class whose properties are inherited by another class
    a.derived class
    b.sub class
    c.base class
    d.main class
    view Answer
    ans: c. base class

Q3.it is the class that inherited properties from base class
    a.derived class
    b.sub class
    c.base class
    d.main class
    view Answer
    ans:a.derived class

Q4.if we reuse the code of x even in y without rewriting it.the class y inherits all the properties of x.the class x is called
    a.derived class
    b.Sub class
    c.base class
    d.main class
    view Answer
    ans:c.base class

Q5.which is the default visibility mode
    a.private
    b.protected
    c.public
    d.none of the above
    view Answer
    ans:a.private

Q6.all members of class are inherited except
    a.private
    b.protected
    c.public
    d.none of the above
    view Answer
    ans: a.private

Q7.The public inheritance, the public members of a base class become____________members of derived class
    a.private
    b.public
    c.protected
    d.none of the above
    view Answer
    ans:b.public

Q8.the classes can also be derived from the classes that are already derived this type of inheritence is called
    a.multiple
    b.single
    c.multilevel
    d.hierarchical
    view Answer
    ans:c.multilevel

Q9.Z is a derived class.Z is derived from both X class and Y classes,X and Y are base classes this type of inheritance is called
    a.multiple
    b.single
    c.multilevel
    d.hierarchical
    view Answer
    ans: a.multiple

Q10.A B and C are derived classes all A B C are uses the properties of D, D is a base class. this type of inheritance is called
    a.multiple
    b.single
    c.multilevel
    d.hierarchical
    view Answer
    ans:d.hierarchical

Q11.______________class is one that is not used to create objects
    a.abstrast class
    b.virtual class
    c.base class
    d.direved class
    view Answer
    ans:a.abstrast class

Q12.when base class is inherited as private,then all public and protected members of a base class become__________members of the derived class
    a.private
    b.public
    c.protected
    d.none of the above
    view Answer
    ans:a.private

Q13.multiple copies of the base class being present in an object can be prevented using
    a.visibility mode
    b.virtual base class
    c.abstract class
    d.none of the above
    view Answer
    ans:b.virtual base class

Q14.A derived class inherits__________from the base class
    a.data members
    b.member functions
    c.both a and b
    d.none of the above
    view Answer
    ans:c.both a and b

Q15.________type of inheritence is combination of hierarchical inheritence and multilevel inheritence
    a.single inheritence
    b.hybride inheritence
    c.multiple inheritence
    d.hierarchical inheritence
    view Answer
    ans:b.hybrid inheritence



Author: yathirajsolutions.com designed by Sathisha M

yathirajsolutions.com

Contact Us

Fill up the form below to send us a message.