#include &lt;iostream&gt;    #include &lt;typeinfo&gt;    #include &lt;exception&gt;    using namespace std;    class base     &#123;         virtual void f&#40;&#41;&#123;&#125;     &#125;;    class derived : public base &#123;&#125;;    int main &#40;&#41;     &#123;        try         &#123;            base* a = new base;            base* b = new derived;            cout &lt;&lt; typeid&#40;*a&#41;.name&#40;&#41; &lt;&lt; '\t';            cout &lt;&lt; typeid&#40;*b&#41;.name&#40;&#41;;        &#125;         catch &#40;exception&amp; e&#41;         &#123;             cout &lt;&lt; &quot;Exception: &quot; &lt;&lt; e.what&#40;&#41; &lt;&lt; endl;         &#125;        return 0;    &#125;
A. base*
B. derived*
C. 4base and 7derived
D. None of the mentioned
Answer:A
#include &lt;iostream&gt;    #include &lt;typeinfo&gt;    #include &lt;exception&gt;    using namespace std;    class base     &#123;         virtual void f&#40;&#41;&#123;&#125;     &#125;;    class derived : public base &#123;&#125;;    int main &#40;&#41;     &#123;        try         &#123;            base* a = new base;            base* b = new derived;            cout &lt;&lt; typeid&#40;*a&#41;.name&#40;&#41; &lt;&lt; '\t';            cout &lt;&lt; typeid&#40;*b&#41;.name&#40;&#41;;        &#125;         catch &#40;exception&amp; e&#41;         &#123;             cout &lt;&lt; &quot;Exception: &quot; &lt;&lt; e.what&#40;&#41; &lt;&lt; endl;         &#125;        return 0;    &#125;
A. base* B. derived* C. 4base and 7derived D. None of the mentioned
Explanation:In this program, We apply the typeid to the polymorphic class.