#include &lt;iostream&gt;    using namespace std;    class sample    &#123;        public:        virtual void example&#40;&#41; = 0;     &#125;;    class Ex1:public sample    &#123;        public:        void example&#40;&#41;        &#123;            cout &lt;&lt; &quot;ubuntu&quot;;        &#125;    &#125;;    class Ex2:public sample    &#123;        public:        void example&#40;&#41;        &#123;            cout &lt;&lt; &quot; is awesome&quot;;        &#125;    &#125;;    int main&#40;&#41;    &#123;        sample* arra&#91;2&#93;;        Ex1 e1;        Ex2 e2;        arra&#91;0&#93;=&amp;e1;        arra&#91;1&#93;=&amp;e2;        arra&#91;0&#93;-&gt;example&#40;&#41;;        arra&#91;1&#93;-&gt;example&#40;&#41;;    &#125;
A. ubuntu
B. is awesome
C. ubuntu is awesome
D. None of the mentioned
Answer:A
#include &lt;iostream&gt;    using namespace std;    class sample    &#123;        public:        virtual void example&#40;&#41; = 0;     &#125;;    class Ex1:public sample    &#123;        public:        void example&#40;&#41;        &#123;            cout &lt;&lt; &quot;ubuntu&quot;;        &#125;    &#125;;    class Ex2:public sample    &#123;        public:        void example&#40;&#41;        &#123;            cout &lt;&lt; &quot; is awesome&quot;;        &#125;    &#125;;    int main&#40;&#41;    &#123;        sample* arra&#91;2&#93;;        Ex1 e1;        Ex2 e2;        arra&#91;0&#93;=&amp;e1;        arra&#91;1&#93;=&amp;e2;        arra&#91;0&#93;-&gt;example&#40;&#41;;        arra&#91;1&#93;-&gt;example&#40;&#41;;    &#125;
A. ubuntu B. is awesome C. ubuntu is awesome D. None of the mentioned