#include &lt;iostream&gt;    using namespace std;    class Base    &#123;        public:        virtual void print&#40;&#41; const = 0;    &#125;;    class DerivedOne : public Base    &#123;        public:             void print&#40;&#41; const        &#123;            cout &lt;&lt; &quot;DerivedOne\n&quot;;        &#125;    &#125;;    class DerivedTwo : public Base    &#123;        public:        void print&#40;&#41; const        &#123;            cout &lt;&lt; &quot;DerivedTwo\n&quot;;        &#125;         &#125;;     class Multiple : public DerivedOne, public DerivedTwo    &#123;        public:        void print&#40;&#41; const        &#123;            DerivedTwo :: print&#40;&#41;;        &#125;     &#125;;     int main&#40;&#41;    &#123;        int i;        Multiple both;         DerivedOne one;         DerivedTwo two;         Base *array&#91; 3 &#93;;         array&#91; 0 &#93; = &amp;both;         array&#91; 1 &#93; = &amp;one;        array&#91; 2 &#93; = &amp;two;        array&#91; i &#93; -&gt; print&#40;&#41;;        return 0;    &#125;
A. DerivedOne
B. DerivedTwo
C. Error
D. None of the mentioned
Answer:A
#include &lt;iostream&gt;    using namespace std;    class Base    &#123;        public:        virtual void print&#40;&#41; const = 0;    &#125;;    class DerivedOne : public Base    &#123;        public:             void print&#40;&#41; const        &#123;            cout &lt;&lt; &quot;DerivedOne\n&quot;;        &#125;    &#125;;    class DerivedTwo : public Base    &#123;        public:        void print&#40;&#41; const        &#123;            cout &lt;&lt; &quot;DerivedTwo\n&quot;;        &#125;         &#125;;     class Multiple : public DerivedOne, public DerivedTwo    &#123;        public:        void print&#40;&#41; const        &#123;            DerivedTwo :: print&#40;&#41;;        &#125;     &#125;;     int main&#40;&#41;    &#123;        int i;        Multiple both;         DerivedOne one;         DerivedTwo two;         Base *array&#91; 3 &#93;;         array&#91; 0 &#93; = &amp;both;         array&#91; 1 &#93; = &amp;one;        array&#91; 2 &#93; = &amp;two;        array&#91; i &#93; -&gt; print&#40;&#41;;        return 0;    &#125;
A. DerivedOne B. DerivedTwo C. Error D. None of the mentioned
Explanation:In this program, ‘Base’ is an ambiguous base of ‘Multiple’. So it is producing an error. And this program is a virtual base class.