#include &lt;iostream&gt;    using namespace std;    class Base1    &#123;        protected:        int SampleDataOne;        public:        Base1&#40;&#41;        &#123;            SampleDataOne = 100;        &#125;        ~Base1&#40;&#41;        &#123;        &#125;        int SampleFunctOne&#40;&#41;        &#123;            return SampleDataOne;        &#125;    &#125;;    class Base2    &#123;        protected:        int SampleDataTwo;        public:        Base2&#40;&#41;        &#123;            SampleDataTwo = 200;        &#125;        ~Base2&#40;&#41;        &#123;        &#125;        int SampleFunctTwo&#40;&#41;        &#123;            return SampleDataTwo;        &#125;    &#125;;    class Derived1 : public Base1, public Base2    &#123;        int MyData;        public:        Derived1&#40;&#41;         &#123;            MyData = 300;        &#125;        ~Derived1&#40;&#41;        &#123;        &#125;            int MyFunct&#40;&#41;        &#123;            return &#40;MyData + SampleDataOne + SampleDataTwo&#41;;        &#125;    &#125;;    int main&#40;&#41;    &#123;        Base1 SampleObjOne;        Base2 SampleObjTwo;        Derived1 SampleObjThree;        cout &lt;&lt; SampleObjThree.Base1 :: SampleFunctOne&#40;&#41; &lt;&lt; endl;        cout &lt;&lt; SampleObjThree.Base2 :: SampleFunctTwo&#40;&#41; &lt;&lt; endl;        return 0;    &#125;
A. 100
B. 200
C. Both a & b
D. None of the mentioned
Answer:A
#include &lt;iostream&gt;    using namespace std;    class Base1    &#123;        protected:        int SampleDataOne;        public:        Base1&#40;&#41;        &#123;            SampleDataOne = 100;        &#125;        ~Base1&#40;&#41;        &#123;        &#125;        int SampleFunctOne&#40;&#41;        &#123;            return SampleDataOne;        &#125;    &#125;;    class Base2    &#123;        protected:        int SampleDataTwo;        public:        Base2&#40;&#41;        &#123;            SampleDataTwo = 200;        &#125;        ~Base2&#40;&#41;        &#123;        &#125;        int SampleFunctTwo&#40;&#41;        &#123;            return SampleDataTwo;        &#125;    &#125;;    class Derived1 : public Base1, public Base2    &#123;        int MyData;        public:        Derived1&#40;&#41;         &#123;            MyData = 300;        &#125;        ~Derived1&#40;&#41;        &#123;        &#125;            int MyFunct&#40;&#41;        &#123;            return &#40;MyData + SampleDataOne + SampleDataTwo&#41;;        &#125;    &#125;;    int main&#40;&#41;    &#123;        Base1 SampleObjOne;        Base2 SampleObjTwo;        Derived1 SampleObjThree;        cout &lt;&lt; SampleObjThree.Base1 :: SampleFunctOne&#40;&#41; &lt;&lt; endl;        cout &lt;&lt; SampleObjThree.Base2 :: SampleFunctTwo&#40;&#41; &lt;&lt; endl;        return 0;    &#125;
A. 100 B. 200 C. Both a & b D. None of the mentioned